Skip to content

Commit

Permalink
skip enterprise tests when image is enterprise but TEST_KONG_ENTERPRI…
Browse files Browse the repository at this point in the history
…SE not enabled (#5165)
  • Loading branch information
randmonkey authored Nov 16, 2023
1 parent ec64c88 commit bab7280
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/integration/version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"github.com/kong/kubernetes-ingress-controller/v3/test"
"github.com/kong/kubernetes-ingress-controller/v3/test/consts"
"github.com/kong/kubernetes-ingress-controller/v3/test/internal/helpers"
"github.com/kong/kubernetes-ingress-controller/v3/test/internal/testenv"
)

func RunWhenKongVersion(t *testing.T, vRangeStr string, msg ...any) {
Expand Down Expand Up @@ -55,6 +56,10 @@ func RunWhenKongDBMode(t *testing.T, dbmode dpconf.DBMode, msg ...any) {
func RunWhenKongEnterprise(t *testing.T) {
t.Helper()

if !testenv.KongEnterpriseEnabled() {
t.Skipf("skipping because Kong enterprise is not enabled")
}

version := eventuallyGetKongVersion(t, proxyAdminURL)

if !version.IsKongGatewayEnterprise() {
Expand Down

0 comments on commit bab7280

Please sign in to comment.