From 7eecde5eaa0cd4821fad433ecab1854ef5df3736 Mon Sep 17 00:00:00 2001 From: zjhe Date: Fri, 12 Jan 2024 13:44:51 +0800 Subject: [PATCH] try to fix retryable regex because there's color in apply's output --- test/e2e/terraform_aks_test.go | 2 +- test/upgrade/upgrade_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/terraform_aks_test.go b/test/e2e/terraform_aks_test.go index d4b57173..bae63078 100644 --- a/test/e2e/terraform_aks_test.go +++ b/test/e2e/terraform_aks_test.go @@ -158,7 +158,7 @@ func TestExamples_applicationGatewayIngress(t *testing.T) { "create_role_assignments_for_application_gateway": u.createRoleBindingForAppGw, }, RetryableTerraformErrors: map[string]string{ - "data.kubernetes_ingress_v1.ing.status[0].load_balancer[0].ingress is empty list of object": "the ingress hasn't been created, need more time", + "data.kubernetes_ingress_v1.ing.status[0].load_balancer[0].ingress": "the ingress hasn't been created, need more time", }, }, func(t *testing.T, output test_helper.TerraformOutput) { url, ok := output["ingress_endpoint"].(string) diff --git a/test/upgrade/upgrade_test.go b/test/upgrade/upgrade_test.go index d3b0bdcd..fec06410 100644 --- a/test/upgrade/upgrade_test.go +++ b/test/upgrade/upgrade_test.go @@ -139,7 +139,7 @@ func TestExampleUpgrade_applicationGw(t *testing.T) { "create_role_assignments_for_application_gateway": u.createRoleBindingForAppGw, }, RetryableTerraformErrors: map[string]string{ - "data.kubernetes_ingress_v1.ing.status[0].load_balancer[0].ingress is empty list of object": "the ingress hasn't been created, need more time", + "data.kubernetes_ingress_v1.ing.status[0].load_balancer[0].ingress": "the ingress hasn't been created, need more time", }, }, currentMajorVersion) })