From d25c76e755bcd6cca6ea631f6a3ba9186a7e9716 Mon Sep 17 00:00:00 2001 From: Helene Durand Date: Tue, 1 Oct 2024 15:25:59 +0200 Subject: [PATCH] TEST/MEDIUM: fix flaky ingressClass test --- deploy/tests/e2e/ingressclass/ingressClass_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/deploy/tests/e2e/ingressclass/ingressClass_test.go b/deploy/tests/e2e/ingressclass/ingressClass_test.go index 276e0bf6..5218c8ae 100644 --- a/deploy/tests/e2e/ingressclass/ingressClass_test.go +++ b/deploy/tests/e2e/ingressclass/ingressClass_test.go @@ -55,6 +55,8 @@ func (suite *IngressClassSuite) Test_IngressClassName_Field() { func (suite *IngressClassSuite) Test_IngressClassName_Resource() { test := suite.test suite.Run("Disabled", func() { + suite.NoError(test.Apply("config/ingress.yaml.tmpl", test.GetNS(), suite.tmplData)) + suite.NoError(suite.test.Apply("config/ingressclass.yaml", "", nil)) suite.NoError(test.Delete("config/ingressclass.yaml")) suite.Eventually(func() bool { res, cls, err := suite.client.Do() @@ -68,6 +70,8 @@ func (suite *IngressClassSuite) Test_IngressClassName_Resource() { }) suite.Run("Enabled", func() { + suite.tmplData.IngressClassName = "haproxy" + suite.NoError(test.Apply("config/ingress.yaml.tmpl", test.GetNS(), suite.tmplData)) suite.NoError(suite.test.Apply("config/ingressclass.yaml", "", nil)) suite.Eventually(func() bool { res, cls, err := suite.client.Do()