Skip to content

Commit

Permalink
Update mmv1/third_party/terraform/services/backupdr/data_source_backu…
Browse files Browse the repository at this point in the history
…p_dr_management_server_test.go.erb

Co-authored-by: Shuya Ma <[email protected]>
  • Loading branch information
niharika-98 and shuyama1 authored Oct 24, 2023
1 parent 55d3d05 commit a55a814
Showing 1 changed file with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,24 +33,24 @@ func TestAccDataSourceGoogleBackupDRManagementServer_basic(t *testing.T) {

func testAccDataSourceGoogleBackupDRManagementServer_basic(context map[string]interface{}) string {
return acctest.Nprintf(`
resource "google_compute_network" "default" {
name = "vpc-network"
}

resource "google_backup_dr_management_server" "foo" {
location = "us-central1"
name = "management-server-1"
type = "BACKUP_RESTORE"
networks {
network = google_compute_network.default.id
peering_mode = "PRIVATE_SERVICE_ACCESS"
}
}

data "google_backup_dr_management_server" "foo" {
location = "us-central1"
depends_on = [ google_backup_dr_management_server.foo ]
}
resource "google_compute_network" "default" {
name = "vpc-network"
}

resource "google_backup_dr_management_server" "foo" {
location = "us-central1"
name = "management-server-1"
type = "BACKUP_RESTORE"
networks {
network = google_compute_network.default.id
peering_mode = "PRIVATE_SERVICE_ACCESS"
}
}

data "google_backup_dr_management_server" "foo" {
location = "us-central1"
depends_on = [ google_backup_dr_management_server.foo ]
}
`, context)
}
<% end -%>

0 comments on commit a55a814

Please sign in to comment.