Skip to content

Commit c52dca8

Browse files
committed
TEST
1 parent 9fb2a39 commit c52dca8

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

test/e2e/suites/managed/eks_test.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ package managed
2222
import (
2323
"context"
2424
"fmt"
25+
"time"
2526

2627
"github.com/onsi/ginkgo/v2"
2728
. "github.com/onsi/gomega"
@@ -76,15 +77,20 @@ var _ = ginkgo.Describe("[managed] [general] EKS cluster tests", func() {
7677
})
7778

7879
ginkgo.By("should set environment variables on the aws-node daemonset")
79-
CheckAwsNodeEnvVarsSet(ctx, func() UpdateAwsNodeVersionSpecInput {
80+
input := func() UpdateAwsNodeVersionSpecInput {
8081
return UpdateAwsNodeVersionSpecInput{
8182
E2EConfig: e2eCtx.E2EConfig,
8283
BootstrapClusterProxy: e2eCtx.Environment.BootstrapClusterProxy,
8384
AWSSession: e2eCtx.BootstrapUserAWSSession,
8485
Namespace: namespace,
8586
ClusterName: clusterName,
8687
}
87-
})
88+
}
89+
Eventually(func() error {
90+
defer ginkgo.GinkgoRecover()
91+
CheckAwsNodeEnvVarsSet(ctx, input)
92+
return nil
93+
}, time.Second*10, time.Minute*5).Should(Succeed(), "Failed to verify AWS Node environment variables after 5 minutes of retries")
8894

8995
ginkgo.By("should have the VPC CNI installed")
9096
CheckAddonExistsSpec(ctx, func() CheckAddonExistsSpecInput {

test/e2e/suites/managed/managed_suite_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func init() {
4949
shared.CreateDefaultFlags(e2eCtx)
5050
flag.BoolVar(&skipGeneralTests, "skip-eks-general-tests", false, "if true, the general EKS tests will be skipped")
5151
flag.BoolVar(&skipUpgradeTests, "skip-eks-upgrade-tests", false, "if true, the EKS upgrade tests will be skipped")
52-
flag.BoolVar(&skipLegacyTests, "skip-eks-legacy-tests", false, "if true, the EKS legacy tests will be skipped")
52+
flag.BoolVar(&skipLegacyTests, "skip-eks-legacy-tests", true, "if true, the EKS legacy tests will be skipped")
5353
}
5454

5555
func TestE2E(t *testing.T) {

0 commit comments

Comments
 (0)