Skip to content

Commit 7b9e248

Browse files
committed
try to fix retryable regex because there's color in apply's output
1 parent 7eecde5 commit 7b9e248

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

test/e2e/terraform_aks_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"regexp"
88
"strings"
99
"testing"
10+
"time"
1011

1112
"github.com/hashicorp/go-retryablehttp"
1213

@@ -157,6 +158,8 @@ func TestExamples_applicationGatewayIngress(t *testing.T) {
157158
"use_brown_field_application_gateway": u.useBrownFieldAppGw,
158159
"create_role_assignments_for_application_gateway": u.createRoleBindingForAppGw,
159160
},
161+
MaxRetries: 20,
162+
TimeBetweenRetries: time.Minute,
160163
RetryableTerraformErrors: map[string]string{
161164
"data.kubernetes_ingress_v1.ing.status[0].load_balancer[0].ingress": "the ingress hasn't been created, need more time",
162165
},

test/upgrade/upgrade_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"fmt"
55
"os"
66
"testing"
7+
"time"
78

89
test_helper "github.com/Azure/terraform-module-test-helper"
910
"github.com/gruntwork-io/terratest/modules/terraform"
@@ -138,6 +139,8 @@ func TestExampleUpgrade_applicationGw(t *testing.T) {
138139
"use_brown_field_application_gateway": u.useBrownFieldAppGw,
139140
"create_role_assignments_for_application_gateway": u.createRoleBindingForAppGw,
140141
},
142+
MaxRetries: 20,
143+
TimeBetweenRetries: time.Minute,
141144
RetryableTerraformErrors: map[string]string{
142145
"data.kubernetes_ingress_v1.ing.status[0].load_balancer[0].ingress": "the ingress hasn't been created, need more time",
143146
},

0 commit comments

Comments
 (0)