From 0c837d439eeb07e62a81b8b3f83a13a9d0444e4d Mon Sep 17 00:00:00 2001 From: The Magician Date: Thu, 22 Feb 2024 15:40:38 -0800 Subject: [PATCH] Made TestAccContainerCluster_withGatewayApiConfig error regex more forgiving (#10034) (#17362) Fixed https://github.com/hashicorp/terraform-provider-google/issues/17319 [upstream:c4260af062bfbc3dd321ad3990ba3a735d537291] Signed-off-by: Modular Magician --- .changelog/10034.txt | 3 +++ google/services/container/resource_container_cluster_test.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .changelog/10034.txt diff --git a/.changelog/10034.txt b/.changelog/10034.txt new file mode 100644 index 00000000000..42b910df155 --- /dev/null +++ b/.changelog/10034.txt @@ -0,0 +1,3 @@ +```release-note:none + +``` \ No newline at end of file diff --git a/google/services/container/resource_container_cluster_test.go b/google/services/container/resource_container_cluster_test.go index 445fc48a3a7..cd16d1355de 100644 --- a/google/services/container/resource_container_cluster_test.go +++ b/google/services/container/resource_container_cluster_test.go @@ -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),