miroir/crates/miroir-proxy/tests
jedarden 0b266bf37e test(miroir-proxy): add P7.6 OpenTelemetry tracing acceptance tests
Adds comprehensive acceptance tests for plan §10 OpenTelemetry tracing:
- Verify tracing.enabled=false returns None (zero overhead)
- Verify default config has tracing disabled
- Verify sample_rate config parsing (default 10%)
- Verify resource attributes (service.name, endpoint, POD_NAME)
- Verify feature flag controls compilation
- Verify shutdown_otel is safe to call multiple times
- Verify span hierarchy exists in scatter path code
- Verify TracingConfig serde round-trip (JSON/TOML)

Also makes the otel module public via lib.rs for test access,
and adds toml as a dev dependency for config parsing tests.

All 15 tests pass. Closes: miroir-afh.6

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-25 03:18:27 -04:00
..
docker_compose_integration.rs feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
error_format_parity.rs feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
header_contract.rs feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
integration_test.rs feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
p2_2_write_path_acceptance.rs feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
p2_5_task_reconciliation.rs feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
p2_8_middleware_acceptance_tests.rs feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
p2_phase2_dod.rs fix(tests): add missing vector_config field and fix test compilation 2026-05-24 20:45:02 -04:00
p3_phase3_task_registry.rs feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
p5_1_d_reshard_verify.rs feat(reshard): implement P5.1.e alias swap + dual-write stop 2026-05-24 18:05:30 -04:00
p5_1_e_reshard_alias_swap.rs feat(reshard): implement P5.1.e alias swap + dual-write stop 2026-05-24 18:05:30 -04:00
p5_5_two_phase_settings_broadcast.rs test(miroir-proxy): add client-pinned freshness acceptance tests (P5.5.e §13.5) 2026-05-24 22:33:11 -04:00
p5_8_a_anti_entropy_fingerprint.rs feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
p5_8_b_anti_entropy_diff.rs feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
p5_14_ttl_automatic_expiration.rs fix(tests): add missing vector_config field and fix test compilation 2026-05-24 20:45:02 -04:00
p6_7_resource_pressure_metrics.rs test(miroir-proxy): add P6.7 resource-pressure metrics acceptance tests (§14.9) 2026-05-24 23:49:53 -04:00
p7_1_core_metrics.rs feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
p7_5_structured_logging.rs feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
p7_6_opentelemetry.rs test(miroir-proxy): add P7.6 OpenTelemetry tracing acceptance tests 2026-05-25 03:18:27 -04:00
p10_2_node_master_key_rotation.rs test(integration): add P10.2 node_master_key rotation acceptance tests 2026-05-24 20:33:31 -04:00
p10_5_scoped_key_rotation.rs feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
p10_6_csrf_posture.rs test(miroir-proxy): add P10.6 CSRF posture acceptance tests (§9) 2026-05-24 23:28:58 -04:00
p10_7_admin_login_rate_limit.rs test(miroir-proxy): add P10.7 admin login rate limiting acceptance tests 2026-05-24 23:21:48 -04:00
p10_admin_session_revocation.rs feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
p13_6_session_pinning.rs feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
p13_7_alias_resolution.rs feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
p13_7_full_alias_integration.rs feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
p13_19_admin_ui_2pc_preview.rs feat(admin-ui): add 2PC settings preview endpoint and UI integration 2026-05-25 00:03:35 -04:00
p24_index_lifecycle.rs feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
p29_reserved_field_rejection.rs feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
phase2_integration_test.rs feat(hedging): implement tail-latency hedging for reads (§13.2, miroir-uhj.2) 2026-05-24 07:30:16 -04:00
README_integration.md P9.2: Integration test harness with docker-compose 2026-05-23 07:33:34 -04:00