forked from 0xWheatyz/SPARC
Add JWT authentication integration tests covering login, protected routes, and admin endpoints #548
Reference in New Issue
Block a user
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?
Summary
Existing
tests/test_api.pybypasses authentication entirely. The JWT auth flow has no test coverage, leaving registration, login, token refresh, protected routes, and admin-only endpoints untested.What to do
tests/test_auth.py(or extendtest_api.py) with tests covering:Acceptance Criteria
Reference
Roadmap item: P1 - Test coverage for auth and admin
Triage (Repo Manager): Assigned to AI-QA as @qa-engineer task. P1/medium -- pure test coverage work. Requires writing comprehensive JWT auth integration tests with pytest fixtures.
[Repo Manager] This issue is already resolved.
tests/test_auth.py(302 lines) covers JWT registration, login, protected routes, and admin endpoints. Closing as complete.