miroir/tests
jedarden 1222e8f606 test(phase-6): add P6.8 multi-pod Kubernetes acceptance tests
Add comprehensive acceptance tests for Phase 6 (Horizontal Scaling + HPA)
as specified in plan §14 Definition of Done.

Files added:
- tests/p6_8_multi_pod_acceptance.sh - Full end-to-end test using kind
- tests/verify_p6_8_templates_direct.sh - Template verification without kind
- tests/verify_p6_8_helm_templates.sh - Helm-based template verification
- tests/p6_8_README.md - Documentation for running the tests

Test coverage:
1. Multi-pod deployment (3 replicas)
2. Peer discovery (headless Service + Downward API)
3. Mode B leader election (exactly one leader, failover)
4. Resource-pressure metrics (all §14.9 metrics)
5. PrometheusRule alerts (all §14.9 alerts)
6. HPA configuration (correct metric types: Pods/External)
7. Resource limits (2 vCPU / 3.75 GB envelope)

The template verification script (verify_p6_8_templates_direct.sh) can be
run in any environment and validates:
- HPA template exists with correct metrics and types
- PrometheusRule has all §14.9 alerts
- Headless Service for peer discovery
- Downward API env vars (POD_NAME, POD_NAMESPACE, POD_IP)
- ServiceMonitor for metrics scraping
- values.schema.json HPA validation

Closes: bf-1976

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-25 03:58:37 -04:00
..
api-compatibility feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
benches/score-comparability miroir-zc2.5: Fix dump import compatibility matrix enhancement bead refs 2026-05-20 07:18:56 -04:00
chaos feat(tests): add chaos test scenarios and runbooks (plan §8, P9.4) 2026-05-24 10:23:24 -04:00
fixtures miroir-zc2.5: Fix dump import compatibility matrix enhancement bead refs 2026-05-20 07:18:56 -04:00
integration test(integration): Add integration tests per plan §8 2026-05-24 01:29:45 -04:00
integration_bench.rs feat(bench): add integration benchmarks and fix compilation 2026-05-24 10:53:48 -04:00
p6_8_multi_pod_acceptance.sh test(phase-6): add P6.8 multi-pod Kubernetes acceptance tests 2026-05-25 03:58:37 -04:00
p6_8_README.md test(phase-6): add P6.8 multi-pod Kubernetes acceptance tests 2026-05-25 03:58:37 -04:00
verify_p6_2_peer_discovery.sh P6.2: Fix verification script shebang for NixOS compatibility 2026-05-23 02:47:02 -04:00
verify_p6_8_helm_templates.sh test(phase-6): add P6.8 multi-pod Kubernetes acceptance tests 2026-05-25 03:58:37 -04:00
verify_p6_8_templates_direct.sh test(phase-6): add P6.8 multi-pod Kubernetes acceptance tests 2026-05-25 03:58:37 -04:00
verify_p7_1_core_metrics.sh P7.1: Core metrics families acceptance tests 2026-05-23 02:29:28 -04:00