Skip to content

Recreate the common storage test bucket#5580

Merged
jskeet merged 2 commits intogoogleapis:masterfrom
jskeet:storage-test-bucket
Nov 16, 2020
Merged

Recreate the common storage test bucket#5580
jskeet merged 2 commits intogoogleapis:masterfrom
jskeet:storage-test-bucket

Conversation

@jskeet
Copy link
Copy Markdown
Collaborator

@jskeet jskeet commented Nov 16, 2020

Fixes #5548.

This bucket is currently called storage-library-test-bucket. It's
owned by an integration test project, but with read access for the
organization.

This means 3rd party users trying to run tests will see failures,
but that's probably okay. (Otherwise we need exemptions for public
objects.)
@jskeet jskeet requested a review from a team November 16, 2020 10:57
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Nov 16, 2020
Copy link
Copy Markdown
Contributor

@amanda-tarafa amanda-tarafa left a comment

Choose a reason for hiding this comment

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

LGTM

var serviceAccount = GoogleCredential.GetApplicationDefault().UnderlyingCredential as ServiceAccountCredential;
if (serviceAccount is null)
{
throw new InvalidOperationException("Default credentials are not for a service account, so we can't determine the project ID");
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.

nit: Or take the projectId as an arg.
But really totally fine as is.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I did wonder about that - it's basically an option if we find it's a problem :)

@jskeet jskeet merged commit d5c7f70 into googleapis:master Nov 16, 2020
@jskeet jskeet deleted the storage-test-bucket branch November 16, 2020 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Storage]: Unskip system tests when cross language bucket is restored.

2 participants