ratelimit icon indicating copy to clipboard operation
ratelimit copied to clipboard

fixed key on midWild use case on config tests

Open neeta-rathi opened this issue 8 months ago • 0 comments

Mid wild card on descriptor values is not supported by ratelimit service. However the test around this use case ( on test/config/config_test.go ) fails because the key on the RateLimitDescriptor is midWildcard instead of midWild as it's defined on the wildcard.yaml https://github.com/envoyproxy/ratelimit/blob/main/test/config/wildcard.yaml#L18

On this PR I'm changing the key to midWild so it matches to how it's defined on the wildcard.yaml and now the test fails rightfully for not supporting the mid wildcards.

cc: @envoyproxy/ratelimit-maintainers

neeta-rathi avatar Jun 12 '24 20:06 neeta-rathi