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) (#7009)

Fixed hashicorp/terraform-provider-google#17319

[upstream:c4260af062bfbc3dd321ad3990ba3a735d537291]

Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician authored Feb 22, 2024
1 parent 1f0cbd6 commit 62dc976
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 @@ -4208,7 +4208,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 62dc976

Please sign in to comment.