diff --git a/google/resource_container_node_pool_test.go b/google/resource_container_node_pool_test.go index e51cf60f21c..3c114f6f4ac 100644 --- a/google/resource_container_node_pool_test.go +++ b/google/resource_container_node_pool_test.go @@ -12,8 +12,8 @@ import ( func TestAccContainerNodePool_basic(t *testing.T) { t.Parallel() - cluster := fmt.Sprintf("tf-nodepool-test-%s", acctest.RandString(10)) - np := fmt.Sprintf("tf-nodepool-test-%s", acctest.RandString(10)) + cluster := fmt.Sprintf("tf-test-cluster-%s", acctest.RandString(10)) + np := fmt.Sprintf("tf-test-nodepool-%s", acctest.RandString(10)) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, @@ -35,8 +35,8 @@ func TestAccContainerNodePool_basic(t *testing.T) { func TestAccContainerNodePool_maxPodsPerNode(t *testing.T) { t.Parallel() - cluster := fmt.Sprintf("tf-nodepool-test-%s", acctest.RandString(10)) - np := fmt.Sprintf("tf-nodepool-test-%s", acctest.RandString(10)) + cluster := fmt.Sprintf("tf-test-cluster-%s", acctest.RandString(10)) + np := fmt.Sprintf("tf-test-nodepool-%s", acctest.RandString(10)) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, @@ -58,7 +58,7 @@ func TestAccContainerNodePool_maxPodsPerNode(t *testing.T) { func TestAccContainerNodePool_namePrefix(t *testing.T) { t.Parallel() - cluster := fmt.Sprintf("tf-nodepool-test-%s", acctest.RandString(10)) + cluster := fmt.Sprintf("tf-test-cluster-%s", acctest.RandString(10)) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, @@ -81,7 +81,7 @@ func TestAccContainerNodePool_namePrefix(t *testing.T) { func TestAccContainerNodePool_noName(t *testing.T) { t.Parallel() - cluster := fmt.Sprintf("tf-nodepool-test-%s", acctest.RandString(10)) + cluster := fmt.Sprintf("tf-test-cluster-%s", acctest.RandString(10)) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, @@ -103,8 +103,8 @@ func TestAccContainerNodePool_noName(t *testing.T) { func TestAccContainerNodePool_withNodeConfig(t *testing.T) { t.Parallel() - cluster := fmt.Sprintf("tf-nodepool-test-%s", acctest.RandString(10)) - nodePool := fmt.Sprintf("tf-nodepool-test-%s", acctest.RandString(10)) + cluster := fmt.Sprintf("tf-test-cluster-%s", acctest.RandString(10)) + nodePool := fmt.Sprintf("tf-test-nodepool-%s", acctest.RandString(10)) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, @@ -160,8 +160,8 @@ func TestAccContainerNodePool_withGPU(t *testing.T) { func TestAccContainerNodePool_withManagement(t *testing.T) { t.Parallel() - cluster := fmt.Sprintf("tf-nodepool-test-%s", acctest.RandString(10)) - nodePool := fmt.Sprintf("tf-nodepool-test-%s", acctest.RandString(10)) + cluster := fmt.Sprintf("tf-test-cluster-%s", acctest.RandString(10)) + nodePool := fmt.Sprintf("tf-test-nodepool-%s", acctest.RandString(10)) management := ` management { auto_repair = "true" @@ -233,8 +233,8 @@ func TestAccContainerNodePool_withNodeConfigScopeAlias(t *testing.T) { func TestAccContainerNodePool_regionalAutoscaling(t *testing.T) { t.Parallel() - cluster := fmt.Sprintf("tf-nodepool-test-%s", acctest.RandString(10)) - np := fmt.Sprintf("tf-nodepool-test-%s", acctest.RandString(10)) + cluster := fmt.Sprintf("tf-test-cluster-%s", acctest.RandString(10)) + np := fmt.Sprintf("tf-test-nodepool-%s", acctest.RandString(10)) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, @@ -287,8 +287,8 @@ func TestAccContainerNodePool_regionalAutoscaling(t *testing.T) { func TestAccContainerNodePool_autoscaling(t *testing.T) { t.Parallel() - cluster := fmt.Sprintf("tf-nodepool-test-%s", acctest.RandString(10)) - np := fmt.Sprintf("tf-nodepool-test-%s", acctest.RandString(10)) + cluster := fmt.Sprintf("tf-test-cluster-%s", acctest.RandString(10)) + np := fmt.Sprintf("tf-test-nodepool-%s", acctest.RandString(10)) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, @@ -341,8 +341,8 @@ func TestAccContainerNodePool_autoscaling(t *testing.T) { func TestAccContainerNodePool_resize(t *testing.T) { t.Parallel() - cluster := fmt.Sprintf("tf-nodepool-test-%s", acctest.RandString(10)) - np := fmt.Sprintf("tf-nodepool-test-%s", acctest.RandString(10)) + cluster := fmt.Sprintf("tf-test-cluster-%s", acctest.RandString(10)) + np := fmt.Sprintf("tf-test-nodepool-%s", acctest.RandString(10)) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, @@ -378,8 +378,8 @@ func TestAccContainerNodePool_resize(t *testing.T) { func TestAccContainerNodePool_version(t *testing.T) { t.Parallel() - cluster := fmt.Sprintf("tf-nodepool-test-%s", acctest.RandString(10)) - np := fmt.Sprintf("tf-nodepool-test-%s", acctest.RandString(10)) + cluster := fmt.Sprintf("tf-test-cluster-%s", acctest.RandString(10)) + np := fmt.Sprintf("tf-test-nodepool-%s", acctest.RandString(10)) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, @@ -417,8 +417,8 @@ func TestAccContainerNodePool_version(t *testing.T) { func TestAccContainerNodePool_regionalClusters(t *testing.T) { t.Parallel() - cluster := fmt.Sprintf("tf-nodepool-test-%s", acctest.RandString(10)) - np := fmt.Sprintf("tf-nodepool-test-%s", acctest.RandString(10)) + cluster := fmt.Sprintf("tf-test-cluster-%s", acctest.RandString(10)) + np := fmt.Sprintf("tf-test-nodepool-%s", acctest.RandString(10)) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, @@ -440,8 +440,8 @@ func TestAccContainerNodePool_regionalClusters(t *testing.T) { func TestAccContainerNodePool_012_ConfigModeAttr(t *testing.T) { t.Parallel() - cluster := fmt.Sprintf("tf-nodepool-test-%s", acctest.RandString(10)) - np := fmt.Sprintf("tf-nodepool-test-%s", acctest.RandString(10)) + cluster := fmt.Sprintf("tf-test-cluster-%s", acctest.RandString(10)) + np := fmt.Sprintf("tf-test-nodepool-%s", acctest.RandString(10)) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, @@ -471,8 +471,8 @@ func TestAccContainerNodePool_012_ConfigModeAttr(t *testing.T) { func TestAccContainerNodePool_EmptyGuestAccelerator(t *testing.T) { t.Parallel() - cluster := fmt.Sprintf("tf-nodepool-test-%s", acctest.RandString(10)) - np := fmt.Sprintf("tf-nodepool-test-%s", acctest.RandString(10)) + cluster := fmt.Sprintf("tf-test-cluster-%s", acctest.RandString(10)) + np := fmt.Sprintf("tf-test-nodepool-%s", acctest.RandString(10)) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, @@ -516,8 +516,8 @@ func TestAccContainerNodePool_EmptyGuestAccelerator(t *testing.T) { func TestAccContainerNodePool_shieldedInstanceConfig(t *testing.T) { t.Parallel() - cluster := fmt.Sprintf("tf-nodepool-test-%s", acctest.RandString(10)) - np := fmt.Sprintf("tf-nodepool-test-%s", acctest.RandString(10)) + cluster := fmt.Sprintf("tf-test-cluster-%s", acctest.RandString(10)) + np := fmt.Sprintf("tf-test-nodepool-%s", acctest.RandString(10)) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, @@ -591,7 +591,7 @@ resource "google_container_node_pool" "np" { func testAccContainerNodePool_maxPodsPerNode(cluster, np string) string { return fmt.Sprintf(` resource "google_compute_network" "container_network" { - name = "container-net-%s" + name = "tf-test-container-net-%s" auto_create_subnetworks = false } @@ -922,7 +922,7 @@ data "google_container_engine_versions" "central1c" { } resource "google_container_cluster" "cluster" { - name = "tf-cluster-nodepool-test-%s" + name = "tf-test-cluster-%s" location = "us-central1-c" initial_node_count = 1 node_version = data.google_container_engine_versions.central1c.latest_node_version @@ -930,7 +930,7 @@ resource "google_container_cluster" "cluster" { } resource "google_container_node_pool" "np_with_gpu" { - name = "tf-nodepool-test-%s" + name = "tf-test-nodepool-%s" location = "us-central1-c" cluster = google_container_cluster.cluster.name @@ -965,13 +965,13 @@ resource "google_container_node_pool" "np_with_gpu" { func testAccContainerNodePool_withNodeConfigScopeAlias() string { return fmt.Sprintf(` resource "google_container_cluster" "cluster" { - name = "tf-cluster-nodepool-test-%s" + name = "tf-test-cluster-%s" location = "us-central1-a" initial_node_count = 1 } resource "google_container_node_pool" "np_with_node_config_scope_alias" { - name = "tf-nodepool-test-%s" + name = "tf-test-nodepool-%s" location = "us-central1-a" cluster = google_container_cluster.cluster.name initial_node_count = 1