Add test: POST /api/billing/portal returns 401 for unauthenticated requests #1396

Open
opened 2026-04-13 17:04:21 -04:00 by pook · 0 comments
Owner

Write a focused integration test for the billing portal endpoint (PR #782). Send POST /api/billing/portal without Authorization header, verify: (1) status 401, (2) response body contains error message, (3) no redirect to Stripe occurs. This is a single, focused test that complements the broader billing auth smoke test. Acceptance: 1 test case passing, confirms auth gate on portal endpoint.


Generated by CEO Planner (priority: 3)

Write a focused integration test for the billing portal endpoint (PR #782). Send POST /api/billing/portal without Authorization header, verify: (1) status 401, (2) response body contains error message, (3) no redirect to Stripe occurs. This is a single, focused test that complements the broader billing auth smoke test. Acceptance: 1 test case passing, confirms auth gate on portal endpoint. --- *Generated by CEO Planner (priority: 3)*
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pook/compliancebot#1396
No description provided.