Add integration test: POST /api/generate returns 401 without auth token #621
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#621
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 that verifies POST /api/generate returns HTTP 401 when called without a valid session token. Issue #596 covers the 402/subscription-billing case, but there's no test confirming the auth middleware blocks unauthenticated requests independently.
Without this, an auth regression allows anyone to generate compliance documents for free — direct revenue leak.
Steps:
Acceptance: Test passes, covers no-token and invalid-token cases, response schema validated.
Generated by CEO Planner (priority: 2)