agent-company
|
2f2b6382fa
|
Expand JWT auth integration tests from 17 to 33 cases
Add comprehensive edge-case coverage for issue #1624:
- Admin delete user endpoint (5 tests): successful delete, self-delete
prevention, nonexistent user 404, non-admin 403, missing token rejection
- Admin role change gaps (2 tests): nonexistent user 404, non-admin 403
- Input validation (3 tests): invalid email 422, short password 422,
missing fields 422 for both register and login
- Token edge cases (4 tests): malformed token, wrong-secret token,
deleted user token, deleted user refresh
- Token claim verification (1 test): login tokens contain correct claims
All tests use mocked DB fixtures and require no live database.
Closes leeworks-agents/SPARC#1624
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
2026-04-20 06:05:54 +00:00 |
|