Context
Rate limiting is a V1 requirement (#62 tracks the bug where the rate limiter is broken). Once fixed, there must be an integration test.
Deliverables
Add an integration test at tests/integration/rate_limiter_test.rs:
- Start server with
rate_limit.enabled = true and max_requests_per_second = 5
- Fire 5 rapid requests — all should succeed
- Fire 5 more rapid requests — at least some should be rejected with HTTP 429
- Wait 1 second
- Fire 1 request — should succeed
- Verify metrics endpoint shows
hyperbytedb_rate_limit_denied_total > 0
References
src/adapters/http/auth_middleware.rs:142-163 — rate limiter code (currently broken)
#62 — rate limiter bug ticket
Priority
P2 — Test coverage after bug fix
Context
Rate limiting is a V1 requirement (#62 tracks the bug where the rate limiter is broken). Once fixed, there must be an integration test.
Deliverables
Add an integration test at
tests/integration/rate_limiter_test.rs:rate_limit.enabled = trueandmax_requests_per_second = 5hyperbytedb_rate_limit_denied_total > 0References
src/adapters/http/auth_middleware.rs:142-163— rate limiter code (currently broken)#62— rate limiter bug ticketPriority
P2 — Test coverage after bug fix