-
Notifications
You must be signed in to change notification settings - Fork 167
Closed
Labels
api: storageIssues related to the googleapis/python-storage API.Issues related to the googleapis/python-storage API.type: processA process-related concern. May include testing, release, or the like.A process-related concern. May include testing, release, or the like.
Description
From this Kokoro failure:
____________________ test_blob_upload_w_bucket_cmek_enabled ____________________
kms_bucket = <Bucket: gcp-systest-kms-1626804473143>
blobs_to_delete = [<Blob: gcp-systest-kms-1626804473143, test-blob, 1626804479031944>]
kms_key_name = 'projects/precise-truck-742/locations/us/keyRings/gcs-test/cryptoKeys/gcs-test'
file_data = {'big': {'hash': 'cEome4a+NYd7YIXzXQnR5Q==', 'path': '/tmpfs/src/github/python-storage/tests/data/five-point-one-mb-fi...ng'}, 'simple': {'hash': '3Hkwjv2WvCnKjNR6Z3CboA==', 'path': '/tmpfs/src/github/python-storage/tests/data/simple.txt'}}
def test_blob_upload_w_bucket_cmek_enabled(
kms_bucket, blobs_to_delete, kms_key_name, file_data,
):
blob_name = "test-blob"
payload = b"DEADBEEF"
alt_payload = b"NEWDEADBEEF"
kms_bucket.default_kms_key_name = kms_key_name
kms_bucket.patch()
assert kms_bucket.default_kms_key_name == kms_key_name
blob = kms_bucket.blob(blob_name)
blob.upload_from_string(payload)
blobs_to_delete.append(blob)
_helpers.retry_429_harder(blob.reload)()
# We don't know the current version of the key.
> assert blob.kms_key_name.startswith(kms_key_name)
E AttributeError: 'NoneType' object has no attribute 'startswith'
Metadata
Metadata
Assignees
Labels
api: storageIssues related to the googleapis/python-storage API.Issues related to the googleapis/python-storage API.type: processA process-related concern. May include testing, release, or the like.A process-related concern. May include testing, release, or the like.