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

Remove use of google_kms_crypto_key_iam_binding resource in tests, to make tests stable in overnight testing #6745

Conversation

modular-magician
Copy link
Collaborator

This PR will help address test failures like:

In this PR I remove google_kms_crypto_key_iam_binding from tests that use shared crypto keys. I have also removed that resource from tests that provision their own crypto keys to improve signal-to-noise when we need to solve this same problem again in future.

This PR stops these tests affecting shared crypto keys:

  • TestAccCloudFunctionsFunction_cmek (beta)
  • TestAccComputeInstance_confidentialHyperDiskBootDisk (beta)

Release Note Template for Downstream PRs (will be copied)


Derived from GoogleCloudPlatform/magic-modules#9621

…to make tests stable in overnight testing (#9621)

* Remove `google_kms_crypto_key_iam_binding` resources that affect shared crypto keys

* Remove unnecessary use of `google_kms_crypto_key_iam_binding` (no shared crypto key affected)

By removing this usage of `google_kms_crypto_key_iam_binding` I intend to make it easier to identify when acc tests affect shared resources that aren't provisioned by the test

* Remove unnecessary use of `google_kms_crypto_key_iam_binding` (no shared crypto key affected)

* Fix call to config function in acc test

* Update mmv1/third_party/terraform/services/cloudfunctions/resource_cloudfunctions_function_test.go.erb

* Skip `TestAccCloudFunctionsFunction_cmek` in VCR
[upstream:b4195a644bc0aaba2197195d3b8d472969c6a469]

Signed-off-by: Modular Magician <magic-modules@google.com>
@modular-magician modular-magician merged commit 6551c73 into hashicorp:main Dec 12, 2023
2 checks passed
@modular-magician modular-magician deleted the downstream-pr-b4195a644bc0aaba2197195d3b8d472969c6a469 branch November 16, 2024 03:39
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.

1 participant