Skip to content

Commit

Permalink
fixup cluster_config.gce_cluster_config to include .0.
Browse files Browse the repository at this point in the history
  • Loading branch information
nickjacques committed Dec 20, 2017
1 parent dd4521c commit 365df40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions google/resource_dataproc_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func TestAccDataprocCluster_basic(t *testing.T) {
resource.TestCheckResourceAttrSet("google_dataproc_cluster.basic", "cluster_config.0.bucket"),

// Default behavior is for Dataproc to not use only internal IP addresses
resource.TestCheckResourceAttr("google_dataproc_cluster.basic", "cluster_config.gce_cluster_config.internal_ip_only", "false"),
resource.TestCheckResourceAttr("google_dataproc_cluster.basic", "cluster_config.0.gce_cluster_config.internal_ip_only", "false"),

// Expect 1 master instances with computed values
resource.TestCheckResourceAttr("google_dataproc_cluster.basic", "cluster_config.0.master_config.#", "1"),
Expand Down Expand Up @@ -152,7 +152,7 @@ func TestAccDataprocCluster_basicWithInternalIpOnlyTrue(t *testing.T) {
testAccCheckDataprocClusterExists("google_dataproc_cluster.basic", &cluster),

// Testing behavior for Dataproc to use only internal IP addresses
resource.TestCheckResourceAttr("google_dataproc_cluster.basic", "cluster_config.gce_cluster_config.internal_ip_only", "true"),
resource.TestCheckResourceAttr("google_dataproc_cluster.basic", "cluster_config.0.gce_cluster_config.internal_ip_only", "true"),
),
},
},
Expand Down

0 comments on commit 365df40

Please sign in to comment.