Skip to content

Commit

Permalink
Add %s rnd to network and subnetwork
Browse files Browse the repository at this point in the history
  • Loading branch information
nickjacques committed Dec 20, 2017
1 parent 7d45f5f commit 853a9ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions google/resource_dataproc_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ resource "google_dataproc_cluster" "basic" {
func testAccDataprocCluster_basicWithInternalIpOnlyTrue(rnd string) string {
return fmt.Sprintf(`
resource "google_compute_network" "dataproc_network" {
name = "dataproc-internalip-network"
name = "dataproc-internalip-network-%s"
auto_create_subnetworks = false
}
Expand All @@ -686,7 +686,7 @@ resource "google_compute_network" "dataproc_network" {
# deploying a Dataproc cluster with Internal IP Only enabled.
#
resource "google_compute_subnetwork" "dataproc_subnetwork" {
name = "dataproc-internalip-subnetwork"
name = "dataproc-internalip-subnetwork-%s"
ip_cidr_range = "10.0.0.0/16"
network = "${google_compute_network.dataproc_network.self_link}"
region = "us-central1"
Expand Down Expand Up @@ -730,7 +730,7 @@ resource "google_dataproc_cluster" "basic" {
}
}
}
`, rnd)
`, rnd, rnd, rnd)
}

func testAccDataprocCluster_basicWithAutogenDeleteTrue(rnd string) string {
Expand Down

0 comments on commit 853a9ee

Please sign in to comment.