mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-09-28 22:16:04 +00:00
Fixup non-Removed ISV tests (#3443)
<!-- This change is generated by MagicModules. --> Original Author: @rileykarson
This commit is contained in:
parent
0965a6c8d8
commit
dc95bd3468
@ -99,7 +99,7 @@ func TestAccContainerNodePool_withNodeConfig(t *testing.T) {
|
|||||||
ImportStateVerify: true,
|
ImportStateVerify: true,
|
||||||
// autoscaling.# = 0 is equivalent to no autoscaling at all,
|
// autoscaling.# = 0 is equivalent to no autoscaling at all,
|
||||||
// but will still cause an import diff
|
// but will still cause an import diff
|
||||||
ImportStateVerifyIgnore: []string{"autoscaling.#"},
|
ImportStateVerifyIgnore: []string{"autoscaling.#", "max_pods_per_node"},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Config: testAccContainerNodePool_withNodeConfigUpdate(cluster, nodePool),
|
Config: testAccContainerNodePool_withNodeConfigUpdate(cluster, nodePool),
|
||||||
@ -406,6 +406,30 @@ 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))
|
||||||
|
|
||||||
|
resource.Test(t, resource.TestCase{
|
||||||
|
PreCheck: func() { testAccPreCheck(t) },
|
||||||
|
Providers: testAccProviders,
|
||||||
|
CheckDestroy: testAccCheckContainerNodePoolDestroy,
|
||||||
|
Steps: []resource.TestStep{
|
||||||
|
{
|
||||||
|
Config: testAccContainerNodePool_regionalClusters(cluster, np),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ResourceName: "google_container_node_pool.np",
|
||||||
|
ImportState: true,
|
||||||
|
ImportStateVerify: true,
|
||||||
|
ImportStateVerifyIgnore: []string{"max_pods_per_node"},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
func testAccCheckContainerNodePoolDestroy(s *terraform.State) error {
|
func testAccCheckContainerNodePoolDestroy(s *terraform.State) error {
|
||||||
config := testAccProvider.Meta().(*Config)
|
config := testAccProvider.Meta().(*Config)
|
||||||
|
|
||||||
@ -440,29 +464,6 @@ func testAccCheckContainerNodePoolDestroy(s *terraform.State) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
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))
|
|
||||||
|
|
||||||
resource.Test(t, resource.TestCase{
|
|
||||||
PreCheck: func() { testAccPreCheck(t) },
|
|
||||||
Providers: testAccProviders,
|
|
||||||
CheckDestroy: testAccCheckContainerNodePoolDestroy,
|
|
||||||
Steps: []resource.TestStep{
|
|
||||||
{
|
|
||||||
Config: testAccContainerNodePool_regionalClusters(cluster, np),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
ResourceName: "google_container_node_pool.np",
|
|
||||||
ImportState: true,
|
|
||||||
ImportStateVerify: true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
func testAccContainerNodePool_basic(cluster, np string) string {
|
func testAccContainerNodePool_basic(cluster, np string) string {
|
||||||
return fmt.Sprintf(`
|
return fmt.Sprintf(`
|
||||||
resource "google_container_cluster" "cluster" {
|
resource "google_container_cluster" "cluster" {
|
||||||
|
@ -92,6 +92,7 @@ func TestAccProject_billing(t *testing.T) {
|
|||||||
ResourceName: "google_project.acceptance",
|
ResourceName: "google_project.acceptance",
|
||||||
ImportState: true,
|
ImportState: true,
|
||||||
ImportStateVerify: true,
|
ImportStateVerify: true,
|
||||||
|
ImportStateVerifyIgnore: []string{"skip_delete"},
|
||||||
},
|
},
|
||||||
// Update to a different billing account
|
// Update to a different billing account
|
||||||
{
|
{
|
||||||
@ -132,6 +133,7 @@ func TestAccProject_labels(t *testing.T) {
|
|||||||
ResourceName: "google_project.acceptance",
|
ResourceName: "google_project.acceptance",
|
||||||
ImportState: true,
|
ImportState: true,
|
||||||
ImportStateVerify: true,
|
ImportStateVerify: true,
|
||||||
|
ImportStateVerifyIgnore: []string{"skip_delete"},
|
||||||
},
|
},
|
||||||
// update project with labels
|
// update project with labels
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user