Skip to content

Test 'Blob.rewrite' w/ 'user_project' set. - #4093

Merged
tseaver merged 1 commit into
googleapis:storage-requester_pays-featurefrom
tseaver:storage-requester_pays-systests-9
Oct 5, 2017
Merged

Test 'Blob.rewrite' w/ 'user_project' set.#4093
tseaver merged 1 commit into
googleapis:storage-requester_pays-featurefrom
tseaver:storage-requester_pays-systests-9

Conversation

@tseaver

@tseavertseaver commented Sep 29, 2017

Copy link
Copy Markdown
Contributor

Note that both new tests are failing.

Because they have to be explicitly enabled (via the `GOOGLE_CLOUD_TESTS_USER_PROJECT`` environment variable, which we aren't yet setting for CI), this PR is OK to merge.

@tseavertseaver added api: storage Issues related to the Cloud Storage API. do not merge Indicates a pull request not ready for merge, due to either quality or timing. testing labels Sep 29, 2017
@googlebotgooglebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 29, 2017

@dhermesdhermes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, still wish you'd try to factor the try/finally out of these test cases.

dest = with_user_project.blob('dest', encryption_key=KEY)
token, rewritten, total = dest.rewrite(source)

self.assertEqual(token, None)

This comment was marked as spam.

@tseaver

Copy link
Copy Markdown
ContributorAuthor

@frankyn notes offline:

Rewrite has a known issue with userproject and the Storage team has a fix for it, but pending review and release. I'll keep you posted.

@tseaver
tseaverforce-pushed the storage-requester_pays-feature branch from 1c67795 to cd6d50aCompareOctober 2, 2017 22:45
Note that both new tests are failing when run with the
GOOGLE_CLOUD_TESTS_USER_PROJECT variable set, due to a known back-end
incompatibility between 'objects.rewrite' and 'userProject' (fix pending
review / release).
@tseavertseaver changed the title WIP: Test 'Blob.rewrite' w/ 'user_project' set.Test 'Blob.rewrite' w/ 'user_project' set.Oct 5, 2017
@tseavertseaver removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Oct 5, 2017
@tseaver
tseaver merged commit d34dfe5 into googleapis:storage-requester_pays-featureOct 5, 2017
@tseaver
tseaver deleted the storage-requester_pays-systests-9 branch October 5, 2017 16:18
tseaver added a commit that referenced this pull request Oct 5, 2017
Test 'Blob.rewrite' w/ 'user_project' set.
tseaver added a commit that referenced this pull request Oct 10, 2017
Test 'Blob.rewrite' w/ 'user_project' set.
tseaver added a commit that referenced this pull request Oct 10, 2017
Test 'Blob.rewrite' w/ 'user_project' set.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: storageIssues related to the Cloud Storage API.backendcla: yesThis human has signed the Contributor License Agreement.testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@tseaver@dhermes@googlebot