Skip to content

Commit 91c0c4d

Browse files
committed
Update LinuxNodeConfig test
1 parent bde64b6 commit 91c0c4d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mmv1/third_party/terraform/services/container/resource_container_cluster_test.go.tmpl

+4-4
Original file line numberDiff line numberDiff line change
@@ -1585,7 +1585,7 @@ func TestAccContainerCluster_withNodeConfigLinuxNodeConfig(t *testing.T) {
15851585
ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories(t),
15861586
CheckDestroy: testAccCheckContainerClusterDestroyProducer(t),
15871587
Steps: []resource.TestStep{
1588-
// First test with empty `node_config.linux_node_config`
1588+
// First test with empty `node_config.linux_node_config` (should result in "CGROUP_MODE_UNSPECIFIED")
15891589
{
15901590
Config: testAccContainerCluster_withNodeConfigLinuxNodeConfig(clusterName, networkName, subnetworkName, ""),
15911591
ConfigPlanChecks: resource.ConfigPlanChecks{
@@ -1621,13 +1621,13 @@ func TestAccContainerCluster_withNodeConfigLinuxNodeConfig(t *testing.T) {
16211621
ImportStateVerify: true,
16221622
ImportStateVerifyIgnore: []string{"deletion_protection"},
16231623
},
1624-
// Lastly, update the setting in-place.
1624+
// Lastly, update the setting in-place. V1 since UNSPECIFIED is default
16251625
{
1626-
Config: testAccContainerCluster_withNodeConfigLinuxNodeConfig(clusterName, networkName, subnetworkName, "CGROUP_MODE_UNSPECIFIED"),
1626+
Config: testAccContainerCluster_withNodeConfigLinuxNodeConfig(clusterName, networkName, subnetworkName, "CGROUP_MODE_V1"),
16271627
Check: resource.ComposeTestCheckFunc(
16281628
resource.TestCheckResourceAttr(
16291629
"google_container_cluster.with_linux_node_config",
1630-
"node_config.0.linux_node_config.0.cgroup_mode", "CGROUP_MODE_UNSPECIFIED",
1630+
"node_config.0.linux_node_config.0.cgroup_mode", "CGROUP_MODE_V1",
16311631
),
16321632
),
16331633
ConfigPlanChecks: resource.ConfigPlanChecks{

0 commit comments

Comments
 (0)