diff --git a/mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go b/mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go index dfb861cdb3fd..5f3a0bfe3ac1 100644 --- a/mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go +++ b/mmv1/third_party/terraform/services/alloydb/resource_alloydb_secondary_cluster_test.go @@ -32,21 +32,21 @@ func testAccAlloydbCluster_secondaryClusterMandatoryFields(context map[string]in return acctest.Nprintf(` resource "google_alloydb_cluster" "secondary" { - cluster_id = "tf-test-alloydb-secondary-cluster%{random_suffix}" - location = "us-east1" - network = "projects/${data.google_project.project.number}/global/networks/${google_compute_network.default.name}" + cluster_id = "tf-test-alloydb-secondary-cluster%{random_suffix}" + location = "us-east1" + network = "projects/${data.google_project.project.number}/global/networks/${google_compute_network.default.name}" - continuous_backup_config { - enabled = false - } + continuous_backup_config { + enabled = false + } - cluster_type = "SECONDARY" + cluster_type = "SECONDARY" - secondary_config { - primary_cluster_name = google_alloydb_cluster.default.name - } + secondary_config { + primary_cluster_name = google_alloydb_cluster.default.name + } - depends_on = [google_alloydb_cluster.default] + depends_on = [google_alloydb_cluster.default] } resource "google_alloydb_cluster" "default" { @@ -87,17 +87,17 @@ func testAccAlloydbCluster_secondaryClusterMissingSecondaryConfig(context map[st return acctest.Nprintf(` resource "google_alloydb_cluster" "secondary" { - cluster_id = "tf-test-alloydb-secondary-cluster%{random_suffix}" - location = "us-east1" - network = "projects/${data.google_project.project.number}/global/networks/${google_compute_network.default.name}" + cluster_id = "tf-test-alloydb-secondary-cluster%{random_suffix}" + location = "us-east1" + network = "projects/${data.google_project.project.number}/global/networks/${google_compute_network.default.name}" - continuous_backup_config { - enabled = false - } + continuous_backup_config { + enabled = false + } - cluster_type = "SECONDARY" + cluster_type = "SECONDARY" - depends_on = [google_alloydb_cluster.default] + depends_on = [google_alloydb_cluster.default] } resource "google_alloydb_cluster" "default" { @@ -139,18 +139,19 @@ func testAccAlloydbCluster_secondaryClusterDefinedSecondaryConfigButMissingClust return acctest.Nprintf(` resource "google_alloydb_cluster" "secondary" { - cluster_id = "tf-test-alloydb-secondary-cluster%{random_suffix}" - location = "us-east1" - network = "projects/${data.google_project.project.number}/global/networks/${google_compute_network.default.name}" + cluster_id = "tf-test-alloydb-secondary-cluster%{random_suffix}" + location = "us-east1" + network = "projects/${data.google_project.project.number}/global/networks/${google_compute_network.default.name}" - continuous_backup_config { - enabled = false - } - - secondary_config { - primary_cluster_name = google_alloydb_cluster.default.name - } - depends_on = [google_alloydb_cluster.default] + continuous_backup_config { + enabled = false + } + + secondary_config { + primary_cluster_name = google_alloydb_cluster.default.name + } + + depends_on = [google_alloydb_cluster.default] } resource "google_alloydb_cluster" "default" { @@ -192,20 +193,21 @@ func testAccAlloydbCluster_secondaryClusterDefinedSecondaryConfigButClusterTypeI return acctest.Nprintf(` resource "google_alloydb_cluster" "secondary" { - cluster_id = "tf-test-alloydb-secondary-cluster%{random_suffix}" - location = "us-east1" - network = "projects/${data.google_project.project.number}/global/networks/${google_compute_network.default.name}" + cluster_id = "tf-test-alloydb-secondary-cluster%{random_suffix}" + location = "us-east1" + network = "projects/${data.google_project.project.number}/global/networks/${google_compute_network.default.name}" - continuous_backup_config { - enabled = false - } + continuous_backup_config { + enabled = false + } - cluster_type = "PRIMARY" - - secondary_config { - primary_cluster_name = google_alloydb_cluster.default.name - } - depends_on = [google_alloydb_cluster.default] + cluster_type = "PRIMARY" + + secondary_config { + primary_cluster_name = google_alloydb_cluster.default.name + } + + depends_on = [google_alloydb_cluster.default] } resource "google_alloydb_cluster" "default" {