mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-09-28 22:16:04 +00:00
Ignore max_pods_per_node in import tests (#3438)
Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
parent
55c7a8b332
commit
5a7348d89d
@ -24,9 +24,10 @@ func TestAccContainerNodePool_basic(t *testing.T) {
|
|||||||
Config: testAccContainerNodePool_basic(cluster, np),
|
Config: testAccContainerNodePool_basic(cluster, np),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ResourceName: "google_container_node_pool.np",
|
ResourceName: "google_container_node_pool.np",
|
||||||
ImportState: true,
|
ImportState: true,
|
||||||
ImportStateVerify: true,
|
ImportStateVerify: true,
|
||||||
|
ImportStateVerifyIgnore: []string{"max_pods_per_node"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
@ -49,7 +50,7 @@ func TestAccContainerNodePool_namePrefix(t *testing.T) {
|
|||||||
ResourceName: "google_container_node_pool.np",
|
ResourceName: "google_container_node_pool.np",
|
||||||
ImportState: true,
|
ImportState: true,
|
||||||
ImportStateVerify: true,
|
ImportStateVerify: true,
|
||||||
ImportStateVerifyIgnore: []string{"name_prefix"},
|
ImportStateVerifyIgnore: []string{"name_prefix", "max_pods_per_node"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
@ -69,9 +70,10 @@ func TestAccContainerNodePool_noName(t *testing.T) {
|
|||||||
Config: testAccContainerNodePool_noName(cluster),
|
Config: testAccContainerNodePool_noName(cluster),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ResourceName: "google_container_node_pool.np",
|
ResourceName: "google_container_node_pool.np",
|
||||||
ImportState: true,
|
ImportState: true,
|
||||||
ImportStateVerify: true,
|
ImportStateVerify: true,
|
||||||
|
ImportStateVerifyIgnore: []string{"max_pods_per_node"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
@ -108,7 +110,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"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
@ -126,9 +128,10 @@ func TestAccContainerNodePool_withGPU(t *testing.T) {
|
|||||||
Config: testAccContainerNodePool_withGPU(),
|
Config: testAccContainerNodePool_withGPU(),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ResourceName: "google_container_node_pool.np_with_gpu",
|
ResourceName: "google_container_node_pool.np_with_gpu",
|
||||||
ImportState: true,
|
ImportState: true,
|
||||||
ImportStateVerify: true,
|
ImportStateVerify: true,
|
||||||
|
ImportStateVerifyIgnore: []string{"max_pods_per_node"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
@ -162,9 +165,10 @@ func TestAccContainerNodePool_withManagement(t *testing.T) {
|
|||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ResourceName: "google_container_node_pool.np_with_management",
|
ResourceName: "google_container_node_pool.np_with_management",
|
||||||
ImportState: true,
|
ImportState: true,
|
||||||
ImportStateVerify: true,
|
ImportStateVerify: true,
|
||||||
|
ImportStateVerifyIgnore: []string{"max_pods_per_node"},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Config: testAccContainerNodePool_withManagement(cluster, nodePool, management),
|
Config: testAccContainerNodePool_withManagement(cluster, nodePool, management),
|
||||||
@ -178,9 +182,10 @@ func TestAccContainerNodePool_withManagement(t *testing.T) {
|
|||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ResourceName: "google_container_node_pool.np_with_management",
|
ResourceName: "google_container_node_pool.np_with_management",
|
||||||
ImportState: true,
|
ImportState: true,
|
||||||
ImportStateVerify: true,
|
ImportStateVerify: true,
|
||||||
|
ImportStateVerifyIgnore: []string{"max_pods_per_node"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
@ -198,9 +203,10 @@ func TestAccContainerNodePool_withNodeConfigScopeAlias(t *testing.T) {
|
|||||||
Config: testAccContainerNodePool_withNodeConfigScopeAlias(),
|
Config: testAccContainerNodePool_withNodeConfigScopeAlias(),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ResourceName: "google_container_node_pool.np_with_node_config_scope_alias",
|
ResourceName: "google_container_node_pool.np_with_node_config_scope_alias",
|
||||||
ImportState: true,
|
ImportState: true,
|
||||||
ImportStateVerify: true,
|
ImportStateVerify: true,
|
||||||
|
ImportStateVerifyIgnore: []string{"max_pods_per_node"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
@ -226,9 +232,10 @@ func TestAccContainerNodePool_regionalAutoscaling(t *testing.T) {
|
|||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ResourceName: "google_container_node_pool.np",
|
ResourceName: "google_container_node_pool.np",
|
||||||
ImportState: true,
|
ImportState: true,
|
||||||
ImportStateVerify: true,
|
ImportStateVerify: true,
|
||||||
|
ImportStateVerifyIgnore: []string{"max_pods_per_node"},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Config: testAccContainerNodePool_updateAutoscaling(cluster, np),
|
Config: testAccContainerNodePool_updateAutoscaling(cluster, np),
|
||||||
@ -238,9 +245,10 @@ func TestAccContainerNodePool_regionalAutoscaling(t *testing.T) {
|
|||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ResourceName: "google_container_node_pool.np",
|
ResourceName: "google_container_node_pool.np",
|
||||||
ImportState: true,
|
ImportState: true,
|
||||||
ImportStateVerify: true,
|
ImportStateVerify: true,
|
||||||
|
ImportStateVerifyIgnore: []string{"max_pods_per_node"},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Config: testAccContainerNodePool_basic(cluster, np),
|
Config: testAccContainerNodePool_basic(cluster, np),
|
||||||
@ -255,7 +263,7 @@ func TestAccContainerNodePool_regionalAutoscaling(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"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
@ -280,9 +288,10 @@ func TestAccContainerNodePool_autoscaling(t *testing.T) {
|
|||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ResourceName: "google_container_node_pool.np",
|
ResourceName: "google_container_node_pool.np",
|
||||||
ImportState: true,
|
ImportState: true,
|
||||||
ImportStateVerify: true,
|
ImportStateVerify: true,
|
||||||
|
ImportStateVerifyIgnore: []string{"max_pods_per_node"},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Config: testAccContainerNodePool_updateAutoscaling(cluster, np),
|
Config: testAccContainerNodePool_updateAutoscaling(cluster, np),
|
||||||
@ -292,9 +301,10 @@ func TestAccContainerNodePool_autoscaling(t *testing.T) {
|
|||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ResourceName: "google_container_node_pool.np",
|
ResourceName: "google_container_node_pool.np",
|
||||||
ImportState: true,
|
ImportState: true,
|
||||||
ImportStateVerify: true,
|
ImportStateVerify: true,
|
||||||
|
ImportStateVerifyIgnore: []string{"max_pods_per_node"},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Config: testAccContainerNodePool_basic(cluster, np),
|
Config: testAccContainerNodePool_basic(cluster, np),
|
||||||
@ -309,7 +319,7 @@ func TestAccContainerNodePool_autoscaling(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"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
@ -333,9 +343,10 @@ func TestAccContainerNodePool_resize(t *testing.T) {
|
|||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ResourceName: "google_container_node_pool.np",
|
ResourceName: "google_container_node_pool.np",
|
||||||
ImportState: true,
|
ImportState: true,
|
||||||
ImportStateVerify: true,
|
ImportStateVerify: true,
|
||||||
|
ImportStateVerifyIgnore: []string{"max_pods_per_node"},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Config: testAccContainerNodePool_resize(cluster, np),
|
Config: testAccContainerNodePool_resize(cluster, np),
|
||||||
@ -344,9 +355,10 @@ func TestAccContainerNodePool_resize(t *testing.T) {
|
|||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ResourceName: "google_container_node_pool.np",
|
ResourceName: "google_container_node_pool.np",
|
||||||
ImportState: true,
|
ImportState: true,
|
||||||
ImportStateVerify: true,
|
ImportStateVerify: true,
|
||||||
|
ImportStateVerifyIgnore: []string{"max_pods_per_node"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
@ -367,25 +379,28 @@ func TestAccContainerNodePool_version(t *testing.T) {
|
|||||||
Config: testAccContainerNodePool_version(cluster, np),
|
Config: testAccContainerNodePool_version(cluster, np),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ResourceName: "google_container_node_pool.np",
|
ResourceName: "google_container_node_pool.np",
|
||||||
ImportState: true,
|
ImportState: true,
|
||||||
ImportStateVerify: true,
|
ImportStateVerify: true,
|
||||||
|
ImportStateVerifyIgnore: []string{"max_pods_per_node"},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Config: testAccContainerNodePool_updateVersion(cluster, np),
|
Config: testAccContainerNodePool_updateVersion(cluster, np),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ResourceName: "google_container_node_pool.np",
|
ResourceName: "google_container_node_pool.np",
|
||||||
ImportState: true,
|
ImportState: true,
|
||||||
ImportStateVerify: true,
|
ImportStateVerify: true,
|
||||||
|
ImportStateVerifyIgnore: []string{"max_pods_per_node"},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Config: testAccContainerNodePool_version(cluster, np),
|
Config: testAccContainerNodePool_version(cluster, np),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ResourceName: "google_container_node_pool.np",
|
ResourceName: "google_container_node_pool.np",
|
||||||
ImportState: true,
|
ImportState: true,
|
||||||
ImportStateVerify: true,
|
ImportStateVerify: true,
|
||||||
|
ImportStateVerifyIgnore: []string{"max_pods_per_node"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user