forked from GoogleCloudPlatform/magic-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove use of
google_kms_crypto_key_iam_binding
resource in tests, …
…to make tests stable in overnight testing (GoogleCloudPlatform#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
- Loading branch information
1 parent
e87ca38
commit b4195a6
Showing
4 changed files
with
31 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6905,12 +6905,10 @@ data "google_compute_image" "my_image" { | |
|
||
data "google_project" "project" {} | ||
|
||
resource "google_kms_crypto_key_iam_binding" "crypto_key" { | ||
resource "google_kms_crypto_key_iam_member" "crypto_key" { | ||
crypto_key_id = "%{key_name}" | ||
role = "roles/cloudkms.cryptoKeyEncrypterDecrypter" | ||
members = [ | ||
"serviceAccount:${data.google_project.project.number}[email protected]", | ||
] | ||
member = "serviceAccount:${data.google_project.project.number}[email protected]" | ||
} | ||
|
||
resource "google_compute_instance" "foobar" { | ||
|
@@ -6932,7 +6930,7 @@ resource "google_compute_instance" "foobar" { | |
network_interface { | ||
network = "default" | ||
} | ||
depends_on = [google_kms_crypto_key_iam_binding.crypto_key] | ||
depends_on = [google_kms_crypto_key_iam_member.crypto_key] | ||
|
||
} | ||
`, context) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters