Restore bare-environment full-suite cache-policy test #1473

Closed
opened 2026-08-27 16:11:43 +00:00 by timmy · 0 comments
Owner

Failure

python3 -m pytest tests/ -q on clean main fails in tests/test_api_cache_policy.py::test_live_gitea_api_responses_cannot_be_stored_by_shared_caches[asyncio]: the auth boundary correctly returns 503 because the test does not configure an auth mode.

Acceptance criteria

  • The cache-policy test explicitly enters a supported local test authentication mode and uses a loopback ASGI client.
  • The test still proves /api/v1/context, /api/v1/events, and /api/v1/live return Cache-Control: no-store.
  • python3 -m pytest tests/ -q passes from a bare environment.
## Failure `python3 -m pytest tests/ -q` on clean `main` fails in `tests/test_api_cache_policy.py::test_live_gitea_api_responses_cannot_be_stored_by_shared_caches[asyncio]`: the auth boundary correctly returns 503 because the test does not configure an auth mode. ## Acceptance criteria - The cache-policy test explicitly enters a supported local test authentication mode and uses a loopback ASGI client. - The test still proves `/api/v1/context`, `/api/v1/events`, and `/api/v1/live` return `Cache-Control: no-store`. - `python3 -m pytest tests/ -q` passes from a bare environment.
timmy self-assigned this 2026-08-27 16:16:59 +00:00
timmy closed this issue 2026-08-27 16:49:43 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: stackchain/stackchain-dashboard#1473
No description provided.