Skip to content

Commit

Permalink
Fix test: TestAccContainer*_withInvalid* (GoogleCloudPlatform#10277)
Browse files Browse the repository at this point in the history
* fix test TestAccContainerCluster_withInvalidAutoscalingProfile

* fix test TestAccContainer*_withInvalid*
  • Loading branch information
kushu42 authored and pjotrekk committed Apr 2, 2024
1 parent 26edc9a commit f8d2a49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ func TestAccContainerCluster_withInvalidReleaseChannel(t *testing.T) {
Steps: []resource.TestStep{
{
Config: testAccContainerCluster_withReleaseChannelEnabled(clusterName, "CANARY", networkName, subnetworkName),
ExpectError: regexp.MustCompile(`expected release_channel\.0\.channel to be one of \[UNSPECIFIED RAPID REGULAR STABLE\], got CANARY`),
ExpectError: regexp.MustCompile(`expected release_channel\.0\.channel to be one of \["?UNSPECIFIED"? "?RAPID"? "?REGULAR"? "?STABLE"?\], got CANARY`),
},
},
})
Expand Down Expand Up @@ -3355,7 +3355,7 @@ func TestAccContainerCluster_withInvalidAutoscalingProfile(t *testing.T) {
Steps: []resource.TestStep{
{
Config: testAccContainerCluster_withAutoscalingProfile(clusterName, "AS_CHEAP_AS_POSSIBLE", networkName, subnetworkName),
ExpectError: regexp.MustCompile(`expected cluster_autoscaling\.0\.autoscaling_profile to be one of \[BALANCED OPTIMIZE_UTILIZATION\], got AS_CHEAP_AS_POSSIBLE`),
ExpectError: regexp.MustCompile(`expected cluster_autoscaling\.0\.autoscaling_profile to be one of \["?BALANCED"? "?OPTIMIZE_UTILIZATION"?\], got AS_CHEAP_AS_POSSIBLE`),
},
},
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ func TestAccContainerNodePool_withInvalidKubeletCpuManagerPolicy(t *testing.T) {
Steps: []resource.TestStep{
{
Config: testAccContainerNodePool_withKubeletConfig(cluster, np, "dontexist", "100us", networkName, subnetworkName, true, 1024),
ExpectError: regexp.MustCompile(`.*to be one of \[static none \].*`),
ExpectError: regexp.MustCompile(`.*to be one of \["?static"? "?none"? "?"?\].*`),
},
},
})
Expand Down

0 comments on commit f8d2a49

Please sign in to comment.