Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,19 @@
# Set project to "_" to signify global bucket
let(:anywhere_cache_name) { "projects/_/buckets/#{bucket_name}/anywhereCaches/#{zone}" }

# TODO: Re-enable bucket creation and deletion when resolving b/559793640
before :all do
create_bucket_helper bucket_name
# create_bucket_helper bucket_name
end

after :all do
count_anywhere_caches bucket_name # Ensure all caches are deleted before deleting bucket
delete_bucket_helper bucket_name
# count_anywhere_caches bucket_name
# delete_bucket_helper bucket_name
end

it "handles Anywhere cache lifecycle in sequence" do
skip "Disabled due to Anywhere Cache deletion timeouts. See b/559793640"

out_create, _err = capture_io do
create_anywhere_cache bucket_name: bucket_name, zone: zone
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ def delete_folder_recursive bucket_name:, folder_name:
request = Google::Cloud::Storage::Control::V2::DeleteFolderRecursiveRequest.new name: folder_path

result = storage_control.delete_folder_recursive request
result.wait_until_done! timeout: 60
operation = storage_control.operations_client.get_operation name: result.name
operation.wait_until_done! retry_policy: { timeout: 60, initial_delay: 1 }

puts "Deleted folder recursively: #{folder_name}"
end
Expand Down
Loading