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): add object to encryption test to reduce rate limit issues #8938

Merged
merged 3 commits into from
Nov 2, 2023

Conversation

BrennaEpp
Copy link
Contributor

Fixes #8727

Test may fail again as we are writing several times to obj2 in a short amount of time. May need to add another object/more carefully interleave this one (to make sure we are still testing the same things). For now, adding this may be sufficient.

@BrennaEpp BrennaEpp requested review from a team as code owners October 30, 2023 19:53
@product-auto-label product-auto-label bot added the size: s Pull request size is small. label Oct 30, 2023
@product-auto-label product-auto-label bot added the api: storage Issues related to the Cloud Storage API. label Oct 30, 2023
// Copying an object without the key should fail.
if _, err := obj2.CopierFrom(obj).Run(ctx); err == nil {
if _, err := obj4.CopierFrom(obj).Run(ctx); err == nil {
Copy link
Member

Choose a reason for hiding this comment

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

looks like you can update lines 2526 - 2530 to use obj4 as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That is true, but the objective here is to not use the same object consecutively if we can avoid it as the rate limit for objects is one create/update/delete per second. So IIUC L2562 will not hit that limit even if it occurs in the same second as 2522 - if we use the same object, it might.

@BrennaEpp BrennaEpp enabled auto-merge (squash) November 2, 2023 15:31
@BrennaEpp BrennaEpp merged commit eee4409 into googleapis:main Nov 2, 2023
9 checks passed
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: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

storage: TestIntegration_Encryption failed
3 participants