miroir/crates/miroir-proxy/tests
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
..
header_contract.rs P2.10: Implement custom HTTP header contract test suite 2026-05-20 07:14:53 -04:00
p2_phase2_dod.rs P10.2: nodeMasterKey zero-downtime rotation flow 2026-04-19 15:49:40 -04:00
p3_phase3_task_registry.rs P3: Add Phase 3 integration tests and finalize Task Registry + Persistence 2026-05-02 18:09:44 -04:00
p5_5_two_phase_settings_broadcast.rs P5.5 §13.5 Two-phase settings broadcast + drift reconciler (OP#4) 2026-05-05 12:50:25 -04:00
p7_5_structured_logging.rs P3.3.d: Fix compilation - add missing local_search_ui_rate_limiter field 2026-04-26 11:18:02 -04:00
p10_5_scoped_key_rotation.rs P3: Task Registry + Persistence — 14-table SQLite schema, Redis mirror, Helm validation 2026-04-24 15:50:20 -04:00
p10_admin_session_revocation.rs P3: Task Registry + Persistence — 14-table SQLite schema, Redis mirror, Helm validation 2026-04-24 15:50:20 -04:00
p24_index_lifecycle.rs P2.4: Fix build and test for index lifecycle endpoints 2026-04-19 07:49:46 -04:00