Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(storage): split out some of the object tests #7000

Merged
merged 3 commits into from
Nov 16, 2022

Conversation

BrennaEpp
Copy link
Contributor

Requires yet more splitting - here's a start

@BrennaEpp BrennaEpp requested review from a team as code owners November 8, 2022 00:05
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: storage Issues related to the Cloud Storage API. labels Nov 8, 2022
Copy link
Contributor

@tritone tritone left a comment

Choose a reason for hiding this comment

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

Couple small things, overall LGTM

storage/integration_test.go Outdated Show resolved Hide resolved
if err = bkt.Object(publicObj).ACL().Set(ctx, AllUsers, RoleReader); err != nil {
t.Errorf("PutACLEntry failed with %v", err)
}
publicClient, err := newTestClient(ctx, option.WithoutAuthentication())
Copy link
Contributor

Choose a reason for hiding this comment

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

Note that publicClient is always going to be HTTP in a comment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We discussed this offline - this needs to be split out (this code wasn't changed but appears like that since I split out parts of this test that were before and after this chunk). Right now this test is only run in HTTP.

I will split this part (Test public ACL) into 2 tests so that we can test public objects with gRPC and HTTP clients, but I'll save that for another PR.

@BrennaEpp BrennaEpp merged commit e22ce56 into googleapis:main Nov 16, 2022
@BrennaEpp BrennaEpp deleted the grpc-9 branch November 16, 2022 20:17
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. size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants