-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: added fix to allow one consumer to be in >1 consumer-groups. (#140)
* fix: added fix to allow one consumer to be in >1 consumer-groups. gdr version 1.39.2 introduced a bug where a consumer was limited to only one consumer-group. Adding the consumer in >1 group was resulting in an error on deck. This PR adds the fix for the same and an integration test. See: Kong/deck#1384 * fix: scoped the test to >3.4.0 * chore: clarified test scope in integration sync_test * tests: added test for gateway v2.8.x for >1 consumer-group for a consumer
- Loading branch information
1 parent
7c622bd
commit da91179
Showing
5 changed files
with
117 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
tests/integration/testdata/sync/xxx-more-than-one-consumer-group-with-a-consumer/kong.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
_format_version: "1.0" | ||
consumer_groups: | ||
- name: group1 | ||
- name: group2 | ||
consumers: | ||
- username: my-test-consumer | ||
groups: | ||
- name: group1 | ||
- name: group2 |
9 changes: 9 additions & 0 deletions
9
tests/integration/testdata/sync/xxx-more-than-one-consumer-group-with-a-consumer/kong3x.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
_format_version: "3.0" | ||
consumer_groups: | ||
- name: group1 | ||
- name: group2 | ||
consumers: | ||
- username: my-test-consumer | ||
groups: | ||
- name: group1 | ||
- name: group2 |