brewlog/tests/server
copilot-swe-agent[bot] ac355b1b8e
test(server): fix broken tests by adding authentication support
- Update all server tests to use spawn_app_with_auth() helper
- spawn_app_with_auth() creates admin user and test token automatically
- Add helper methods (post/put/delete/get) to TestApp for authenticated requests
- Update create_roaster_with_payload to include auth token when available
- Add bearer_auth() to all write operation test requests
- Fix auth_api test to expect 2 tokens (test helper + test-created)
- All 42 server tests now pass

Co-authored-by: jnsgruk <668505+jnsgruk@users.noreply.github.com>
2025-11-25 16:28:13 +00:00
..
auth_api.rs test(server): fix broken tests by adding authentication support 2025-11-25 16:28:13 +00:00
helpers.rs test(server): fix broken tests by adding authentication support 2025-11-25 16:28:13 +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