RustRover cargo-generate template: Axum + Vue 3 + TypeScript + Tailwind + sqlx
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

11 行
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. }