Skip to content

Commit 1f5ce90

Browse files
author
Eric Price
committed
Add integration and unit tests for monitoring JSON API endpoints
- Add typed response structs for JSON API parsing (minimal fields only) - Add typed polling functions to replace stringly-typed JSON access - Add prometheus_metrics_assertions module with polling helpers - Add #[track_caller] to assert helpers for better debugging - Add shutdown calls to all integration tests - Use POLL_TIMEOUT constant instead of magic numbers - Add unit tests for http_server.rs endpoints
1 parent 89c23b5 commit 1f5ce90

File tree

6 files changed

+1330
-112
lines changed

6 files changed

+1330
-112
lines changed

integration-tests/Cargo.lock

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

integration-tests/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ tracing = { version = "0.1.41", default-features = false }
2828
tracing-subscriber = { version = "0.3.19", default-features = false }
2929
hex = "0.4.3"
3030
clap = { version = "^4.5.4", features = ["derive"] }
31+
serde_json = "1"
32+
serde = { version = "1", features = ["derive"] }
3133

3234
# Direct dependencies kept only for the embedded `mining_device` module.
3335
# Remove this block when removing:

0 commit comments

Comments
 (0)