From 8f4d15c25a6ac47add3712de86d18b273ab1b3ce Mon Sep 17 00:00:00 2001 From: Michael Martin Date: Tue, 26 Mar 2024 13:18:55 -0700 Subject: [PATCH] tests: disable some dev portal tests for Kong >=3.7 The dev portal is deprecated and now requires a special secret to enable, so it is no longer feasible to test this in nightly (>=3.7). https://github.com/Kong/kong-ee/pull/6812 --- kong/developer_role_service_test.go | 3 +++ kong/developer_service_test.go | 2 ++ 2 files changed, 5 insertions(+) diff --git a/kong/developer_role_service_test.go b/kong/developer_role_service_test.go index c908afdbc..91bf00f2d 100644 --- a/kong/developer_role_service_test.go +++ b/kong/developer_role_service_test.go @@ -9,6 +9,7 @@ import ( func TestDeveloperRoleService(T *testing.T) { RunWhenEnterprise(T, ">=0.33.0", RequiredFeatures{Portal: true}) + RunWhenEnterprise(T, "<3.7.0", RequiredFeatures{Portal: true}) assert := assert.New(T) client, err := NewTestClient(nil, nil) @@ -60,6 +61,7 @@ func TestDeveloperRoleService(T *testing.T) { func TestDeveloperRoleServiceList(T *testing.T) { RunWhenEnterprise(T, ">=0.33.0", RequiredFeatures{Portal: true}) + RunWhenEnterprise(T, "<3.7.0", RequiredFeatures{Portal: true}) assert := assert.New(T) client, err := NewTestClient(nil, nil) @@ -98,6 +100,7 @@ func TestDeveloperRoleServiceList(T *testing.T) { func TestDeveloperRoleListEndpoint(T *testing.T) { RunWhenEnterprise(T, ">=0.33.0", RequiredFeatures{Portal: true}) + RunWhenEnterprise(T, "<3.7.0", RequiredFeatures{Portal: true}) assert := assert.New(T) client, err := NewTestClient(nil, nil) diff --git a/kong/developer_service_test.go b/kong/developer_service_test.go index 853ebe0cd..51d175dfc 100644 --- a/kong/developer_service_test.go +++ b/kong/developer_service_test.go @@ -9,6 +9,7 @@ import ( func TestDevelopersService(T *testing.T) { RunWhenEnterprise(T, ">=0.33.0", RequiredFeatures{Portal: true}) + RunWhenEnterprise(T, "<3.7.0", RequiredFeatures{Portal: true}) assert := assert.New(T) client, err := NewTestClient(nil, nil) @@ -79,6 +80,7 @@ func TestDevelopersService(T *testing.T) { func TestDeveloperListEndpoint(T *testing.T) { RunWhenEnterprise(T, ">=0.33.0", RequiredFeatures{Portal: true}) + RunWhenEnterprise(T, "<3.7.0", RequiredFeatures{Portal: true}) assert := assert.New(T) client, err := NewTestClient(nil, nil)