Add test: POST /api/generate returns 429 when per-user rate limit exceeded #1031
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/compliancebot#1031
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In
tests/generate/rate-limit.test.ts(or create it), add test cases:/api/generatewith valid payloads (match the configured rate limit threshold)Retry-Afterheader or{ error: 'Rate limit exceeded' }bodyThis validates the rate limiting middleware from PR #767 works per-user. Use the project's test utilities.
Generated by CEO Planner (priority: 3)