Skip to content

Commit

Permalink
Add import to import-less beta test.
Browse files Browse the repository at this point in the history
  • Loading branch information
rileykarson committed Dec 6, 2018
1 parent e0756e8 commit 1bf6f7c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,12 @@ func TestAccContainerCluster_withNodeConfigTaints(t *testing.T) {
resource.TestCheckResourceAttr("google_container_cluster.with_node_config", "node_config.0.taint.#", "2"),
),
},
// Don't include an import step because beta features can't yet be imported.
{
ResourceName: "google_container_cluster.with_node_config",
ImportStateIdPrefix: "us-central1-f/",
ImportState: true,
ImportStateVerify: true,
},
// Once taints are in GA, consider merging this test with the _withNodeConfig test.
},
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,14 @@ func TestAccContainerNodePool_withNodeConfigTaints(t *testing.T) {
resource.TestCheckResourceAttr("google_container_node_pool.np_with_node_config", "node_config.0.taint.#", "2"),
),
},
// Don't include an import step because beta features can't yet be imported.
{
ResourceName: "google_container_node_pool.np_with_node_config",
ImportState: true,
ImportStateVerify: true,
// autoscaling.# = 0 is equivalent to no autoscaling at all,
// but will still cause an import diff
ImportStateVerifyIgnore: []string{"autoscaling.#"},
},
// Once taints are in GA, consider merging this test with the _withNodeConfig test.
},
})
Expand Down

0 comments on commit 1bf6f7c

Please sign in to comment.