Skip to content

Commit b5af6cc

Browse files
committed
Fixing build fail
1 parent 2c690d0 commit b5af6cc

File tree

1 file changed

+1
-56
lines changed

1 file changed

+1
-56
lines changed

mmv1/third_party/terraform/services/redis/resource_redis_cluster_test.go.tmpl

+1-56
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package redis_test
22

33
import (
44
{{- if ne $.TargetVersionName "ga" }}
5-
"strings"
65
"os/exec"
76
{{ end }}
87
"fmt"
@@ -761,7 +760,6 @@ func testAccCheckRedisClusterExportBackup(t *testing.T, resourceName string, bac
761760
}
762761
}
763762

764-
765763
{{- if ne $.TargetVersionName "ga" }}
766764
// Validate that persistence is updated for the cluster
767765
func TestAccRedisCluster_persistenceUpdate(t *testing.T) {
@@ -1291,59 +1289,6 @@ func createRedisClusterResourceConfig(params *ClusterParams, isSecondaryCluster
12911289
`, params.ccrRole, pcBlock, scsBlock)
12921290
}
12931291

1294-
return fmt.Sprintf(`
1295-
resource "google_redis_cluster" "%s" {
1296-
provider = google-beta
1297-
name = "%s"
1298-
replica_count = %d
1299-
shard_count = %d
1300-
node_type = "%s"
1301-
deletion_protection_enabled = %v
1302-
region = "us-central1"
1303-
psc_configs {
1304-
network = google_compute_network.producer_net.id
1305-
}
1306-
redis_configs = {
1307-
%s
1308-
}
1309-
%s
1310-
%s
1311-
%s
1312-
%s
1313-
depends_on = [
1314-
%s
1315-
]
1316-
}
1317-
`,
1318-
tfClusterResourceName = "test_secondary"
1319-
clusterName = params.secondaryClusterName
1320-
dependsOnBlock = dependsOnBlock + ", google_redis_cluster.test"
1321-
1322-
// Construct cross_cluster_replication_config block
1323-
pcBlock := ``
1324-
scsBlock := ``
1325-
if params.ccrRole == "SECONDARY" {
1326-
pcBlock = fmt.Sprintf(`
1327-
primary_cluster {
1328-
cluster = google_redis_cluster.test.id
1329-
}
1330-
`)
1331-
} else if params.ccrRole == "PRIMARY" {
1332-
scsBlock = fmt.Sprintf(`
1333-
secondary_clusters {
1334-
cluster = google_redis_cluster.test.id
1335-
}
1336-
`)
1337-
}
1338-
crossClusterReplicationConfigBlock = fmt.Sprintf(`
1339-
cross_cluster_replication_config {
1340-
cluster_role = "%s"
1341-
%s
1342-
%s
1343-
}
1344-
`, params.ccrRole, pcBlock, scsBlock)
1345-
}
1346-
13471292
return fmt.Sprintf(`
13481293
resource "google_redis_cluster" "%s" {
13491294
provider = google-beta
@@ -1381,4 +1326,4 @@ func createRedisClusterResourceConfig(params *ClusterParams, isSecondaryCluster
13811326
crossClusterReplicationConfigBlock,
13821327
dependsOnBlock)
13831328
}
1384-
{{ end }}
1329+
{{ end }}

0 commit comments

Comments
 (0)