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> |
||
|---|---|---|
| .. | ||
| miroir-core | ||
| miroir-ctl | ||
| miroir-proxy | ||