Skip to content

Commit

Permalink
tests: correct test after schema change
Browse files Browse the repository at this point in the history
  • Loading branch information
GGabriele committed Apr 19, 2024
1 parent 316cd8e commit 43539a7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/integration/sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@ var (
},
}

consumerGroupScopedPlugins35x = []*kong.Plugin{
consumerGroupScopedPlugins36x = []*kong.Plugin{
{
Name: kong.String("rate-limiting-advanced"),
ConsumerGroup: &kong.ConsumerGroup{
Expand Down Expand Up @@ -1089,6 +1089,7 @@ var (
"key_in_header": true,
"key_in_query": true,
"key_names": []interface{}{"apikey"},
"realm": nil,
"run_on_preflight": true,
},
Enabled: kong.Bool(true),
Expand Down Expand Up @@ -4298,7 +4299,7 @@ func Test_Sync_ConsumerGroupsScopedPlugins(t *testing.T) {
}
}

func Test_Sync_ConsumerGroupsScopedPlugins_After350(t *testing.T) {
func Test_Sync_ConsumerGroupsScopedPlugins_After360(t *testing.T) {
const (
maxGoldRequestsNumber = 10
maxSilverRequestsNumber = 7
Expand Down Expand Up @@ -4340,7 +4341,7 @@ func Test_Sync_ConsumerGroupsScopedPlugins_After350(t *testing.T) {
},
},
},
Plugins: consumerGroupScopedPlugins35x,
Plugins: consumerGroupScopedPlugins36x,
Services: svc1_207,
Routes: route1_20x,
KeyAuths: []*kong.KeyAuth{
Expand Down Expand Up @@ -4368,7 +4369,7 @@ func Test_Sync_ConsumerGroupsScopedPlugins_After350(t *testing.T) {
}
for _, tc := range tests {
t.Run(tc.name, func(t *testing.T) {
runWhen(t, "enterprise", ">=3.5.0")
runWhen(t, "enterprise", ">=3.6.0")
setup(t)

sync(tc.kongFile)
Expand Down Expand Up @@ -4501,7 +4502,7 @@ func Test_Sync_ConsumerGroupsScopedPluginsKonnect(t *testing.T) {
},
},
},
Plugins: consumerGroupScopedPlugins35x,
Plugins: consumerGroupScopedPlugins36x,
Services: svc1_207,
Routes: route1_20x,
KeyAuths: []*kong.KeyAuth{
Expand Down

0 comments on commit 43539a7

Please sign in to comment.