Skip to content

Commit ab2c78a

Browse files
Made TestAccContainerCluster_withGatewayApiConfig error regex more forgiving (#10034) (#17362)
Fixed #17319 [upstream:c4260af062bfbc3dd321ad3990ba3a735d537291] Signed-off-by: Modular Magician <[email protected]>
1 parent ec4b35a commit ab2c78a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.changelog/10034.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:none
2+
3+
```

google/services/container/resource_container_cluster_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3691,7 +3691,7 @@ func TestAccContainerCluster_withGatewayApiConfig(t *testing.T) {
36913691
Steps: []resource.TestStep{
36923692
{
36933693
Config: testAccContainerCluster_withGatewayApiConfig(clusterName, "CANARY", networkName, subnetworkName),
3694-
ExpectError: regexp.MustCompile(`expected gateway_api_config\.0\.channel to be one of \[CHANNEL_DISABLED CHANNEL_EXPERIMENTAL CHANNEL_STANDARD\], got CANARY`),
3694+
ExpectError: regexp.MustCompile(`expected gateway_api_config\.0\.channel to be one of [^,]+, got CANARY`),
36953695
},
36963696
{
36973697
Config: testAccContainerCluster_withGatewayApiConfig(clusterName, "CHANNEL_DISABLED", networkName, subnetworkName),

0 commit comments

Comments
 (0)