@@ -28,7 +28,7 @@ import (
28
28
func TestAccAlloydbCluster_secondaryClusterMandatoryFields (t * testing.T ) {
29
29
t .Parallel ()
30
30
context := map [string ]interface {}{
31
- "network_name" : acctest .BootstrapSharedServiceNetworkingConnection (t , "alloydbinstance-network-config -1" ),
31
+ "network_name" : acctest .BootstrapSharedServiceNetworkingConnection (t , "alloydb -1" ),
32
32
"random_suffix" : acctest .RandString (t , 10 ),
33
33
}
34
34
@@ -102,7 +102,7 @@ func TestAccAlloydbCluster_secondaryClusterMissingSecondaryConfig(t *testing.T)
102
102
t .Parallel ()
103
103
104
104
context := map [string ]interface {}{
105
- "network_name" : acctest .BootstrapSharedServiceNetworkingConnection (t , "alloydbinstance-network-config -1" ),
105
+ "network_name" : acctest .BootstrapSharedServiceNetworkingConnection (t , "alloydb -1" ),
106
106
"random_suffix" : acctest .RandString (t , 10 ),
107
107
}
108
108
@@ -167,7 +167,7 @@ func TestAccAlloydbCluster_secondaryClusterDefinedSecondaryConfigButMissingClust
167
167
t .Parallel ()
168
168
169
169
context := map [string ]interface {}{
170
- "network_name" : acctest .BootstrapSharedServiceNetworkingConnection (t , "alloydbinstance-network-config -1" ),
170
+ "network_name" : acctest .BootstrapSharedServiceNetworkingConnection (t , "alloydb -1" ),
171
171
"random_suffix" : acctest .RandString (t , 10 ),
172
172
}
173
173
@@ -235,7 +235,7 @@ func TestAccAlloydbCluster_secondaryClusterDefinedSecondaryConfigButClusterTypeI
235
235
t .Parallel ()
236
236
237
237
context := map [string ]interface {}{
238
- "network_name" : acctest .BootstrapSharedServiceNetworkingConnection (t , "alloydbinstance-network-config -1" ),
238
+ "network_name" : acctest .BootstrapSharedServiceNetworkingConnection (t , "alloydb -1" ),
239
239
"random_suffix" : acctest .RandString (t , 10 ),
240
240
}
241
241
@@ -304,7 +304,7 @@ func TestAccAlloydbCluster_secondaryClusterUpdate(t *testing.T) {
304
304
t .Parallel ()
305
305
306
306
context := map [string ]interface {}{
307
- "network_name" : acctest .BootstrapSharedServiceNetworkingConnection (t , "alloydbinstance-network-config -1" ),
307
+ "network_name" : acctest .BootstrapSharedServiceNetworkingConnection (t , "alloydb -1" ),
308
308
"random_suffix" : acctest .RandString (t , 10 ),
309
309
}
310
310
@@ -390,7 +390,7 @@ func TestAccAlloydbCluster_secondaryClusterUsingCMEK(t *testing.T) {
390
390
t .Parallel ()
391
391
392
392
context := map [string ]interface {}{
393
- "network_name" : acctest .BootstrapSharedServiceNetworkingConnection (t , "alloydbinstance-network-config -1" ),
393
+ "network_name" : acctest .BootstrapSharedServiceNetworkingConnection (t , "alloydb -1" ),
394
394
"random_suffix" : acctest .RandString (t , 10 ),
395
395
"kms_key_name" : acctest .BootstrapKMSKeyWithPurposeInLocationAndName (t , "ENCRYPT_DECRYPT" , "us-east1" , "tf-bootstrap-alloydb-secondary-key1" ).CryptoKey .Name ,
396
396
}
@@ -478,7 +478,7 @@ func TestAccAlloydbCluster_secondaryClusterWithNetworkConfig(t *testing.T) {
478
478
t .Parallel ()
479
479
480
480
context := map [string ]interface {}{
481
- "network_name" : acctest .BootstrapSharedServiceNetworkingConnection (t , "alloydbinstance-network-config -1" ),
481
+ "network_name" : acctest .BootstrapSharedServiceNetworkingConnection (t , "alloydb -1" ),
482
482
"random_suffix" : acctest .RandString (t , 10 ),
483
483
}
484
484
@@ -552,8 +552,8 @@ func TestAccAlloydbCluster_secondaryClusterWithNetworkConfigAndAllocatedIPRange(
552
552
t .Parallel ()
553
553
554
554
context := map [string ]interface {}{
555
- "address_name" : acctest .BootstrapSharedTestGlobalAddress (t , "alloydbinstance-network-config -1" ),
556
- "network_name" : acctest .BootstrapSharedServiceNetworkingConnection (t , "alloydbinstance-network-config -1" ),
555
+ "address_name" : acctest .BootstrapSharedTestGlobalAddress (t , "alloydb -1" ),
556
+ "network_name" : acctest .BootstrapSharedServiceNetworkingConnection (t , "alloydb -1" ),
557
557
"random_suffix" : acctest .RandString (t , 10 ),
558
558
}
559
559
@@ -635,7 +635,7 @@ func TestAccAlloydbCluster_secondaryClusterPromote(t *testing.T) {
635
635
context := map [string ]interface {}{
636
636
"random_suffix" : acctest .RandString (t , 10 ),
637
637
"secondary_cluster_location" : "us-east1" ,
638
- "network_name" : acctest .BootstrapSharedServiceNetworkingConnection (t , "alloydbinstance-network-config -1" ),
638
+ "network_name" : acctest .BootstrapSharedServiceNetworkingConnection (t , "alloydb -1" ),
639
639
}
640
640
641
641
acctest .VcrTest (t , resource.TestCase {
@@ -790,7 +790,7 @@ func TestAccAlloydbCluster_secondaryClusterPromoteAndSimultaneousUpdate(t *testi
790
790
context := map [string ]interface {}{
791
791
"random_suffix" : acctest .RandString (t , 10 ),
792
792
"secondary_cluster_location" : "us-east1" ,
793
- "network_name" : acctest .BootstrapSharedServiceNetworkingConnection (t , "alloydbinstance-network-config -1" ),
793
+ "network_name" : acctest .BootstrapSharedServiceNetworkingConnection (t , "alloydb -1" ),
794
794
}
795
795
796
796
acctest .VcrTest (t , resource.TestCase {
@@ -886,7 +886,7 @@ func TestAccAlloydbCluster_secondaryClusterPromoteAndDeleteOriginalPrimary(t *te
886
886
context := map [string ]interface {}{
887
887
"random_suffix" : acctest .RandString (t , 10 ),
888
888
"secondary_cluster_location" : "us-east1" ,
889
- "network_name" : acctest .BootstrapSharedServiceNetworkingConnection (t , "alloydbinstance-network-config -1" ),
889
+ "network_name" : acctest .BootstrapSharedServiceNetworkingConnection (t , "alloydb -1" ),
890
890
}
891
891
892
892
acctest .VcrTest (t , resource.TestCase {
@@ -969,7 +969,7 @@ func TestAccAlloydbCluster_secondaryClusterPromoteAndUpdate(t *testing.T) {
969
969
context := map [string ]interface {}{
970
970
"random_suffix" : acctest .RandString (t , 10 ),
971
971
"secondary_cluster_location" : "us-east1" ,
972
- "network_name" : acctest .BootstrapSharedServiceNetworkingConnection (t , "alloydbinstance-network-config -1" ),
972
+ "network_name" : acctest .BootstrapSharedServiceNetworkingConnection (t , "alloydb -1" ),
973
973
}
974
974
975
975
acctest .VcrTest (t , resource.TestCase {
@@ -1074,8 +1074,8 @@ func TestAccAlloydbCluster_secondaryClusterPromoteWithNetworkConfigAndAllocatedI
1074
1074
1075
1075
context := map [string ]interface {}{
1076
1076
"random_suffix" : acctest .RandString (t , 10 ),
1077
- "network_name" : acctest .BootstrapSharedServiceNetworkingConnection (t , "alloydbinstance-network-config -1" ),
1078
- "address_name" : acctest .BootstrapSharedTestGlobalAddress (t , "alloydbinstance-network-config -1" ),
1077
+ "network_name" : acctest .BootstrapSharedServiceNetworkingConnection (t , "alloydb -1" ),
1078
+ "address_name" : acctest .BootstrapSharedTestGlobalAddress (t , "alloydb -1" ),
1079
1079
}
1080
1080
1081
1081
acctest .VcrTest (t , resource.TestCase {
@@ -1242,7 +1242,7 @@ func TestAccAlloydbCluster_secondaryClusterPromoteAndAddAndDeleteAutomatedBackup
1242
1242
context := map [string ]interface {}{
1243
1243
"random_suffix" : acctest .RandString (t , 10 ),
1244
1244
"secondary_cluster_location" : "us-south1" ,
1245
- "network_name" : acctest .BootstrapSharedServiceNetworkingConnection (t , "alloydbinstance-network-config -1" ),
1245
+ "network_name" : acctest .BootstrapSharedServiceNetworkingConnection (t , "alloydb -1" ),
1246
1246
"hour" : 23 ,
1247
1247
}
1248
1248
@@ -1383,7 +1383,7 @@ func TestAccAlloydbCluster_secondaryClusterPromoteAndDeleteTimeBasedRetentionPol
1383
1383
context := map [string ]interface {}{
1384
1384
"random_suffix" : acctest .RandString (t , 10 ),
1385
1385
"secondary_cluster_location" : "us-south1" ,
1386
- "network_name" : acctest .BootstrapSharedServiceNetworkingConnection (t , "alloydbinstance-network-config -1" ),
1386
+ "network_name" : acctest .BootstrapSharedServiceNetworkingConnection (t , "alloydb -1" ),
1387
1387
}
1388
1388
1389
1389
acctest .VcrTest (t , resource.TestCase {
@@ -1605,7 +1605,7 @@ func TestAccAlloydbCluster_secondaryClusterPromoteAndAddContinuousBackupConfig(t
1605
1605
context := map [string ]interface {}{
1606
1606
"random_suffix" : acctest .RandString (t , 10 ),
1607
1607
"secondary_cluster_location" : "us-south1" ,
1608
- "network_name" : acctest .BootstrapSharedServiceNetworkingConnection (t , "alloydbinstance-network-config -1" ),
1608
+ "network_name" : acctest .BootstrapSharedServiceNetworkingConnection (t , "alloydb -1" ),
1609
1609
}
1610
1610
1611
1611
acctest .VcrTest (t , resource.TestCase {
0 commit comments