Skip to content

Commit

Permalink
Made TestAccContainerCluster_withGatewayApiConfig error regex more fo…
Browse files Browse the repository at this point in the history
…rgiving (#10034) (#17362)

Fixed #17319

[upstream:c4260af062bfbc3dd321ad3990ba3a735d537291]

Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician authored and SarahFrench committed Mar 1, 2024
1 parent 762d64a commit 0c837d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/10034.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
Original file line number Diff line number Diff line change
Expand Up @@ -3691,7 +3691,7 @@ func TestAccContainerCluster_withGatewayApiConfig(t *testing.T) {
Steps: []resource.TestStep{
{
Config: testAccContainerCluster_withGatewayApiConfig(clusterName, "CANARY", networkName, subnetworkName),
ExpectError: regexp.MustCompile(`expected gateway_api_config\.0\.channel to be one of \[CHANNEL_DISABLED CHANNEL_EXPERIMENTAL CHANNEL_STANDARD\], got CANARY`),
ExpectError: regexp.MustCompile(`expected gateway_api_config\.0\.channel to be one of [^,]+, got CANARY`),
},
{
Config: testAccContainerCluster_withGatewayApiConfig(clusterName, "CHANNEL_DISABLED", networkName, subnetworkName),
Expand Down

0 comments on commit 0c837d4

Please sign in to comment.