430c8ee7f817eacc422682150d6afc24338c099e
- 43 tests covering authentication (401), authorization (403), and tenant isolation - withPermission HOF returns 401 for unauthenticated, 403 for unauthorized - withPortalAuth returns 401/403 for non-portal users - All 5 roles (ADMIN, OFFICE_STAFF, COLLECTOR, TECHNICIAN, CLIENT) tested against all subjects - COLLECTOR cannot access billing/reports/subscriber management writes - TECHNICIAN cannot access payment/invoice/report endpoints - CLIENT can only read own data, create tickets - Two-tenant isolation: subscribers, invoices, payments invisible across tenants - Cross-tenant ID lookup returns null (no data leakage) - INFRA-03 satisfied Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Description
No description provided
Languages
TypeScript
96.6%
Shell
3.3%