brewlog/tests/cli
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
..
helpers.rs docs(test): clarify purpose of underscore-prefixed fields in SharedServer 2025-11-25 16:28:47 +00:00
main.rs test(cli): add initial CLI test infrastructure 2025-11-25 16:28:14 +00:00
roasters_cli.rs refactor(test): clean up CLI test helpers and improve code clarity 2025-11-25 16:28:46 +00:00
roasts_cli.rs fix(test): make CLI tests fully functional with working server and proper test isolation 2025-11-25 16:28:45 +00:00
tokens_cli.rs test(auth): add CLI test for revoked tokens and server tests for session auth 2025-11-25 16:28:49 +00:00