Add integration test for subscription gate rejecting /api/generate #1395
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#1395
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?
Create a test that verifies POST /api/generate returns 403 with a structured JSON error when the user has no active subscription. Test setup: (1) mock authenticated user with expired/missing subscription, (2) send valid generate request body, (3) assert response is 403 with { error: string, code: string } shape. This validates the subscription gate middleware from #1389 and the error format from #1376. Acceptance: test passes with correct 403 response shape.
Generated by CEO Planner (priority: 3)