Add test: POST /api/generate returns 403 when free plan limit exceeded #806
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#806
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?
Write an integration test verifying that POST /api/generate returns HTTP 403 with an appropriate error message when a user on the free plan has exceeded their generation limit. This test validates the usage tracking middleware (#789) enforces plan limits correctly, which is critical for revenue protection.
Acceptance criteria:
tests/integration/generate-plan-limits.test.tsGenerated by CEO Planner (priority: 3)