diff --git a/tests/integration/sync_test.go b/tests/integration/sync_test.go index 843361e3c..1f5feffd8 100644 --- a/tests/integration/sync_test.go +++ b/tests/integration/sync_test.go @@ -3765,6 +3765,55 @@ func Test_Sync_SkipConsumers_34x(t *testing.T) { Enabled: kong.Bool(true), Protocols: []*string{kong.String("grpc"), kong.String("grpcs"), kong.String("http"), kong.String("https")}, }, + { + Name: kong.String("rate-limiting-advanced"), + Consumer: &kong.Consumer{ + ID: kong.String("416b038a-fd00-45fd-a5a2-a74bf70017fa"), + }, + Config: kong.Configuration{ + "consumer_groups": nil, + "dictionary_name": string("kong_rate_limiting_counters"), + "disable_penalty": bool(false), + "enforce_consumer_groups": bool(false), + "error_code": float64(429), + "error_message": string("API rate limit exceeded"), + "header_name": nil, + "hide_client_headers": bool(false), + "identifier": string("consumer"), + "limit": []any{float64(10)}, + "namespace": string("silver"), + "path": nil, + "redis": map[string]any{ + "cluster_addresses": nil, + "connect_timeout": nil, + "database": float64(0), + "host": nil, + "keepalive_backlog": nil, + "keepalive_pool_size": float64(30), + "password": nil, + "port": nil, + "read_timeout": nil, + "send_timeout": nil, + "sentinel_addresses": nil, + "sentinel_master": nil, + "sentinel_password": nil, + "sentinel_role": nil, + "sentinel_username": nil, + "server_name": nil, + "ssl": false, + "ssl_verify": false, + "timeout": float64(2000), + "username": nil, + }, + "retry_after_jitter_max": float64(1), + "strategy": string("local"), + "sync_rate": float64(-1), + "window_size": []any{float64(60)}, + "window_type": string("sliding"), + }, + Enabled: kong.Bool(true), + Protocols: []*string{kong.String("grpc"), kong.String("grpcs"), kong.String("http"), kong.String("https")}, + }, }, }, skipConsumers: false, diff --git a/tests/integration/testdata/sync/019-skip-consumers/kong34.yaml b/tests/integration/testdata/sync/019-skip-consumers/kong34.yaml index 2376bf572..cb91c4160 100644 --- a/tests/integration/testdata/sync/019-skip-consumers/kong34.yaml +++ b/tests/integration/testdata/sync/019-skip-consumers/kong34.yaml @@ -31,7 +31,8 @@ consumer_groups: - 60 window_type: sliding consumers: -- groups: +- id: 416b038a-fd00-45fd-a5a2-a74bf70017fa + groups: - name: silver username: bar - username: baz