use crate::harness::TestHarness; #[tokio::test] async fn health_endpoint_returns_operational_with_db() { let mut h = TestHarness::new().await; let resp = h.client.get("/api/health").await; assert_eq!(resp.status, 200); let body: serde_json::Value = resp.json(); assert_eq!(body["status"], "operational"); assert_eq!(body["database"], true); assert!(body["version"].as_str().is_some()); }