components-contrib/tests/certification/middleware/http/ratelimit
Josh van Leeuwen 9be6d157a4
tests/certification: Updates dapr/dapr to `master` HEAD (#3084)
Signed-off-by: joshvanl <me@joshvanl.dev>
Co-authored-by: Bernd Verst <github@bernd.dev>
2023-08-21 17:06:55 -07:00
..
resources Certification test for middleware.http.ratelimit (#2636) 2023-03-07 20:51:35 +00:00
README.md Certification test for middleware.http.ratelimit (#2636) 2023-03-07 20:51:35 +00:00
config.yaml Certification test for middleware.http.ratelimit (#2636) 2023-03-07 20:51:35 +00:00
ratelimit_test.go tests/certification: Updates dapr/dapr to `master` HEAD (#3084) 2023-08-21 17:06:55 -07:00

README.md

Rate Limiter HTTP Middleware certification

The purpose of this module is to provide tests that certify the Rate Limiter HTTP Middleware as a stable component

Test Plan

  • Test rate-limiting against one sidecar configured with 10 rps limit:
    • Sending less than 10 rps should never trigger the rate-limiter
    • Sending more than 10 rps should be rate-limited to ~10 rps
  • Rate-limiting per IP:
    • Specify a source IP with X-Forwarded-For and confirm requests are rate-limited per each IP
  • Test rate-limiting against multiple sidecars, each configured with 10 rps limit:
    • Rate-limits are applied for each sidecar independently