Skip to content

test(retry): refactor things to ensure teardown is run per test #1100

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

Merged
merged 3 commits into from
Oct 12, 2021
Merged

test(retry): refactor things to ensure teardown is run per test #1100

merged 3 commits into from
Oct 12, 2021

Conversation

BenWhitehead
Copy link
Collaborator

  • Refactor teardown function to be tolerant of multiple objects being created during a test (copy, rewrite etc.), and bucket and hmac key existence.
  • Fix RpcMethodMapping.Builder not correctly carrying though a specified tearDown operation
  • Update mapping 26 (storage.hmacKey.delete) not fully clearing the state it was modifying

Related to #1095 (I don't think cleanup is the sole reason for test failures, but this does seem to alleviate the failures for several of the seeds.)

* Refactor teardown function to be tolerant of multiple objects being created during a test (copy, rewrite etc.), and bucket and hmac key existence.
* Fix RpcMethodMapping.Builder not correctly carrying though a specified tearDown operation
* Update mapping 26 (storage.hmacKey.delete) not fully clearing the state it was modifying

Related to #1095 (I don't think cleanup is the sole reason for test failures, but this does seem to alleviate the failures for several of the seeds.)
@BenWhitehead BenWhitehead requested a review from frankyn October 12, 2021 18:38
@BenWhitehead BenWhitehead requested a review from a team as a code owner October 12, 2021 18:38
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Oct 12, 2021
@product-auto-label product-auto-label bot added the api: storage Issues related to the googleapis/java-storage API. label Oct 12, 2021
Copy link
Contributor

@frankyn frankyn left a comment

Choose a reason for hiding this comment

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

Overall LGTM, just have questions

@BenWhitehead BenWhitehead merged commit 17d884b into googleapis:main Oct 12, 2021
@BenWhitehead BenWhitehead deleted the retry-conformance-tests/teardown-fixup branch October 12, 2021 19:28
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 googleapis/java-storage API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants