Skip to content

Commit

Permalink
tests: separated Konnect tests to ensure kong version retrieval does …
Browse files Browse the repository at this point in the history
…not fail (#1519)

* tests: separated Konnect tests to ensure kong version retrieval does
not fail

* tests: fixed test for dql routes in konnect

* tests: fixed test condition

* tests: fixed deck token setting position
  • Loading branch information
Prashansa-K authored Feb 7, 2025
1 parent 7228d37 commit 39e0e77
Show file tree
Hide file tree
Showing 3 changed files with 750 additions and 41 deletions.
14 changes: 13 additions & 1 deletion tests/integration/reset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func Test_Reset_SkipCACert_3x(t *testing.T) {
}

func Test_Reset_ConsumerGroupConsumersWithCustomID(t *testing.T) {
runWhenEnterpriseOrKonnect(t, ">=3.0.0")
runWhen(t, "enterprise", ">=3.0.0")
setup(t)

client, err := getTestClient()
Expand All @@ -116,3 +116,15 @@ func Test_Reset_ConsumerGroupConsumersWithCustomID(t *testing.T) {
reset(t)
testKongState(t, client, false, false, utils.KongRawState{}, nil)
}

func Test_Reset_ConsumerGroupConsumersWithCustomID_Konnect(t *testing.T) {
runWhenKonnect(t)
setup(t)

client, err := getTestClient()
require.NoError(t, err)

require.NoError(t, sync(context.Background(), "testdata/sync/028-consumer-group-consumers-custom_id/kong.yaml"))
reset(t)
testKongState(t, client, true, false, utils.KongRawState{}, nil)
}
Loading

0 comments on commit 39e0e77

Please sign in to comment.