-
Notifications
You must be signed in to change notification settings - Fork 168
Closed
Labels
api: storageIssues related to the googleapis/python-storage API.Issues related to the googleapis/python-storage API.testingtype: 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 build:
______ TestStorageSignURLs.test_create_signed_read_url_v2_w_access_token _______
self = <test_system.TestStorageSignURLs testMethod=test_create_signed_read_url_v2_w_access_token>
def test_create_signed_read_url_v2_w_access_token(self):
client = iam_credentials_v1.IAMCredentialsClient()
service_account_email = Config.CLIENT._credentials.service_account_email
> name = google.api_core.path_template.expand(
"projects/{project}/serviceAccounts/{service_account}",
project="-",
service_account=service_account_email,
)
E AttributeError: module 'google.api_core' has no attribute 'path_template'
tests/system/test_system.py:1283: AttributeError
______ TestStorageSignURLs.test_create_signed_read_url_v4_w_access_token _______
self = <test_system.TestStorageSignURLs testMethod=test_create_signed_read_url_v4_w_access_token>
def test_create_signed_read_url_v4_w_access_token(self):
client = iam_credentials_v1.IAMCredentialsClient()
service_account_email = Config.CLIENT._credentials.service_account_email
> name = google.api_core.path_template.expand(
"projects/{project}/serviceAccounts/{service_account}",
project="-",
service_account=service_account_email,
)
E AttributeError: module 'google.api_core' has no attribute 'path_template'
tests/system/test_system.py:1301: AttributeError
_____________ TestKMSIntegration.test_blob_w_explicit_kms_key_name _____________
self = <test_system.TestKMSIntegration testMethod=test_blob_w_explicit_kms_key_name>
def setUp(self):
super(TestKMSIntegration, self).setUp()
client = kms.KeyManagementServiceClient()
project = Config.CLIENT.project
location = self.bucket.location.lower()
keyring_name = self.KEYRING_NAME
> purpose = kms.enums.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT
E AttributeError: module 'google.cloud.kms' has no attribute 'enums'
tests/system/test_system.py:1861: AttributeError
____________ TestKMSIntegration.test_bucket_w_default_kms_key_name _____________
self = <test_system.TestKMSIntegration testMethod=test_bucket_w_default_kms_key_name>
def setUp(self):
super(TestKMSIntegration, self).setUp()
client = kms.KeyManagementServiceClient()
project = Config.CLIENT.project
location = self.bucket.location.lower()
keyring_name = self.KEYRING_NAME
> purpose = kms.enums.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT
E AttributeError: module 'google.cloud.kms' has no attribute 'enums'
tests/system/test_system.py:1861: AttributeError
_____________ TestKMSIntegration.test_rewrite_rotate_csek_to_cmek ______________
self = <test_system.TestKMSIntegration testMethod=test_rewrite_rotate_csek_to_cmek>
def setUp(self):
super(TestKMSIntegration, self).setUp()
client = kms.KeyManagementServiceClient()
project = Config.CLIENT.project
location = self.bucket.location.lower()
keyring_name = self.KEYRING_NAME
> purpose = kms.enums.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT
E AttributeError: module 'google.cloud.kms' has no attribute 'enums'
tests/system/test_system.py:1861: AttributeError
________ TestKMSIntegration.test_upload_new_blob_w_bucket_cmek_enabled _________
self = <test_system.TestKMSIntegration testMethod=test_upload_new_blob_w_bucket_cmek_enabled>
def setUp(self):
super(TestKMSIntegration, self).setUp()
client = kms.KeyManagementServiceClient()
project = Config.CLIENT.project
location = self.bucket.location.lower()
keyring_name = self.KEYRING_NAME
> purpose = kms.enums.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT
E AttributeError: module 'google.cloud.kms' has no attribute 'enums'
tests/system/test_system.py:1861: AttributeErrorThe first set of errors (module 'google.api_core' has no attribute 'path_template') are due to a combination of #219 and a removed import of google.api_core.path_template somewhere else.
The second set are due to the breaking release of google-cloud-kms 2.0.0, which horks our test setup.
Metadata
Metadata
Assignees
Labels
api: storageIssues related to the googleapis/python-storage API.Issues related to the googleapis/python-storage API.testingtype: processA process-related concern. May include testing, release, or the like.A process-related concern. May include testing, release, or the like.