-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[storage] fix: use a different bucket for requester_pays_test
fixes #3654
- Loading branch information
Takashi Matsuo
committed
Apr 30, 2020
1 parent
0213191
commit 543bf60
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
For requester_pays_test.py, we need to use a different Storage bucket. | ||
|
||
The test looks for an environment variable | ||
`REQUESTER_PAYS_TEST_BUCKET` first and then fallback to | ||
`${CLOUD_STORAGE_BUCKET} + '-requester-pays-test'`. | ||
|
||
On the test project, we created a bucket named | ||
`python-docs-samples-tests-requester-pays-test`. | ||
|
||
|
||
Also, the service account for the test needs to have `Billing Project | ||
Manager` role in order to make changes on buckets with requester pays | ||
enabled. | ||
|
||
We added that role to the test service account. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters