Commit c3dbd40
committed
test: add dedicated integration tests for 12 orchestration crates (#141)
Add 175 integration tests across all 12 orchestration crates that
previously only had inline unit tests:
- warpgrid-raft (6 tests): log store lifecycle, snapshot roundtrip,
membership persistence, concurrent reader/writer safety
- warpgrid-cluster (5 tests): join/leave lifecycle, heartbeat updates,
dead node detection, concurrent join safety, TLS cert validation
- warpgrid-rollout (13 tests): rolling/canary/blue-green lifecycles,
rollback, pause/resume, serialization roundtrip
- warpgrid-placement (11 tests): heterogeneous placement, affinity
labels, preemption, scoring weight effects
- warpgrid-autoscale (15 tests): mixed scale decisions, scale-to-zero,
cooldown, latency/memory-based scaling
- warpgrid-scheduler (18 tests): round-robin balancer, placement
executor, distributed placement, lifecycle errors
- warpgrid-health (12 tests): HTTP probes, state transitions,
monitor lifecycle, exponential backoff, timeout handling
- warpgrid-metrics (14 tests): collector lifecycle, snapshot resets,
Prometheus exposition, percentile accuracy, auto-discover
- warpgrid-proxy (24 tests): state sync, unhealthy backend skip,
DNS namespaces, TLS wildcard matching, event-driven updates
- warpgrid-api (13 tests): CRUD lifecycle, rollout API, scale
validation, Prometheus endpoint, response format consistency
- warpgrid-trigger (14 tests): echo handler, concurrent requests,
header roundtrip, URI edge cases, status boundaries
- warpgrid-dashboard (30 tests): page rendering, scale actions,
density demo, view helper edge cases
All tests use in-memory backends and ephemeral ports — no external
services required. Closes #141.1 parent 5444c40 commit c3dbd40
File tree
20 files changed
+5195
-0
lines changed- crates
- warpgrid-api
- tests
- warpgrid-autoscale/tests
- warpgrid-cluster/tests
- warpgrid-dashboard
- tests
- warpgrid-health
- tests
- warpgrid-metrics
- tests
- warpgrid-placement/tests
- warpgrid-proxy
- tests
- warpgrid-raft/tests
- warpgrid-rollout/tests
- warpgrid-scheduler
- tests
- warpgrid-trigger
- tests
20 files changed
+5195
-0
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments