Skip to content

Allow overriding storage bucket in acceptance tests#2531

Merged
quartzmo merged 1 commit intogoogleapis:masterfrom
dazuma:storage-buckets
Oct 19, 2018
Merged

Allow overriding storage bucket in acceptance tests#2531
quartzmo merged 1 commit intogoogleapis:masterfrom
dazuma:storage-buckets

Conversation

@dazuma
Copy link
Copy Markdown
Contributor

@dazuma dazuma commented Oct 19, 2018

Access to the bucket 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 bucket, which will unblock the Cloud testing team from running the affected tests in a restricted environment.

See #2522

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 19, 2018
@dazuma dazuma requested a review from quartzmo October 19, 2018 21:02
Copy link
Copy Markdown
Member

@quartzmo quartzmo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM and I can merge now without delay if needed.

However, I am just wondering for the sake of consistency and reducing duplication if you want to follow the design in #2522 and refactor these two calls to ENV to the assignment of a single global variable as was done in bigquery_helper.rb?

@quartzmo quartzmo self-assigned this Oct 19, 2018
@quartzmo quartzmo added the api: storage Issues related to the Cloud Storage API. label Oct 19, 2018
@dazuma
Copy link
Copy Markdown
Contributor Author

dazuma commented Oct 19, 2018

@quartzmo Honestly, I don't think these are worth the extra layer of design. These are all kind of one-offs right now, to unblock specific test scenarios from the storage team.

And anyway, if we do get to a point where we have more than 2-3ish test scenarios and really need to manage our test datasets, we should probably employ a unified system for that, rather than a bunch of ad hoc environment variables.

@quartzmo quartzmo merged commit b29a0db into googleapis:master Oct 19, 2018
@dazuma dazuma deleted the storage-buckets branch October 21, 2018 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

3 participants