miroir/crates/miroir-proxy/tests
jedarden 5f9ee20eeb P7.1: Core metrics families acceptance tests
Add accessor methods for request metrics (duration, total) to enable
testing of histogram/counter metrics that require samples to appear
in Prometheus output.

Fix p7_1_core_metrics.rs test to:
- Use new accessor methods to record request metric samples
- Check for HELP/TYPE metadata in addition to data lines
- Relax histogram bucket format check to verify non-zero count

All 18 core plan §10 metrics are verified:
- Requests: duration, total, in_flight
- Node health: healthy, request_duration, errors_total
- Shards: coverage, degraded_shards_total, distribution
- Tasks: processing_age, total, registry_size
- Scatter-gather: fan_out_size, partial_responses_total, retries_total
- Rebalancer: in_progress, documents_migrated_total, duration_seconds

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 02:29:28 -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_1_core_metrics.rs P7.1: Core metrics families acceptance tests 2026-05-23 02:29:28 -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
p13_6_session_pinning.rs P5.6 §13.6: Add integration tests for session pinning 2026-05-23 00:57:18 -04:00
p13_7_alias_resolution.rs P5.7 §13.7: Add atomic index alias integration tests 2026-05-23 00:48:14 -04:00
p13_7_full_alias_integration.rs P5.7 §13.7: Add atomic index alias integration tests 2026-05-23 00:48:14 -04:00
p24_index_lifecycle.rs P2.4: Fix build and test for index lifecycle endpoints 2026-04-19 07:49:46 -04:00
p29_reserved_field_rejection.rs miroir-zc2.3: Validate 2× transient load caveat for online resharding (P12.OP3) 2026-05-20 07:24:22 -04:00