Skip to content

Commit

Permalink
TEST/MEDIUM: fix flaky ingressClass test
Browse files Browse the repository at this point in the history
  • Loading branch information
hdurand0710 committed Oct 1, 2024
1 parent 5ff8f2c commit 953c43f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deploy/tests/e2e/ingressclass/ingressClass_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()
Expand Down

0 comments on commit 953c43f

Please sign in to comment.