Skip to content

Conversation

@roaks3
Copy link
Contributor

@roaks3 roaks3 commented Dec 21, 2022

fixes hashicorp/terraform-provider-google#13259

A large number of our PRs are running the TestAccLoggingBucketConfigProject_cmekSettings in RECORDING mode, even if they have not modified any related code. This is happening because the rotation_period for the crypto_keys introduces a time element that changes on subsequent runs, and the API requests cannot match against previous calls.

This PR removes the rotation_period config to hopefully make the API calls matchable again.

If this PR is for Terraform, I acknowledge that I have:

  • Searched through the issue tracker for an open issue that this either resolves or contributes to, commented on it to claim it, and written "fixes {url}" or "part of {url}" in this PR description. If there were no relevant open issues, I opened one and commented that I would like to work on it (not necessary for very small changes).
  • Generated Terraform, and ran make test and make lint to ensure it passes unit and linter tests.
  • Ensured that all new fields I added that can be set by a user appear in at least one example (for generated resources) or third_party test (for handwritten resources or update tests).
  • Ran relevant acceptance tests (If the acceptance tests do not yet pass or you are unable to run them, please let your reviewer know).
  • Read the Release Notes Guide before writing my release note below.

Release Note Template for Downstream PRs (will be copied)


…cmekSettings so VCR tests can match to prior runs
@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 1 file changed, 2 deletions(-))
Terraform Beta: Diff ( 1 file changed, 2 deletions(-))
TF Validator: Diff ( 2 files changed, 3 insertions(+), 3 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2370
Passed tests 2119
Skipped tests: 247
Failed tests: 4

Action taken

Triggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed tests
TestAccContainerCluster_withInvalidGatewayApiConfigChannel|TestAccComputeForwardingRule_update|TestAccDataSourceGoogleServiceAccountJwt|TestAccLoggingBucketConfigProject_cmekSettings

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccContainerCluster_withInvalidGatewayApiConfigChannel[Debug log]
TestAccComputeForwardingRule_update[Debug log]
TestAccDataSourceGoogleServiceAccountJwt[Debug log]
TestAccLoggingBucketConfigProject_cmekSettings[Debug log]

All tests passed
View the build log or the debug log for each test

@roaks3 roaks3 requested a review from zli82016 December 21, 2022 21:11
@roaks3
Copy link
Contributor Author

roaks3 commented Dec 21, 2022

@zli82016 I think I have the right solution here, but wanted to confirm with you that it makes sense and that the rotation_period can be safely removed.

@zli82016 zli82016 requested review from a team and c2thorn and removed request for a team December 21, 2022 21:28
@zli82016
Copy link
Member

zli82016 commented Dec 21, 2022

Added @c2thorn as the secondary reviewer. Please wait for @c2thorn review.

Copy link
Member

@zli82016 zli82016 left a comment

Choose a reason for hiding this comment

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

LGTM. rotation_period is optional and can be removed.

Copy link
Member

@c2thorn c2thorn left a comment

Choose a reason for hiding this comment

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

nice find.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failing test(s): TestAccLoggingBucketConfigProject_cmekSettings

4 participants