From 853a9ee787380cd662fc6ab4a94a0f5cfcaec3e5 Mon Sep 17 00:00:00 2001 From: Nick Jacques Date: Wed, 20 Dec 2017 17:18:48 -0600 Subject: [PATCH] Add %s rnd to network and subnetwork --- google/resource_dataproc_cluster_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/google/resource_dataproc_cluster_test.go b/google/resource_dataproc_cluster_test.go index 38e4f1c44ee..d99e07c4e19 100644 --- a/google/resource_dataproc_cluster_test.go +++ b/google/resource_dataproc_cluster_test.go @@ -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 } @@ -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" @@ -730,7 +730,7 @@ resource "google_dataproc_cluster" "basic" { } } } -`, rnd) +`, rnd, rnd, rnd) } func testAccDataprocCluster_basicWithAutogenDeleteTrue(rnd string) string {