Skip to content

Commit

Permalink
Update bootstrapped keys in Composer tests (GoogleCloudPlatform#12076)
Browse files Browse the repository at this point in the history
  • Loading branch information
shuyama1 authored and akshat-jindal-nit committed Nov 18, 2024
1 parent b0e1e76 commit 3cd18c1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ func TestAccComposerEnvironment_withWebServerConfig(t *testing.T) {
func TestAccComposerEnvironment_withEncryptionConfigComposer1(t *testing.T) {
t.Parallel()

kms := acctest.BootstrapKMSKeyInLocation(t, "us-central1")
kms := acctest.BootstrapKMSKeyWithPurposeInLocationAndName(t, "ENCRYPT_DECRYPT", "us-central1", "tf-bootstrap-composer1-key1")
pid := envvar.GetTestProjectFromEnv()
grantServiceAgentsRole(t, "service-", allComposerServiceAgents(), "roles/cloudkms.cryptoKeyEncrypterDecrypter")
envName := fmt.Sprintf("%s-%d", testComposerEnvironmentPrefix, acctest.RandInt(t))
Expand Down Expand Up @@ -360,7 +360,7 @@ func TestAccComposerEnvironment_withEncryptionConfigComposer2(t *testing.T) {
acctest.SkipIfVcr(t)
t.Parallel()

kms := acctest.BootstrapKMSKeyInLocation(t, "us-central1")
kms := acctest.BootstrapKMSKeyWithPurposeInLocationAndName(t, "ENCRYPT_DECRYPT", "us-central1", "tf-bootstrap-composer2-key1")
pid := envvar.GetTestProjectFromEnv()
grantServiceAgentsRole(t, "service-", allComposerServiceAgents(), "roles/cloudkms.cryptoKeyEncrypterDecrypter")
envName := fmt.Sprintf("%s-%d", testComposerEnvironmentPrefix, acctest.RandInt(t))
Expand Down

0 comments on commit 3cd18c1

Please sign in to comment.