RustRover cargo-generate template: Axum + Vue 3 + TypeScript + Tailwind + sqlx
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

11 regels
413 B

  1. use server::routes;
  2. #[test]
  3. fn openapi_includes_item_and_health_paths() {
  4. let spec = routes::openapi_spec();
  5. let json = spec.to_pretty_json().expect("serialize openapi");
  6. assert!(json.contains("/health/live"), "missing live probe: {json}");
  7. assert!(json.contains("/health/ready"), "missing ready probe: {json}");
  8. assert!(json.contains("/api/v1/items"), "missing items collection: {json}");
  9. }