Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubham Sahu committed Sep 21, 2023
1 parent 79c86f3 commit 8b38b24
Showing 1 changed file with 44 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down Expand Up @@ -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" {
Expand Down Expand Up @@ -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" {
Expand Down Expand Up @@ -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" {
Expand Down

0 comments on commit 8b38b24

Please sign in to comment.