Skip to content

Allow override of KMS keys in storage acceptance tests#2528

Merged
quartzmo merged 3 commits intogoogleapis:masterfrom
dazuma:storage-keys
Oct 18, 2018
Merged

Allow override of KMS keys in storage acceptance tests#2528
quartzmo merged 3 commits intogoogleapis:masterfrom
dazuma:storage-keys

Conversation

@dazuma
Copy link
Copy Markdown
Contributor

@dazuma dazuma commented Oct 17, 2018

Access to the keys currently hard-coded in the tests, may be restricted when tests are run from a VPC project. These changes allow tests to be invoked with a different set of keys, which will unblock the Cloud testing team from running the affected tests in a restricted environment.

See #2518

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 17, 2018
let(:kms_key) { "projects/helical-zone-771/locations/#{bucket_location}/keyRings/ruby-test/cryptoKeys/ruby-test-key-1" }
let(:kms_key_2) { "projects/helical-zone-771/locations/#{bucket_location}/keyRings/ruby-test/cryptoKeys/ruby-test-key-2" }
let(:kms_key) {
ENV["GCLOUD_RUBY_TEST_KEY_1"] ||

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

let(:kms_key_2) { "projects/helical-zone-771/locations/#{bucket_location}/keyRings/ruby-test/cryptoKeys/ruby-test-key-2" }
let(:kms_key) {
ENV["GCLOUD_TEST_STORAGE_KMS_KEY_1"] ||
"projects/helical-zone-771/locations/#{bucket_location}/keyRings/ruby-test/cryptoKeys/ruby-test-key-1"

This comment was marked as spam.

This comment was marked as spam.

@blowmage blowmage added api: storage Issues related to the Cloud Storage API. api: cloudkms Issues related to the Cloud Key Management Service API. labels Oct 18, 2018
@quartzmo quartzmo merged commit d911fde into googleapis:master Oct 18, 2018
@dazuma dazuma deleted the storage-keys branch October 19, 2018 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: cloudkms Issues related to the Cloud Key Management Service API. api: storage Issues related to the Cloud Storage API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants