Commit 1f5ce90
Eric Price
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 endpoints1 parent 89c23b5 commit 1f5ce90
File tree
6 files changed
+1330
-112
lines changed- integration-tests
- lib
- tests
- stratum-apps/src/monitoring
6 files changed
+1330
-112
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 | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| |||
0 commit comments