(agent: &ureq::Agent, url: &str, body: &Value)
| 366 | } |
| 367 | |
| 368 | fn post_json(agent: &ureq::Agent, url: &str, body: &Value) -> (u16, Value) { |
| 369 | let response = agent |
| 370 | .post(url) |
| 371 | .content_type("application/json") |
| 372 | .send(body.to_string()) |
| 373 | .expect("POST should succeed"); |
| 374 | response_to_json(response) |
| 375 | } |
| 376 | |
| 377 | #[test] |
| 378 | fn lcm_payload_health_and_gc_routes_require_preview_then_apply() { |