forked from 0xWheatyz/SPARC
Add JWT authentication tests covering registration, login, protected routes, and admin endpoints #1528
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?
Context
Existing API tests in
tests/test_api.pybypass authentication entirely. There is no coverage for the JWT flow, leaving auth bugs undetected.Roadmap reference: ROADMAP.md > P1 > Test coverage for auth and admin
What to do
tests/test_api.py(or a newtests/test_auth.py) covering:Acceptance criteria
pytestand do not require manual setupauth.pyreaches at least 80%Triage: Assigned to @AI-QA. P1 test issue (medium). Delegating to @qa-engineer agent. Comprehensive JWT auth test coverage needed -- registration, login, protected routes, admin endpoints.
Resolved (triage review): Already implemented: tests/test_auth.py has 302 lines covering JWT auth scenarios. Closing as already complete in current codebase.