From c33b33e1ccdda5d03df137b67700513f887ddf02 Mon Sep 17 00:00:00 2001 From: Dana Hoffman Date: Mon, 12 Mar 2018 09:06:05 -0700 Subject: [PATCH] expect 4 labels in dataproc cluster test (#1182) --- google/resource_dataproc_cluster_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/google/resource_dataproc_cluster_test.go b/google/resource_dataproc_cluster_test.go index 2de310db..877cee9e 100644 --- a/google/resource_dataproc_cluster_test.go +++ b/google/resource_dataproc_cluster_test.go @@ -410,14 +410,14 @@ func TestAccDataprocCluster_withLabels(t *testing.T) { Check: resource.ComposeTestCheckFunc( testAccCheckDataprocClusterExists("google_dataproc_cluster.with_labels", &cluster), - // We only provide one, but GCP adds two, so expect 3. This means unfortunately a + // We only provide one, but GCP adds three, so expect 4. This means unfortunately a // diff will exist unless the user adds these in. An alternative approach would // be to follow the same approach as properties, i.e. split in into labels // and override_labels // // The config is currently configured with ignore_changes = ["labels"] to handle this // - resource.TestCheckResourceAttr("google_dataproc_cluster.with_labels", "labels.%", "3"), + resource.TestCheckResourceAttr("google_dataproc_cluster.with_labels", "labels.%", "4"), resource.TestCheckResourceAttr("google_dataproc_cluster.with_labels", "labels.key1", "value1"), ), },