chore: Add tests for auth cookie extraction and rate limit middleware behavior

- Implemented tests for `extractAuthCookieToken` to ensure it returns an empty string when the request is nil and ignores non-auth cookies.
- Added tests for `isAdminSecurityControlPlaneRequest` to verify it correctly uses the decoded raw path.
- Enhanced `NewRateLimitMiddleware` tests to check fallback behavior for non-positive window values and to ensure it bypasses rate limiting for control plane bearer requests.
This commit is contained in:
GitHub Actions
2026-02-17 15:13:56 +00:00
parent 0fdaa3fef3
commit 93325bb1ca
3 changed files with 1730 additions and 0 deletions

File diff suppressed because it is too large Load Diff