Skip to content

Commit c3dbd40

Browse files
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

20 files changed

+5195
-0
lines changed

Cargo.lock

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/warpgrid-api/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,7 @@ tokio.workspace = true
1515
tracing.workspace = true
1616
serde.workspace = true
1717
serde_json.workspace = true
18+
19+
[dev-dependencies]
20+
tower = { version = "0.5", features = ["util"] }
21+
http-body-util = "0.1"

0 commit comments

Comments
 (0)