miroir/crates/miroir-proxy
jedarden 5cb4776c44 P2.10: Implement custom HTTP header contract test suite
Implement comprehensive contract test suite for plan §5 "Custom HTTP headers".
Tests assert every custom HTTP header behaves exactly per its specification.

Tests cover:
- Request headers: present, absent, malformed → expected status codes
- Response headers: format validation and echo tests
- Forward-compatibility: unknown X-Miroir-* headers are silently ignored
- Meilisearch compatibility: vanilla client behavior preserved

All 11 headers from plan §5 are covered:
- X-Miroir-Degraded (Response)
- X-Miroir-Settings-Version (Response)
- X-Miroir-Min-Settings-Version (Request)
- X-Miroir-Settings-Inconsistent (Response)
- X-Miroir-Session (Both)
- Idempotency-Key (Request)
- X-Miroir-Over-Fetch (Request)
- X-Miroir-Tenant (Request)
- X-Admin-Key (Request)
- X-CSRF-Token (Request)
- X-Search-UI-Key (Request)

Tests are marked with #[ignore] for features not yet implemented.
Associated feature beads are responsible for removing #[ignore] and
ensuring tests pass.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-20 07:14:53 -04:00
..
src bf-1p4v: Verify compile error already fixed 2026-05-20 07:12:51 -04:00
static Phase 5: Add Advanced Capabilities verification and UI static assets 2026-05-03 19:01:22 -04:00
tests P2.10: Implement custom HTTP header contract test suite 2026-05-20 07:14:53 -04:00
Cargo.toml Phase 3: Task Registry + Persistence (SQLite schema, Redis mirror) 2026-05-03 20:39:58 -04:00