|
- use server::routes;
-
- #[test]
- fn openapi_includes_item_and_health_paths() {
- let spec = routes::openapi_spec();
- let json = spec.to_pretty_json().expect("serialize openapi");
- assert!(json.contains("/health/live"), "missing live probe: {json}");
- assert!(json.contains("/health/ready"), "missing ready probe: {json}");
- assert!(json.contains("/api/v1/items"), "missing items collection: {json}");
- }
|