6c7f63e58534ff60c524324a1cf8628c838df772,storage/cloud-client/iam_test.py,,bucket,#,34
Before Change
@pytest.fixture
def bucket():
bucket_name = "test-iam-" + str(int(time.time()))
bucket = storage.Client().create_bucket(bucket_name)
bucket.iam_configuration.uniform_bucket_level_access_enabled = True
bucket.patch()
yield bucket
After Change
def bucket():
bucket = None
while bucket is None or bucket.exists():
bucket_name = "test-iam-{}".format(uuid.uuid4())
bucket = storage.Client().bucket(bucket_name)
bucket.create()
bucket.iam_configuration.uniform_bucket_level_access_enabled = True
bucket.patch()
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 6c7f63e58534ff60c524324a1cf8628c838df772
Time: 2020-03-05
Author: crwilcox@google.com
File Name: storage/cloud-client/iam_test.py
Class Name:
Method Name: bucket
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 646012c26db9335f69216c5d8656090c4211f323
Time: 2020-03-05
Author: crwilcox@google.com
File Name: storage/cloud-client/bucket_lock_test.py
Class Name:
Method Name: bucket
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: d56abf270ef7c76d9ae71c30a8697d19610a2b5f
Time: 2020-04-27
Author: tmatsuo@google.com
File Name: kms/api-client/snippets_test.py
Class Name: TestKMSSnippets
Method Name: test_create_key_ring
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: d56abf270ef7c76d9ae71c30a8697d19610a2b5f
Time: 2020-04-27
Author: tmatsuo@google.com
File Name: kms/api-client/snippets_test.py
Class Name: TestKMSSnippets
Method Name: test_create_crypto_key