Skip to content

Commit

Permalink
tests: disable some dev portal tests for Kong >=3.7
Browse files Browse the repository at this point in the history
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).

Kong/kong-ee#6812
  • Loading branch information
flrgh committed Apr 1, 2024
1 parent 485b6fc commit 8f4d15c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kong/developer_role_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions kong/developer_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 8f4d15c

Please sign in to comment.