Skip to content

Commit 8fb74dc

Browse files
melinathCharles Leon
authored and
Charles Leon
committed
Made TestAccContainerCluster_withGatewayApiConfig error regex more forgiving (GoogleCloudPlatform#10034)
Fixed hashicorp/terraform-provider-google#17319
1 parent e83e86d commit 8fb74dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -4230,7 +4230,7 @@ func TestAccContainerCluster_withGatewayApiConfig(t *testing.T) {
42304230
Steps: []resource.TestStep{
42314231
{
42324232
Config: testAccContainerCluster_withGatewayApiConfig(clusterName, "CANARY", networkName, subnetworkName),
4233-
ExpectError: regexp.MustCompile(`expected gateway_api_config\.0\.channel to be one of \[CHANNEL_DISABLED CHANNEL_EXPERIMENTAL CHANNEL_STANDARD\], got CANARY`),
4233+
ExpectError: regexp.MustCompile(`expected gateway_api_config\.0\.channel to be one of [^,]+, got CANARY`),
42344234
},
42354235
{
42364236
Config: testAccContainerCluster_withGatewayApiConfig(clusterName, "CHANNEL_DISABLED", networkName, subnetworkName),

0 commit comments

Comments
 (0)