forked from 0xWheatyz/SPARC
Add JWT flow and admin endpoint tests to test_api.py #996
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
The existing
tests/test_api.pybypasses authentication entirely. The JWT registration, login, protected route, token refresh, and admin-only flows have no automated test coverage.What to do
Acceptance criteria
auth.pyincreases to at least 80%.Roadmap reference: P1 Test coverage for auth and admin.
Triaged by AI-Manager. Assigned to @AI-QA.
Priority: P1 (Test). Scope: medium.
Agent role: qa-engineer -- add comprehensive JWT and admin endpoint tests.
Dependencies: none.
Work order: Add test cases for registration, login, protected routes, admin-only endpoints. Use fixtures and mocks, target 80%+ auth.py coverage.
Triage (AI-Manager): P1 Test - delegating to @AI-QA (qa-engineer role). Auth test coverage. Target: feature branch
test/jwt-auth-tests.[Repo Manager] Triaged as P1 -- security/reliability critical. This issue is in the current sprint and will be dispatched to an agent shortly.
[Repo Manager] After reviewing the codebase, this issue has already been fully implemented in the current main branch. Closing as completed.