Skip to content

Commit

Permalink
test: remove TestRunWhenEnterprise (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmalek authored Jan 11, 2023
1 parent 711cbce commit d718290
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions kong/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,23 +115,6 @@ func TestMain(m *testing.M) {
os.Exit(m.Run())
}

func TestRunWhenEnterprise(T *testing.T) {
// TODO refactor this to test that a version is Enterprise without relying on the IsKongGatewayEnterprise function
// that this calls https://github.com/Kong/go-kong/issues/212
RunWhenEnterprise(T, ">=0.33.0 <3.0.0", RequiredFeatures{})
assert := assert.New(T)

client, err := NewTestClient(nil, nil)
assert.NoError(err)
assert.NotNil(client)

root, err := client.Root(defaultCtx)
assert.NoError(err)
assert.NotNil(root)
v := root["version"].(string)
assert.Contains(v, "enterprise")
}

type TestWorkspace struct {
workspace *Workspace
client *Client
Expand Down

0 comments on commit d718290

Please sign in to comment.