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()