diff --git a/test/integration/version_test.go b/test/integration/version_test.go index 81301c19f8..9b0f6b73da 100644 --- a/test/integration/version_test.go +++ b/test/integration/version_test.go @@ -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) { @@ -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() {