From d922eff26342a1d9364205822f9f4a76f2fe9d6f Mon Sep 17 00:00:00 2001 From: Shubhangi Singh Date: Wed, 15 Jan 2025 14:04:09 +0000 Subject: [PATCH] debugging --- google-cloud-storage/samples/acceptance/buckets_test.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/google-cloud-storage/samples/acceptance/buckets_test.rb b/google-cloud-storage/samples/acceptance/buckets_test.rb index 752763d43708..20b7d005ad97 100644 --- a/google-cloud-storage/samples/acceptance/buckets_test.rb +++ b/google-cloud-storage/samples/acceptance/buckets_test.rb @@ -55,6 +55,7 @@ require_relative "../storage_set_retention_policy" require_relative "../storage_get_autoclass" require_relative "../storage_set_autoclass" +require "pry" describe "Buckets Snippets" do let(:storage_client) { Google::Cloud::Storage.new } @@ -127,9 +128,6 @@ it "get soft deleted bucket, its soft_delete_time and hard_delete_time" do new_bucket = storage_client.create_bucket new_bucket_name new_generation = new_bucket.generation - policy = bucket.policy - policy.add_binding(role: 'roles/storage.objectViewer', members: ["user:542339357638-cr0dserr2evg7sv1meghqeu703274f3h@developer.gserviceaccount.com"]) - # Check if the bucket exist assert(new_bucket.exists?, "Bucket #{new_bucket_name} should exist") delete_bucket_helper new_bucket_name