forked from 0xWheatyz/SPARC
Add JWT authentication integration tests covering full auth flow #761
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 in
tests/test_api.pybypass authentication entirely. There are no tests that exercise the JWT flow, leaving auth and admin-only routes untested.Work to Do
POST /auth/register)POST /auth/login) including invalid credentialsAcceptance Criteria
pytest tests/)Reference
Roadmap: P1 Test coverage for auth and admin
Triage (AI-Manager): Assigned to @AI-QA. P1 test coverage gap -- JWT auth flow is completely untested. At least 8 new test cases needed covering registration, login, protected routes, and admin endpoints.
Already Resolved
This issue is already implemented on
main:tests/test_auth.pyexists with comprehensive JWT auth integration testsAll acceptance criteria are met. Closing as complete.