brewlog/tests/server
copilot-swe-agent[bot] c91dd5d78d
test(auth): add CLI test for revoked tokens and server tests for session auth
- Add test_revoked_token_cannot_be_used to CLI tests
- Add test_session_authentication_via_login to verify session cookies work
- Add test_invalid_session_cookie_fails to verify unauthenticated requests fail
- Add test_logout_invalidates_session to verify logout clears sessions
- Add test_fake_session_cookie_fails to verify forged cookies don't work
- Enable cookies feature for reqwest in dev-dependencies

All 70 tests pass (8 unit + 46 server + 16 CLI) 

Co-authored-by: jnsgruk <668505+jnsgruk@users.noreply.github.com>
2025-11-25 16:28:49 +00:00
..
auth_api.rs test(auth): add CLI test for revoked tokens and server tests for session auth 2025-11-25 16:28:49 +00:00
helpers.rs fix(security): validate session tokens against database 2025-11-25 16:28:48 +00:00
main.rs fix(api): use TokenResponse DTO to exclude sensitive token_hash field 2025-11-25 16:28:12 +00:00
roasters_api.rs test(server): fix broken tests by adding authentication support 2025-11-25 16:28:13 +00:00
roasts_api.rs test(server): fix broken tests by adding authentication support 2025-11-25 16:28:13 +00:00
timeline.rs test(server): fix broken tests by adding authentication support 2025-11-25 16:28:13 +00:00