Skip to content

Commit 385182c

Browse files
Fix privateca_certificate tests using static-ca-pool to use bootstrap function (#7193) (#5152)
Signed-off-by: Modular Magician <[email protected]>
1 parent 418ce50 commit 385182c

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.changelog/7193.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:none
2+
3+
```

google-beta/resource_privateca_certificate_generated_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func TestAccPrivatecaCertificate_privatecaCertificateConfigExample(t *testing.T)
2828

2929
context := map[string]interface{}{
3030
"project": getTestProjectFromEnv(),
31-
"pool": "static-ca-pool",
31+
"pool": BootstrapSharedCaPoolInLocation(t, "us-central1"),
3232
"random_suffix": randString(t, 10),
3333
}
3434

@@ -142,7 +142,7 @@ func TestAccPrivatecaCertificate_privatecaCertificateWithTemplateExample(t *test
142142

143143
context := map[string]interface{}{
144144
"project": getTestProjectFromEnv(),
145-
"pool": "static-ca-pool",
145+
"pool": BootstrapSharedCaPoolInLocation(t, "us-central1"),
146146
"random_suffix": randString(t, 10),
147147
}
148148

@@ -300,7 +300,7 @@ func TestAccPrivatecaCertificate_privatecaCertificateCsrExample(t *testing.T) {
300300

301301
context := map[string]interface{}{
302302
"project": getTestProjectFromEnv(),
303-
"pool": "static-ca-pool",
303+
"pool": BootstrapSharedCaPoolInLocation(t, "us-central1"),
304304
"random_suffix": randString(t, 10),
305305
}
306306

@@ -382,7 +382,7 @@ func TestAccPrivatecaCertificate_privatecaCertificateNoAuthorityExample(t *testi
382382

383383
context := map[string]interface{}{
384384
"project": getTestProjectFromEnv(),
385-
"pool": "static-ca-pool",
385+
"pool": BootstrapSharedCaPoolInLocation(t, "us-central1"),
386386
"random_suffix": randString(t, 10),
387387
}
388388

0 commit comments

Comments
 (0)