2379 lines
93 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"start_time": "2025-06-27T18:31:47.474592",
"end_time": "2025-06-27T18:31:49.521012",
"duration_seconds": "2.05",
"overall_summary": {
"total_endpoints_defined": 6,
"endpoints_tested": 6,
"endpoints_passed": 0,
"endpoints_failed": 6,
"endpoints_error": 0,
"endpoints_skipped": 0,
"endpoints_partial_success": 0,
"endpoint_success_rate": "0.00%",
"total_test_cases_applicable": 114,
"total_test_cases_executed": 114,
"test_cases_passed": 82,
"test_cases_failed": 32,
"test_cases_error": 0,
"test_cases_skipped_in_endpoint": 0,
"test_case_success_rate": "71.93%",
"total_stages_defined": 1,
"total_stages_executed": 1,
"stages_passed": 0,
"stages_failed": 1,
"stages_error": 0,
"stages_skipped": 0,
"stage_success_rate": "0.00%"
},
"errors": [],
"endpoint_results": [
{
"endpoint_id": "POST /api/dms/{dms_instance_code}/v1/message/push/{schema}/{version}",
"endpoint_name": "数据推送接口",
"overall_status": "失败",
"duration_seconds": 0.456681,
"start_time": "2025-06-27T18:31:47.475495",
"end_time": "2025-06-27T18:31:47.932176",
"executed_test_cases": [
{
"test_case_id": "TC-HEADER-001",
"test_case_name": "必需请求头Schema验证",
"test_case_severity": "HIGH",
"status": "失败",
"message": "缺少必需的请求头 X-Tenant-ID;缺少必需的请求头 X-Data-Domain",
"duration_seconds": 0.06438075006008148,
"timestamp": "2025-06-27T18:31:47.540051",
"validation_points": [
{
"header": "X-Tenant-ID",
"possible_names": [
"X-Tenant-ID"
],
"endpoint": "POST /api/dms/{dms_instance_code}/v1/message/push/{schema}/{version}"
},
{
"header": "X-Data-Domain",
"possible_names": [
"X-Data-Domain"
],
"endpoint": "POST /api/dms/{dms_instance_code}/v1/message/push/{schema}/{version}"
}
]
},
{
"test_case_id": "TC-STATUS-001",
"test_case_name": "基本状态码 200 检查",
"test_case_severity": "CRITICAL",
"status": "通过",
"message": "响应状态码为 200符合预期 200。",
"duration_seconds": 0.021434332942590117,
"timestamp": "2025-06-27T18:31:47.561546",
"validation_points": [
{
"passed": true,
"message": "响应状态码为 200符合预期 200。"
}
]
},
{
"test_case_id": "TC-SECURITY-002",
"test_case_name": "敏感字段加密检查",
"test_case_severity": "HIGH",
"status": "通过",
"message": "未在响应中找到需要检查的敏感字段。",
"duration_seconds": 0.027430917019955814,
"timestamp": "2025-06-27T18:31:47.589053",
"validation_points": [
{
"passed": true,
"message": "未在响应中找到需要检查的敏感字段。"
}
]
},
{
"test_case_id": "TC-LLM-COMPLIANCE-001",
"test_case_name": "LLM合规性综合检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "合规性标准列表为空跳过LLM合规性检查。",
"duration_seconds": 0.015051166992634535,
"timestamp": "2025-06-27T18:31:47.604163",
"validation_points": [
{
"reason": "compliance_criteria.json is empty or contains an empty list."
}
]
},
{
"test_case_id": "TC-RESTful-001",
"test_case_name": "核心命名与结构规范检查",
"test_case_severity": "HIGH",
"status": "通过",
"message": "模块名 'dms' 格式正确 (全小写/数字/中划线)。;规范中未找到响应码 200 或其类别(2XX, default)的匹配定义跳过空数组与null的检查。",
"duration_seconds": 0.01809329097159207,
"timestamp": "2025-06-27T18:31:47.622352",
"validation_points": [
{
"passed": true,
"message": "模块名 'dms' 格式正确 (全小写/数字/中划线)。"
},
{
"passed": true,
"message": "规范中未找到响应码 200 或其类别(2XX, default)的匹配定义跳过空数组与null的检查。"
}
]
},
{
"test_case_id": "TC-DMS-PAGINATION-001",
"test_case_name": "分页参数检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "跳过检查API不符合分页参数检查的准入规则需包含'查询'/'列表'等关键词,且不包含'详情'等关键词)",
"duration_seconds": 0.02364641602616757,
"timestamp": "2025-06-27T18:31:47.646062",
"validation_points": [
{
"path": "/api/dms/{dms_instance_code}/v1/message/push/{schema}/{version}",
"method": "POST",
"summary": "数据推送接口",
"contains_include_keyword": false,
"contains_exclude_keyword": false
}
]
},
{
"test_case_id": "TC-RESTful-004",
"test_case_name": "资源集合复数命名检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "路径 '/api/dms/{dms_instance_code}/v1/message/push/{schema}/{version}' 的最后一个路径分段 'push' 是动词,不需要使用复数形式。",
"duration_seconds": 0.021498500020243227,
"timestamp": "2025-06-27T18:31:47.667678",
"validation_points": [
{
"passed": true,
"message": "路径 '/api/dms/{dms_instance_code}/v1/message/push/{schema}/{version}' 的最后一个路径分段 'push' 是动词,不需要使用复数形式。"
}
]
},
{
"test_case_id": "TC-RESTful-002",
"test_case_name": "资源路径名词检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "路径 '/api/dms/{dms_instance_code}/v1/message/push/{schema}/{version}' 符合资源名词命名规范。",
"duration_seconds": 0.01740520796738565,
"timestamp": "2025-06-27T18:31:47.685193",
"validation_points": [
{
"passed": true,
"message": "路径 '/api/dms/{dms_instance_code}/v1/message/push/{schema}/{version}' 符合资源名词命名规范。"
}
]
},
{
"test_case_id": "TC-DMS-CORE-SCHEMA-001",
"test_case_name": "DMS核心存储服务API响应格式检查",
"test_case_severity": "HIGH",
"status": "通过",
"message": "字段'code'在schema中未标记为必填(required);字段'message'在schema中未标记为必填(required);字段'data'在schema中未标记为必填(required);响应schema符合标准格式: {'code':int or number or string, 'message':string, 'data': any}",
"duration_seconds": 0.015079792006872594,
"timestamp": "2025-06-27T18:31:47.700387",
"validation_points": [
{
"status_code": "201",
"required_fields": []
},
{
"status_code": "201",
"required_fields": []
},
{
"status_code": "201",
"required_fields": []
},
{
"status_code": "201"
}
]
},
{
"test_case_id": "TC-CORE-FUNC-001",
"test_case_name": "返回体JSON Schema验证",
"test_case_severity": "CRITICAL",
"status": "通过",
"message": "Schema验证步骤完成未发现问题或schema不适用/未为此响应定义)。",
"duration_seconds": 0.017473499989137053,
"timestamp": "2025-06-27T18:31:47.717945",
"validation_points": [
{
"passed": true,
"message": "Schema验证步骤完成未发现问题或schema不适用/未为此响应定义)。"
}
]
},
{
"test_case_id": "TC-RESTful-003",
"test_case_name": "时间字段ISO 8601格式检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "在API规范中未找到可供静态检查的时间相关字段如 format: date-time 或 常见时间字段名)。",
"duration_seconds": 0.016569250030443072,
"timestamp": "2025-06-27T18:31:47.734571",
"validation_points": [
{
"passed": true,
"message": "在API规范中未找到可供静态检查的时间相关字段如 format: date-time 或 常见时间字段名)。"
}
]
},
{
"test_case_id": "TC-DMS-URL-VERSION-001",
"test_case_name": "DMS API URL版本号检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "API路径 '/api/dms/{dms_instance_code}/v1/message/push/{schema}/{version}' 正确以'/api/'开头;API路径 '/api/dms/{dms_instance_code}/v1/message/push/{schema}/{version}' 包含版本标识: 'v1'",
"duration_seconds": 0.01592779194470495,
"timestamp": "2025-06-27T18:31:47.750598",
"validation_points": [
{
"full_path": "/api/dms/{dms_instance_code}/v1/message/push/{schema}/{version}"
},
{
"pattern_matched": "/v\\d+/",
"version_string": "v1",
"full_path": "/api/dms/{dms_instance_code}/v1/message/push/{schema}/{version}"
}
]
},
{
"test_case_id": "TC-SECURITY-001",
"test_case_name": "HTTPS 协议强制性检查",
"test_case_severity": "HIGH",
"status": "失败",
"message": "API通过HTTP (http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/message/push/example_schema/example_version) 响应了成功的状态码 200这违反了HTTPS强制策略。",
"duration_seconds": 0.016685875016264617,
"timestamp": "2025-06-27T18:31:47.767384",
"validation_points": [
{
"status_code": 200
}
]
},
{
"test_case_id": "TC-ERROR-4001-QUERY",
"test_case_name": "查询参数类型不匹配检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "跳过测试:在查询参数中未找到合适的字段来测试类型不匹配。",
"duration_seconds": 0.0303790420293808,
"timestamp": "2025-06-27T18:31:47.797818",
"validation_points": [
{
"passed": true,
"message": "跳过测试:在查询参数中未找到合适的字段来测试类型不匹配。"
}
]
},
{
"test_case_id": "TC-ERROR-4001-BODY",
"test_case_name": "请求体字段类型不匹配检查",
"test_case_severity": "MEDIUM",
"status": "失败",
"message": "当请求体字段 'isSearchCount' 类型不匹配时, 业务错误码应为 -1但实际为 4006。",
"duration_seconds": 0.020185666042380035,
"timestamp": "2025-06-27T18:31:47.818059",
"validation_points": [
{
"expected_code": -1,
"actual_code": 4006,
"response_body": {
"code": 4006,
"message": "est officia in sit culpa",
"data": {
"total": 15,
"list": [
{
"dsid": "97",
"dataRegion": "ullamco est irure quis in",
"gasReleaseMon": null,
"gasReleaseYear": null,
"releaseGasCum": null,
"key": 123
}
]
}
}
}
]
},
{
"test_case_id": "TC-ERROR-4002",
"test_case_name": "数值参数越界检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "跳过测试:未找到具有明确范围限制的数值字段。",
"duration_seconds": 0.01978266704827547,
"timestamp": "2025-06-27T18:31:47.837903",
"validation_points": [
{
"passed": true,
"message": "跳过测试:未找到具有明确范围限制的数值字段。"
}
]
},
{
"test_case_id": "TC-ERROR-4006",
"test_case_name": "非法枚举值检查",
"test_case_severity": "MEDIUM",
"status": "失败",
"message": "当 body 字段 'logic' 值为 'invalid_enum_52nexj' (合法值为: ['AND', 'OR']) 时, 业务错误码应为 -1但实际为 4006。",
"duration_seconds": 0.0494648750172928,
"timestamp": "2025-06-27T18:31:47.887436",
"validation_points": [
{
"expected_code": -1,
"actual_code": 4006,
"response_body": {
"code": 4006,
"message": "est officia in sit culpa",
"data": {
"total": 15,
"list": [
{
"dsid": "97",
"dataRegion": "ullamco est irure quis in",
"gasReleaseMon": null,
"gasReleaseYear": null,
"releaseGasCum": null,
"key": 123
}
]
}
}
}
]
},
{
"test_case_id": "TC-ERROR-4003-BODY",
"test_case_name": "缺失必填请求体字段检查",
"test_case_severity": "HIGH",
"status": "通过",
"message": "跳过测试在API规范中未找到合适的必填请求体字段用于移除测试。",
"duration_seconds": 0.030933291069231927,
"timestamp": "2025-06-27T18:31:47.918496",
"validation_points": [
{
"passed": true,
"message": "跳过测试在API规范中未找到合适的必填请求体字段用于移除测试。"
}
]
},
{
"test_case_id": "TC-ERROR-4003-QUERY",
"test_case_name": "缺失必填查询参数检查",
"test_case_severity": "HIGH",
"status": "通过",
"message": "跳过测试在API规范中未找到合适的必填查询参数用于移除测试。",
"duration_seconds": 0.013563541928306222,
"timestamp": "2025-06-27T18:31:47.932133",
"validation_points": [
{
"passed": true,
"message": "跳过测试在API规范中未找到合适的必填查询参数用于移除测试。"
}
]
}
]
},
{
"endpoint_id": "POST /api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}",
"endpoint_name": "地质单元列表查询",
"overall_status": "失败",
"duration_seconds": 0.302163,
"start_time": "2025-06-27T18:31:47.932216",
"end_time": "2025-06-27T18:31:48.234379",
"executed_test_cases": [
{
"test_case_id": "TC-HEADER-001",
"test_case_name": "必需请求头Schema验证",
"test_case_severity": "HIGH",
"status": "失败",
"message": "缺少必需的请求头 X-Tenant-ID;缺少必需的请求头 X-Data-Domain",
"duration_seconds": 0.016041250084526837,
"timestamp": "2025-06-27T18:31:47.948449",
"validation_points": [
{
"header": "X-Tenant-ID",
"possible_names": [
"X-Tenant-ID"
],
"endpoint": "POST /api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}"
},
{
"header": "X-Data-Domain",
"possible_names": [
"X-Data-Domain"
],
"endpoint": "POST /api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}"
}
]
},
{
"test_case_id": "TC-STATUS-001",
"test_case_name": "基本状态码 200 检查",
"test_case_severity": "CRITICAL",
"status": "通过",
"message": "响应状态码为 200符合预期 200。",
"duration_seconds": 0.019225417054258287,
"timestamp": "2025-06-27T18:31:47.967719",
"validation_points": [
{
"passed": true,
"message": "响应状态码为 200符合预期 200。"
}
]
},
{
"test_case_id": "TC-SECURITY-002",
"test_case_name": "敏感字段加密检查",
"test_case_severity": "HIGH",
"status": "通过",
"message": "未在响应中找到需要检查的敏感字段。",
"duration_seconds": 0.014133334043435752,
"timestamp": "2025-06-27T18:31:47.981908",
"validation_points": [
{
"passed": true,
"message": "未在响应中找到需要检查的敏感字段。"
}
]
},
{
"test_case_id": "TC-LLM-COMPLIANCE-001",
"test_case_name": "LLM合规性综合检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "合规性标准列表为空跳过LLM合规性检查。",
"duration_seconds": 0.016350042074918747,
"timestamp": "2025-06-27T18:31:47.998306",
"validation_points": [
{
"reason": "compliance_criteria.json is empty or contains an empty list."
}
]
},
{
"test_case_id": "TC-RESTful-001",
"test_case_name": "核心命名与结构规范检查",
"test_case_severity": "HIGH",
"status": "通过",
"message": "模块名 'dms' 格式正确 (全小写/数字/中划线)。;规范中未找到响应码 200 或其类别(2XX, default)的匹配定义跳过空数组与null的检查。",
"duration_seconds": 0.01655383303295821,
"timestamp": "2025-06-27T18:31:48.014949",
"validation_points": [
{
"passed": true,
"message": "模块名 'dms' 格式正确 (全小写/数字/中划线)。"
},
{
"passed": true,
"message": "规范中未找到响应码 200 或其类别(2XX, default)的匹配定义跳过空数组与null的检查。"
}
]
},
{
"test_case_id": "TC-DMS-PAGINATION-001",
"test_case_name": "分页参数检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "API请求包含所有标准分页参数pageNo、pageSize和isSearchCount",
"duration_seconds": 0.013711916049942374,
"timestamp": "2025-06-27T18:31:48.028706",
"validation_points": [
{
"path": "/api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}",
"method": "POST"
}
]
},
{
"test_case_id": "TC-RESTful-004",
"test_case_name": "资源集合复数命名检查",
"test_case_severity": "MEDIUM",
"status": "失败",
"message": "路径 '/api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}' 的最后一个路径分段 'cd_geo_unit' 可能不是复数形式,建议对资源集合使用复数命名。",
"duration_seconds": 0.019844833994284272,
"timestamp": "2025-06-27T18:31:48.048660",
"validation_points": [
{
"path": "/api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}",
"segment": "cd_geo_unit"
}
]
},
{
"test_case_id": "TC-RESTful-002",
"test_case_name": "资源路径名词检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "路径 '/api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}' 符合资源名词命名规范。",
"duration_seconds": 0.013752541970461607,
"timestamp": "2025-06-27T18:31:48.062517",
"validation_points": [
{
"passed": true,
"message": "路径 '/api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}' 符合资源名词命名规范。"
}
]
},
{
"test_case_id": "TC-DMS-CORE-SCHEMA-001",
"test_case_name": "DMS核心存储服务API响应格式检查",
"test_case_severity": "HIGH",
"status": "通过",
"message": "字段'code'在schema中未标记为必填(required);字段'message'在schema中未标记为必填(required);字段'data'在schema中未标记为必填(required);响应schema符合标准格式: {'code':int or number or string, 'message':string, 'data': any}",
"duration_seconds": 0.01441316690761596,
"timestamp": "2025-06-27T18:31:48.077017",
"validation_points": [
{
"status_code": "201",
"required_fields": []
},
{
"status_code": "201",
"required_fields": []
},
{
"status_code": "201",
"required_fields": []
},
{
"status_code": "201"
}
]
},
{
"test_case_id": "TC-CORE-FUNC-001",
"test_case_name": "返回体JSON Schema验证",
"test_case_severity": "CRITICAL",
"status": "通过",
"message": "Schema验证步骤完成未发现问题或schema不适用/未为此响应定义)。",
"duration_seconds": 0.014562833937816322,
"timestamp": "2025-06-27T18:31:48.091666",
"validation_points": [
{
"passed": true,
"message": "Schema验证步骤完成未发现问题或schema不适用/未为此响应定义)。"
}
]
},
{
"test_case_id": "TC-RESTful-003",
"test_case_name": "时间字段ISO 8601格式检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "在API规范中未找到可供静态检查的时间相关字段如 format: date-time 或 常见时间字段名)。",
"duration_seconds": 0.016121916938573122,
"timestamp": "2025-06-27T18:31:48.107851",
"validation_points": [
{
"passed": true,
"message": "在API规范中未找到可供静态检查的时间相关字段如 format: date-time 或 常见时间字段名)。"
}
]
},
{
"test_case_id": "TC-DMS-URL-VERSION-001",
"test_case_name": "DMS API URL版本号检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "API路径 '/api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}' 正确以'/api/'开头;API路径 '/api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}' 包含版本标识: 'v1'",
"duration_seconds": 0.013305375003255904,
"timestamp": "2025-06-27T18:31:48.121275",
"validation_points": [
{
"full_path": "/api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}"
},
{
"pattern_matched": "/v\\d+/",
"version_string": "v1",
"full_path": "/api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}"
}
]
},
{
"test_case_id": "TC-SECURITY-001",
"test_case_name": "HTTPS 协议强制性检查",
"test_case_severity": "HIGH",
"status": "失败",
"message": "API通过HTTP (http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0) 响应了成功的状态码 200这违反了HTTPS强制策略。",
"duration_seconds": 0.01828229194507003,
"timestamp": "2025-06-27T18:31:48.139644",
"validation_points": [
{
"status_code": 200
}
]
},
{
"test_case_id": "TC-ERROR-4001-QUERY",
"test_case_name": "查询参数类型不匹配检查",
"test_case_severity": "MEDIUM",
"status": "失败",
"message": "当查询参数 'pageNo' (路径: 'pageNo') 类型不匹配时, 业务错误码应为 -1但实际为 76。",
"duration_seconds": 0.01399808400310576,
"timestamp": "2025-06-27T18:31:48.153707",
"validation_points": [
{
"expected_code": -1,
"actual_code": 76,
"response_body": {
"code": 76,
"message": "adipisicing eiusmod labore",
"data": {
"total": 21,
"list": [
{
"dsid": "89",
"dataRegion": "dolor ex",
"gasReleaseMon": null,
"gasReleaseYear": null,
"releaseGasCum": null
},
{
"dsid": "11",
"dataRegion": "dolore in sit dolore id",
"gasReleaseMon": null,
"gasReleaseYear": null,
"releaseGasCum": null
},
{
"dsid": "68",
"dataRegion": "in",
"gasReleaseMon": null,
"gasReleaseYear": null,
"releaseGasCum": null
}
]
}
}
}
]
},
{
"test_case_id": "TC-ERROR-4001-BODY",
"test_case_name": "请求体字段类型不匹配检查",
"test_case_severity": "MEDIUM",
"status": "失败",
"message": "当请求体字段 'isSearchCount' 类型不匹配时, 业务错误码应为 -1但实际为 30。",
"duration_seconds": 0.013564875000156462,
"timestamp": "2025-06-27T18:31:48.167325",
"validation_points": [
{
"expected_code": -1,
"actual_code": 30,
"response_body": {
"code": 30,
"message": "occaecat consequat",
"data": {
"total": 95,
"list": [
{
"dsid": "60",
"dataRegion": "adipisicing ut enim",
"gasReleaseMon": null,
"gasReleaseYear": null,
"releaseGasCum": null
},
{
"dsid": "14",
"dataRegion": "consequat irure dolore",
"gasReleaseMon": null,
"gasReleaseYear": null,
"releaseGasCum": null
},
{
"dsid": "1",
"dataRegion": "laboris reprehenderit ullamco",
"gasReleaseMon": null,
"gasReleaseYear": null,
"releaseGasCum": null
}
]
}
}
}
]
},
{
"test_case_id": "TC-ERROR-4002",
"test_case_name": "数值参数越界检查",
"test_case_severity": "MEDIUM",
"status": "失败",
"message": "当 query 字段 'pageNo' 值为 0.0 (超出范围: min=1.0, max=None) 时, 业务错误码应为 -1但实际为 100。",
"duration_seconds": 0.014584333053790033,
"timestamp": "2025-06-27T18:31:48.181965",
"validation_points": [
{
"expected_code": -1,
"actual_code": 100,
"response_body": {
"code": 100,
"message": "culpa esse reprehenderit quis qui",
"data": {
"total": 86,
"list": [
{
"dsid": "51",
"dataRegion": "mollit eiusmod sunt reprehenderit",
"gasReleaseMon": null,
"gasReleaseYear": null,
"releaseGasCum": null
}
]
}
}
}
]
},
{
"test_case_id": "TC-ERROR-4006",
"test_case_name": "非法枚举值检查",
"test_case_severity": "MEDIUM",
"status": "失败",
"message": "当 body 字段 'logic' 值为 'invalid_enum_f8ctci' (合法值为: ['AND', 'OR']) 时, 业务错误码应为 -1但实际为 46。",
"duration_seconds": 0.01689674996305257,
"timestamp": "2025-06-27T18:31:48.198921",
"validation_points": [
{
"expected_code": -1,
"actual_code": 46,
"response_body": {
"code": 46,
"message": "eu Excepteur",
"data": {
"total": 42,
"list": [
{
"dsid": "85",
"dataRegion": "consectetur",
"gasReleaseMon": null,
"gasReleaseYear": null,
"releaseGasCum": null
}
]
}
}
}
]
},
{
"test_case_id": "TC-ERROR-4003-BODY",
"test_case_name": "缺失必填请求体字段检查",
"test_case_severity": "HIGH",
"status": "通过",
"message": "跳过测试在API规范中未找到合适的必填请求体字段用于移除测试。",
"duration_seconds": 0.016181541956029832,
"timestamp": "2025-06-27T18:31:48.215214",
"validation_points": [
{
"passed": true,
"message": "跳过测试在API规范中未找到合适的必填请求体字段用于移除测试。"
}
]
},
{
"test_case_id": "TC-ERROR-4003-QUERY",
"test_case_name": "缺失必填查询参数检查",
"test_case_severity": "HIGH",
"status": "通过",
"message": "跳过测试在API规范中未找到合适的必填查询参数用于移除测试。",
"duration_seconds": 0.019060249906033278,
"timestamp": "2025-06-27T18:31:48.234335",
"validation_points": [
{
"passed": true,
"message": "跳过测试在API规范中未找到合适的必填查询参数用于移除测试。"
}
]
}
]
},
{
"endpoint_id": "PUT /api/dms/{dms_instance_code}/v1/cd_geo_unit",
"endpoint_name": "地质单元数据修改",
"overall_status": "失败",
"duration_seconds": 0.307395,
"start_time": "2025-06-27T18:31:48.234412",
"end_time": "2025-06-27T18:31:48.541807",
"executed_test_cases": [
{
"test_case_id": "TC-HEADER-001",
"test_case_name": "必需请求头Schema验证",
"test_case_severity": "HIGH",
"status": "失败",
"message": "缺少必需的请求头 X-Tenant-ID;缺少必需的请求头 X-Data-Domain",
"duration_seconds": 0.01442587492056191,
"timestamp": "2025-06-27T18:31:48.249016",
"validation_points": [
{
"header": "X-Tenant-ID",
"possible_names": [
"X-Tenant-ID"
],
"endpoint": "PUT /api/dms/{dms_instance_code}/v1/cd_geo_unit"
},
{
"header": "X-Data-Domain",
"possible_names": [
"X-Data-Domain"
],
"endpoint": "PUT /api/dms/{dms_instance_code}/v1/cd_geo_unit"
}
]
},
{
"test_case_id": "TC-STATUS-001",
"test_case_name": "基本状态码 200 检查",
"test_case_severity": "CRITICAL",
"status": "通过",
"message": "响应状态码为 200符合预期 200。",
"duration_seconds": 0.013488790951669216,
"timestamp": "2025-06-27T18:31:48.262547",
"validation_points": [
{
"passed": true,
"message": "响应状态码为 200符合预期 200。"
}
]
},
{
"test_case_id": "TC-SECURITY-002",
"test_case_name": "敏感字段加密检查",
"test_case_severity": "HIGH",
"status": "通过",
"message": "未在响应中找到需要检查的敏感字段。",
"duration_seconds": 0.013429000042378902,
"timestamp": "2025-06-27T18:31:48.276029",
"validation_points": [
{
"passed": true,
"message": "未在响应中找到需要检查的敏感字段。"
}
]
},
{
"test_case_id": "TC-LLM-COMPLIANCE-001",
"test_case_name": "LLM合规性综合检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "合规性标准列表为空跳过LLM合规性检查。",
"duration_seconds": 0.014974292018450797,
"timestamp": "2025-06-27T18:31:48.291046",
"validation_points": [
{
"reason": "compliance_criteria.json is empty or contains an empty list."
}
]
},
{
"test_case_id": "TC-RESTful-001",
"test_case_name": "核心命名与结构规范检查",
"test_case_severity": "HIGH",
"status": "通过",
"message": "模块名 'dms' 格式正确 (全小写/数字/中划线)。",
"duration_seconds": 0.0177593749249354,
"timestamp": "2025-06-27T18:31:48.308903",
"validation_points": [
{
"passed": true,
"message": "模块名 'dms' 格式正确 (全小写/数字/中划线)。"
}
]
},
{
"test_case_id": "TC-DMS-PAGINATION-001",
"test_case_name": "分页参数检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "跳过检查API不符合分页参数检查的准入规则需包含'查询'/'列表'等关键词,且不包含'详情'等关键词)",
"duration_seconds": 0.0210690830135718,
"timestamp": "2025-06-27T18:31:48.330025",
"validation_points": [
{
"path": "/api/dms/{dms_instance_code}/v1/cd_geo_unit",
"method": "PUT",
"summary": "地质单元数据修改",
"contains_include_keyword": false,
"contains_exclude_keyword": false
}
]
},
{
"test_case_id": "TC-RESTful-004",
"test_case_name": "资源集合复数命名检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "跳过检查PUT 方法,不适用于资源集合复数检查。",
"duration_seconds": 0.014026165939867496,
"timestamp": "2025-06-27T18:31:48.344162",
"validation_points": [
{
"passed": true,
"message": "跳过检查PUT 方法,不适用于资源集合复数检查。"
}
]
},
{
"test_case_id": "TC-RESTful-002",
"test_case_name": "资源路径名词检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "路径 '/api/dms/{dms_instance_code}/v1/cd_geo_unit' 符合资源名词命名规范。",
"duration_seconds": 0.014490584027953446,
"timestamp": "2025-06-27T18:31:48.358770",
"validation_points": [
{
"passed": true,
"message": "路径 '/api/dms/{dms_instance_code}/v1/cd_geo_unit' 符合资源名词命名规范。"
}
]
},
{
"test_case_id": "TC-DMS-CORE-SCHEMA-001",
"test_case_name": "DMS核心存储服务API响应格式检查",
"test_case_severity": "HIGH",
"status": "通过",
"message": "字段'code'在schema中未标记为必填(required);字段'message'在schema中未标记为必填(required);字段'data'在schema中未标记为必填(required);响应schema符合标准格式: {'code':int or number or string, 'message':string, 'data': any}",
"duration_seconds": 0.015993834007531404,
"timestamp": "2025-06-27T18:31:48.374857",
"validation_points": [
{
"status_code": "200",
"required_fields": []
},
{
"status_code": "200",
"required_fields": []
},
{
"status_code": "200",
"required_fields": []
},
{
"status_code": "200"
}
]
},
{
"test_case_id": "TC-CORE-FUNC-001",
"test_case_name": "返回体JSON Schema验证",
"test_case_severity": "CRITICAL",
"status": "通过",
"message": "针对 PUT http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit (状态码 200) 的响应体 conforms to the JSON schema.",
"duration_seconds": 0.01903237495571375,
"timestamp": "2025-06-27T18:31:48.393999",
"validation_points": [
{
"passed": true,
"message": "针对 PUT http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit (状态码 200) 的响应体 conforms to the JSON schema."
}
]
},
{
"test_case_id": "TC-RESTful-003",
"test_case_name": "时间字段ISO 8601格式检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "在API规范中未找到可供静态检查的时间相关字段如 format: date-time 或 常见时间字段名)。",
"duration_seconds": 0.018325832905247808,
"timestamp": "2025-06-27T18:31:48.412409",
"validation_points": [
{
"passed": true,
"message": "在API规范中未找到可供静态检查的时间相关字段如 format: date-time 或 常见时间字段名)。"
}
]
},
{
"test_case_id": "TC-DMS-URL-VERSION-001",
"test_case_name": "DMS API URL版本号检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "API路径 '/api/dms/{dms_instance_code}/v1/cd_geo_unit' 正确以'/api/'开头;API路径 '/api/dms/{dms_instance_code}/v1/cd_geo_unit' 包含版本标识: 'v1'",
"duration_seconds": 0.01983479200862348,
"timestamp": "2025-06-27T18:31:48.432363",
"validation_points": [
{
"full_path": "/api/dms/{dms_instance_code}/v1/cd_geo_unit"
},
{
"pattern_matched": "/v\\d+/",
"version_string": "v1",
"full_path": "/api/dms/{dms_instance_code}/v1/cd_geo_unit"
}
]
},
{
"test_case_id": "TC-SECURITY-001",
"test_case_name": "HTTPS 协议强制性检查",
"test_case_severity": "HIGH",
"status": "失败",
"message": "API通过HTTP (http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit) 响应了成功的状态码 200这违反了HTTPS强制策略。",
"duration_seconds": 0.01480075006838888,
"timestamp": "2025-06-27T18:31:48.447279",
"validation_points": [
{
"status_code": 200
}
]
},
{
"test_case_id": "TC-ERROR-4001-QUERY",
"test_case_name": "查询参数类型不匹配检查",
"test_case_severity": "MEDIUM",
"status": "失败",
"message": "当查询参数 'id' (路径: 'id') 类型不匹配时, 业务错误码应为 -1但实际为 37。",
"duration_seconds": 0.016165665932931006,
"timestamp": "2025-06-27T18:31:48.463522",
"validation_points": [
{
"expected_code": -1,
"actual_code": 37,
"response_body": {
"code": 37,
"message": "sunt minim Lorem id",
"data": false
}
}
]
},
{
"test_case_id": "TC-ERROR-4001-BODY",
"test_case_name": "请求体字段类型不匹配检查",
"test_case_severity": "MEDIUM",
"status": "失败",
"message": "当请求体字段 'id' 类型不匹配时, 业务错误码应为 -1但实际为 82。",
"duration_seconds": 0.015711790998466313,
"timestamp": "2025-06-27T18:31:48.479292",
"validation_points": [
{
"expected_code": -1,
"actual_code": 82,
"response_body": {
"code": 82,
"message": "ex consectetur esse",
"data": true
}
}
]
},
{
"test_case_id": "TC-ERROR-4002",
"test_case_name": "数值参数越界检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "跳过测试:未找到具有明确范围限制的数值字段。",
"duration_seconds": 0.01455995801370591,
"timestamp": "2025-06-27T18:31:48.493923",
"validation_points": [
{
"passed": true,
"message": "跳过测试:未找到具有明确范围限制的数值字段。"
}
]
},
{
"test_case_id": "TC-ERROR-4006",
"test_case_name": "非法枚举值检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "跳过测试:未找到具有明确枚举值限制的字段。",
"duration_seconds": 0.01596383296418935,
"timestamp": "2025-06-27T18:31:48.509934",
"validation_points": [
{
"passed": true,
"message": "跳过测试:未找到具有明确枚举值限制的字段。"
}
]
},
{
"test_case_id": "TC-ERROR-4003-BODY",
"test_case_name": "缺失必填请求体字段检查",
"test_case_severity": "HIGH",
"status": "失败",
"message": "当移除必填请求体字段 'id' 时, 业务错误码应为 -1但实际为 4003。",
"duration_seconds": 0.0172431250102818,
"timestamp": "2025-06-27T18:31:48.527278",
"validation_points": [
{
"expected_code": -1,
"actual_code": 4003,
"response_body": {
"code": 4003
}
}
]
},
{
"test_case_id": "TC-ERROR-4003-QUERY",
"test_case_name": "缺失必填查询参数检查",
"test_case_severity": "HIGH",
"status": "失败",
"message": "当移除必填查询参数 'id' 时, 业务错误码应为 -1但实际为 100。",
"duration_seconds": 0.01437962509226054,
"timestamp": "2025-06-27T18:31:48.541740",
"validation_points": [
{
"expected_code": -1,
"actual_code": 100,
"response_body": {
"code": 100,
"message": "irure consectetur",
"data": true
}
}
]
}
]
},
{
"endpoint_id": "DELETE /api/dms/{dms_instance_code}/v1/cd_geo_unit",
"endpoint_name": "地质单元数据删除",
"overall_status": "失败",
"duration_seconds": 0.289436,
"start_time": "2025-06-27T18:31:48.541838",
"end_time": "2025-06-27T18:31:48.831274",
"executed_test_cases": [
{
"test_case_id": "TC-HEADER-001",
"test_case_name": "必需请求头Schema验证",
"test_case_severity": "HIGH",
"status": "失败",
"message": "缺少必需的请求头 X-Tenant-ID;缺少必需的请求头 X-Data-Domain",
"duration_seconds": 0.01323258294723928,
"timestamp": "2025-06-27T18:31:48.555247",
"validation_points": [
{
"header": "X-Tenant-ID",
"possible_names": [
"X-Tenant-ID"
],
"endpoint": "DELETE /api/dms/{dms_instance_code}/v1/cd_geo_unit"
},
{
"header": "X-Data-Domain",
"possible_names": [
"X-Data-Domain"
],
"endpoint": "DELETE /api/dms/{dms_instance_code}/v1/cd_geo_unit"
}
]
},
{
"test_case_id": "TC-STATUS-001",
"test_case_name": "基本状态码 200 检查",
"test_case_severity": "CRITICAL",
"status": "通过",
"message": "响应状态码为 200符合预期 200。",
"duration_seconds": 0.013469333061948419,
"timestamp": "2025-06-27T18:31:48.568761",
"validation_points": [
{
"passed": true,
"message": "响应状态码为 200符合预期 200。"
}
]
},
{
"test_case_id": "TC-SECURITY-002",
"test_case_name": "敏感字段加密检查",
"test_case_severity": "HIGH",
"status": "通过",
"message": "未在响应中找到需要检查的敏感字段。",
"duration_seconds": 0.012798208044841886,
"timestamp": "2025-06-27T18:31:48.581618",
"validation_points": [
{
"passed": true,
"message": "未在响应中找到需要检查的敏感字段。"
}
]
},
{
"test_case_id": "TC-LLM-COMPLIANCE-001",
"test_case_name": "LLM合规性综合检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "合规性标准列表为空跳过LLM合规性检查。",
"duration_seconds": 0.01501058298163116,
"timestamp": "2025-06-27T18:31:48.596668",
"validation_points": [
{
"reason": "compliance_criteria.json is empty or contains an empty list."
}
]
},
{
"test_case_id": "TC-RESTful-001",
"test_case_name": "核心命名与结构规范检查",
"test_case_severity": "HIGH",
"status": "通过",
"message": "模块名 'dms' 格式正确 (全小写/数字/中划线)。",
"duration_seconds": 0.014983040979132056,
"timestamp": "2025-06-27T18:31:48.611746",
"validation_points": [
{
"passed": true,
"message": "模块名 'dms' 格式正确 (全小写/数字/中划线)。"
}
]
},
{
"test_case_id": "TC-DMS-PAGINATION-001",
"test_case_name": "分页参数检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "跳过检查API不符合分页参数检查的准入规则需包含'查询'/'列表'等关键词,且不包含'详情'等关键词)",
"duration_seconds": 0.017655540956184268,
"timestamp": "2025-06-27T18:31:48.629442",
"validation_points": [
{
"path": "/api/dms/{dms_instance_code}/v1/cd_geo_unit",
"method": "DELETE",
"summary": "地质单元数据删除",
"contains_include_keyword": false,
"contains_exclude_keyword": false
}
]
},
{
"test_case_id": "TC-RESTful-004",
"test_case_name": "资源集合复数命名检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "跳过检查DELETE 方法,不适用于资源集合复数检查。",
"duration_seconds": 0.013101125019602478,
"timestamp": "2025-06-27T18:31:48.642626",
"validation_points": [
{
"passed": true,
"message": "跳过检查DELETE 方法,不适用于资源集合复数检查。"
}
]
},
{
"test_case_id": "TC-RESTful-002",
"test_case_name": "资源路径名词检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "路径 '/api/dms/{dms_instance_code}/v1/cd_geo_unit' 符合资源名词命名规范。",
"duration_seconds": 0.013334707939065993,
"timestamp": "2025-06-27T18:31:48.656061",
"validation_points": [
{
"passed": true,
"message": "路径 '/api/dms/{dms_instance_code}/v1/cd_geo_unit' 符合资源名词命名规范。"
}
]
},
{
"test_case_id": "TC-DMS-CORE-SCHEMA-001",
"test_case_name": "DMS核心存储服务API响应格式检查",
"test_case_severity": "HIGH",
"status": "通过",
"message": "字段'code'在schema中未标记为必填(required);字段'message'在schema中未标记为必填(required);字段'data'在schema中未标记为必填(required);响应schema符合标准格式: {'code':int or number or string, 'message':string, 'data': any}",
"duration_seconds": 0.012976334081031382,
"timestamp": "2025-06-27T18:31:48.669126",
"validation_points": [
{
"status_code": "200",
"required_fields": []
},
{
"status_code": "200",
"required_fields": []
},
{
"status_code": "200",
"required_fields": []
},
{
"status_code": "200"
}
]
},
{
"test_case_id": "TC-CORE-FUNC-001",
"test_case_name": "返回体JSON Schema验证",
"test_case_severity": "CRITICAL",
"status": "通过",
"message": "针对 DELETE http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit (状态码 200) 的响应体 conforms to the JSON schema.",
"duration_seconds": 0.01764212502166629,
"timestamp": "2025-06-27T18:31:48.686858",
"validation_points": [
{
"passed": true,
"message": "针对 DELETE http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit (状态码 200) 的响应体 conforms to the JSON schema."
}
]
},
{
"test_case_id": "TC-RESTful-003",
"test_case_name": "时间字段ISO 8601格式检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "在API规范中未找到可供静态检查的时间相关字段如 format: date-time 或 常见时间字段名)。",
"duration_seconds": 0.013070916989818215,
"timestamp": "2025-06-27T18:31:48.699982",
"validation_points": [
{
"passed": true,
"message": "在API规范中未找到可供静态检查的时间相关字段如 format: date-time 或 常见时间字段名)。"
}
]
},
{
"test_case_id": "TC-DMS-URL-VERSION-001",
"test_case_name": "DMS API URL版本号检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "API路径 '/api/dms/{dms_instance_code}/v1/cd_geo_unit' 正确以'/api/'开头;API路径 '/api/dms/{dms_instance_code}/v1/cd_geo_unit' 包含版本标识: 'v1'",
"duration_seconds": 0.01599233306478709,
"timestamp": "2025-06-27T18:31:48.716058",
"validation_points": [
{
"full_path": "/api/dms/{dms_instance_code}/v1/cd_geo_unit"
},
{
"pattern_matched": "/v\\d+/",
"version_string": "v1",
"full_path": "/api/dms/{dms_instance_code}/v1/cd_geo_unit"
}
]
},
{
"test_case_id": "TC-SECURITY-001",
"test_case_name": "HTTPS 协议强制性检查",
"test_case_severity": "HIGH",
"status": "失败",
"message": "API通过HTTP (http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit) 响应了成功的状态码 200这违反了HTTPS强制策略。",
"duration_seconds": 0.01436533301603049,
"timestamp": "2025-06-27T18:31:48.730684",
"validation_points": [
{
"status_code": 200
}
]
},
{
"test_case_id": "TC-ERROR-4001-QUERY",
"test_case_name": "查询参数类型不匹配检查",
"test_case_severity": "MEDIUM",
"status": "失败",
"message": "当查询参数 'id' (路径: 'id') 类型不匹配时, 业务错误码应为 -1但实际为 86。",
"duration_seconds": 0.01414800004567951,
"timestamp": "2025-06-27T18:31:48.744884",
"validation_points": [
{
"expected_code": -1,
"actual_code": 86,
"response_body": {
"code": 86,
"message": "aliqua ea Ut sed",
"data": true
}
}
]
},
{
"test_case_id": "TC-ERROR-4001-BODY",
"test_case_name": "请求体字段类型不匹配检查",
"test_case_severity": "MEDIUM",
"status": "失败",
"message": "当请求体字段 'version' 类型不匹配时, 业务错误码应为 -1但实际为 94。",
"duration_seconds": 0.019835749990306795,
"timestamp": "2025-06-27T18:31:48.764776",
"validation_points": [
{
"expected_code": -1,
"actual_code": 94,
"response_body": {
"code": 94,
"message": "ullamco velit elit aute proident",
"data": false
}
}
]
},
{
"test_case_id": "TC-ERROR-4002",
"test_case_name": "数值参数越界检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "跳过测试:未找到具有明确范围限制的数值字段。",
"duration_seconds": 0.016047083074226975,
"timestamp": "2025-06-27T18:31:48.780968",
"validation_points": [
{
"passed": true,
"message": "跳过测试:未找到具有明确范围限制的数值字段。"
}
]
},
{
"test_case_id": "TC-ERROR-4006",
"test_case_name": "非法枚举值检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "跳过测试:未找到具有明确枚举值限制的字段。",
"duration_seconds": 0.015620624995790422,
"timestamp": "2025-06-27T18:31:48.796822",
"validation_points": [
{
"passed": true,
"message": "跳过测试:未找到具有明确枚举值限制的字段。"
}
]
},
{
"test_case_id": "TC-ERROR-4003-BODY",
"test_case_name": "缺失必填请求体字段检查",
"test_case_severity": "HIGH",
"status": "通过",
"message": "跳过测试在API规范中未找到合适的必填请求体字段用于移除测试。",
"duration_seconds": 0.01525320892687887,
"timestamp": "2025-06-27T18:31:48.812477",
"validation_points": [
{
"passed": true,
"message": "跳过测试在API规范中未找到合适的必填请求体字段用于移除测试。"
}
]
},
{
"test_case_id": "TC-ERROR-4003-QUERY",
"test_case_name": "缺失必填查询参数检查",
"test_case_severity": "HIGH",
"status": "失败",
"message": "当移除必填查询参数 'id' 时, 业务错误码应为 -1但实际为 31。",
"duration_seconds": 0.018560249940492213,
"timestamp": "2025-06-27T18:31:48.831184",
"validation_points": [
{
"expected_code": -1,
"actual_code": 31,
"response_body": {
"code": 31,
"message": "culpa aliqua occaecat sint",
"data": false
}
}
]
}
]
},
{
"endpoint_id": "POST /api/dms/{dms_instance_code}/v1/cd_geo_unit",
"endpoint_name": "地质单元数据添加",
"overall_status": "失败",
"duration_seconds": 0.332583,
"start_time": "2025-06-27T18:31:48.831306",
"end_time": "2025-06-27T18:31:49.163889",
"executed_test_cases": [
{
"test_case_id": "TC-HEADER-001",
"test_case_name": "必需请求头Schema验证",
"test_case_severity": "HIGH",
"status": "失败",
"message": "缺少必需的请求头 X-Tenant-ID;缺少必需的请求头 X-Data-Domain",
"duration_seconds": 0.014915124978870153,
"timestamp": "2025-06-27T18:31:48.846389",
"validation_points": [
{
"header": "X-Tenant-ID",
"possible_names": [
"X-Tenant-ID"
],
"endpoint": "POST /api/dms/{dms_instance_code}/v1/cd_geo_unit"
},
{
"header": "X-Data-Domain",
"possible_names": [
"X-Data-Domain"
],
"endpoint": "POST /api/dms/{dms_instance_code}/v1/cd_geo_unit"
}
]
},
{
"test_case_id": "TC-STATUS-001",
"test_case_name": "基本状态码 200 检查",
"test_case_severity": "CRITICAL",
"status": "通过",
"message": "响应状态码为 200符合预期 200。",
"duration_seconds": 0.01579466590192169,
"timestamp": "2025-06-27T18:31:48.862224",
"validation_points": [
{
"passed": true,
"message": "响应状态码为 200符合预期 200。"
}
]
},
{
"test_case_id": "TC-SECURITY-002",
"test_case_name": "敏感字段加密检查",
"test_case_severity": "HIGH",
"status": "通过",
"message": "未在响应中找到需要检查的敏感字段。",
"duration_seconds": 0.014088874915614724,
"timestamp": "2025-06-27T18:31:48.876358",
"validation_points": [
{
"passed": true,
"message": "未在响应中找到需要检查的敏感字段。"
}
]
},
{
"test_case_id": "TC-LLM-COMPLIANCE-001",
"test_case_name": "LLM合规性综合检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "合规性标准列表为空跳过LLM合规性检查。",
"duration_seconds": 0.013258749968372285,
"timestamp": "2025-06-27T18:31:48.889659",
"validation_points": [
{
"reason": "compliance_criteria.json is empty or contains an empty list."
}
]
},
{
"test_case_id": "TC-RESTful-001",
"test_case_name": "核心命名与结构规范检查",
"test_case_severity": "HIGH",
"status": "通过",
"message": "模块名 'dms' 格式正确 (全小写/数字/中划线)。;规范中未找到响应码 200 或其类别(2XX, default)的匹配定义跳过空数组与null的检查。",
"duration_seconds": 0.01917745906393975,
"timestamp": "2025-06-27T18:31:48.908936",
"validation_points": [
{
"passed": true,
"message": "模块名 'dms' 格式正确 (全小写/数字/中划线)。"
},
{
"passed": true,
"message": "规范中未找到响应码 200 或其类别(2XX, default)的匹配定义跳过空数组与null的检查。"
}
]
},
{
"test_case_id": "TC-DMS-PAGINATION-001",
"test_case_name": "分页参数检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "跳过检查API不符合分页参数检查的准入规则需包含'查询'/'列表'等关键词,且不包含'详情'等关键词)",
"duration_seconds": 0.015832875040359795,
"timestamp": "2025-06-27T18:31:48.924826",
"validation_points": [
{
"path": "/api/dms/{dms_instance_code}/v1/cd_geo_unit",
"method": "POST",
"summary": "地质单元数据添加",
"contains_include_keyword": false,
"contains_exclude_keyword": false
}
]
},
{
"test_case_id": "TC-RESTful-004",
"test_case_name": "资源集合复数命名检查",
"test_case_severity": "MEDIUM",
"status": "失败",
"message": "路径 '/api/dms/{dms_instance_code}/v1/cd_geo_unit' 的最后一个路径分段 'cd_geo_unit' 可能不是复数形式,建议对资源集合使用复数命名。",
"duration_seconds": 0.013837417005561292,
"timestamp": "2025-06-27T18:31:48.938763",
"validation_points": [
{
"path": "/api/dms/{dms_instance_code}/v1/cd_geo_unit",
"segment": "cd_geo_unit"
}
]
},
{
"test_case_id": "TC-RESTful-002",
"test_case_name": "资源路径名词检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "路径 '/api/dms/{dms_instance_code}/v1/cd_geo_unit' 符合资源名词命名规范。",
"duration_seconds": 0.013892333954572678,
"timestamp": "2025-06-27T18:31:48.952768",
"validation_points": [
{
"passed": true,
"message": "路径 '/api/dms/{dms_instance_code}/v1/cd_geo_unit' 符合资源名词命名规范。"
}
]
},
{
"test_case_id": "TC-DMS-CORE-SCHEMA-001",
"test_case_name": "DMS核心存储服务API响应格式检查",
"test_case_severity": "HIGH",
"status": "通过",
"message": "字段'code'在schema中未标记为必填(required);字段'message'在schema中未标记为必填(required);字段'data'在schema中未标记为必填(required);响应schema符合标准格式: {'code':int or number or string, 'message':string, 'data': any}",
"duration_seconds": 0.013926750048995018,
"timestamp": "2025-06-27T18:31:48.966775",
"validation_points": [
{
"status_code": "201",
"required_fields": []
},
{
"status_code": "201",
"required_fields": []
},
{
"status_code": "201",
"required_fields": []
},
{
"status_code": "201"
}
]
},
{
"test_case_id": "TC-CORE-FUNC-001",
"test_case_name": "返回体JSON Schema验证",
"test_case_severity": "CRITICAL",
"status": "通过",
"message": "Schema验证步骤完成未发现问题或schema不适用/未为此响应定义)。",
"duration_seconds": 0.015700625022873282,
"timestamp": "2025-06-27T18:31:48.982559",
"validation_points": [
{
"passed": true,
"message": "Schema验证步骤完成未发现问题或schema不适用/未为此响应定义)。"
}
]
},
{
"test_case_id": "TC-RESTful-003",
"test_case_name": "时间字段ISO 8601格式检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "在API规范中未找到可供静态检查的时间相关字段如 format: date-time 或 常见时间字段名)。",
"duration_seconds": 0.018757875077426434,
"timestamp": "2025-06-27T18:31:49.001370",
"validation_points": [
{
"passed": true,
"message": "在API规范中未找到可供静态检查的时间相关字段如 format: date-time 或 常见时间字段名)。"
}
]
},
{
"test_case_id": "TC-DMS-URL-VERSION-001",
"test_case_name": "DMS API URL版本号检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "API路径 '/api/dms/{dms_instance_code}/v1/cd_geo_unit' 正确以'/api/'开头;API路径 '/api/dms/{dms_instance_code}/v1/cd_geo_unit' 包含版本标识: 'v1'",
"duration_seconds": 0.015162333031184971,
"timestamp": "2025-06-27T18:31:49.016851",
"validation_points": [
{
"full_path": "/api/dms/{dms_instance_code}/v1/cd_geo_unit"
},
{
"pattern_matched": "/v\\d+/",
"version_string": "v1",
"full_path": "/api/dms/{dms_instance_code}/v1/cd_geo_unit"
}
]
},
{
"test_case_id": "TC-SECURITY-001",
"test_case_name": "HTTPS 协议强制性检查",
"test_case_severity": "HIGH",
"status": "失败",
"message": "API通过HTTP (http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit) 响应了成功的状态码 200这违反了HTTPS强制策略。",
"duration_seconds": 0.015218541957437992,
"timestamp": "2025-06-27T18:31:49.032326",
"validation_points": [
{
"status_code": 200
}
]
},
{
"test_case_id": "TC-ERROR-4001-QUERY",
"test_case_name": "查询参数类型不匹配检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "跳过测试:在查询参数中未找到合适的字段来测试类型不匹配。",
"duration_seconds": 0.014804290956817567,
"timestamp": "2025-06-27T18:31:49.047264",
"validation_points": [
{
"passed": true,
"message": "跳过测试:在查询参数中未找到合适的字段来测试类型不匹配。"
}
]
},
{
"test_case_id": "TC-ERROR-4001-BODY",
"test_case_name": "请求体字段类型不匹配检查",
"test_case_severity": "MEDIUM",
"status": "失败",
"message": "当请求体字段 'version' 类型不匹配时, 业务错误码应为 -1但实际为 98。",
"duration_seconds": 0.01484554202761501,
"timestamp": "2025-06-27T18:31:49.062310",
"validation_points": [
{
"expected_code": -1,
"actual_code": 98,
"response_body": {
"code": 98,
"message": "exercitation nulla",
"data": true
}
}
]
},
{
"test_case_id": "TC-ERROR-4002",
"test_case_name": "数值参数越界检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "跳过测试:未找到具有明确范围限制的数值字段。",
"duration_seconds": 0.019249957986176014,
"timestamp": "2025-06-27T18:31:49.081763",
"validation_points": [
{
"passed": true,
"message": "跳过测试:未找到具有明确范围限制的数值字段。"
}
]
},
{
"test_case_id": "TC-ERROR-4006",
"test_case_name": "非法枚举值检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "跳过测试:未找到具有明确枚举值限制的字段。",
"duration_seconds": 0.014991416013799608,
"timestamp": "2025-06-27T18:31:49.096951",
"validation_points": [
{
"passed": true,
"message": "跳过测试:未找到具有明确枚举值限制的字段。"
}
]
},
{
"test_case_id": "TC-ERROR-4003-BODY",
"test_case_name": "缺失必填请求体字段检查",
"test_case_severity": "HIGH",
"status": "失败",
"message": "当移除必填请求体字段 'data.0.bsflag' 时, 业务错误码应为 -1但实际为 17。",
"duration_seconds": 0.02948533301241696,
"timestamp": "2025-06-27T18:31:49.126719",
"validation_points": [
{
"expected_code": -1,
"actual_code": 17,
"response_body": {
"code": 17,
"message": "ullamco est",
"data": false
}
}
]
},
{
"test_case_id": "TC-ERROR-4003-QUERY",
"test_case_name": "缺失必填查询参数检查",
"test_case_severity": "HIGH",
"status": "通过",
"message": "跳过测试在API规范中未找到合适的必填查询参数用于移除测试。",
"duration_seconds": 0.03665541601367295,
"timestamp": "2025-06-27T18:31:49.163678",
"validation_points": [
{
"passed": true,
"message": "跳过测试在API规范中未找到合适的必填查询参数用于移除测试。"
}
]
}
]
},
{
"endpoint_id": "GET /api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}/{id}",
"endpoint_name": "地质单元查询详情",
"overall_status": "失败",
"duration_seconds": 0.31801,
"start_time": "2025-06-27T18:31:49.164097",
"end_time": "2025-06-27T18:31:49.482107",
"executed_test_cases": [
{
"test_case_id": "TC-HEADER-001",
"test_case_name": "必需请求头Schema验证",
"test_case_severity": "HIGH",
"status": "失败",
"message": "缺少必需的请求头 X-Tenant-ID;缺少必需的请求头 X-Data-Domain",
"duration_seconds": 0.01810079102870077,
"timestamp": "2025-06-27T18:31:49.183440",
"validation_points": [
{
"header": "X-Tenant-ID",
"possible_names": [
"X-Tenant-ID"
],
"endpoint": "GET /api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}/{id}"
},
{
"header": "X-Data-Domain",
"possible_names": [
"X-Data-Domain"
],
"endpoint": "GET /api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}/{id}"
}
]
},
{
"test_case_id": "TC-STATUS-001",
"test_case_name": "基本状态码 200 检查",
"test_case_severity": "CRITICAL",
"status": "通过",
"message": "响应状态码为 200符合预期 200。",
"duration_seconds": 0.0181319999974221,
"timestamp": "2025-06-27T18:31:49.201779",
"validation_points": [
{
"passed": true,
"message": "响应状态码为 200符合预期 200。"
}
]
},
{
"test_case_id": "TC-SECURITY-002",
"test_case_name": "敏感字段加密检查",
"test_case_severity": "HIGH",
"status": "通过",
"message": "未在响应中找到需要检查的敏感字段。",
"duration_seconds": 0.028379415976814926,
"timestamp": "2025-06-27T18:31:49.230226",
"validation_points": [
{
"passed": true,
"message": "未在响应中找到需要检查的敏感字段。"
}
]
},
{
"test_case_id": "TC-LLM-COMPLIANCE-001",
"test_case_name": "LLM合规性综合检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "合规性标准列表为空跳过LLM合规性检查。",
"duration_seconds": 0.016279375064186752,
"timestamp": "2025-06-27T18:31:49.246559",
"validation_points": [
{
"reason": "compliance_criteria.json is empty or contains an empty list."
}
]
},
{
"test_case_id": "TC-RESTful-001",
"test_case_name": "核心命名与结构规范检查",
"test_case_severity": "HIGH",
"status": "通过",
"message": "模块名 'dms' 格式正确 (全小写/数字/中划线)。",
"duration_seconds": 0.017559375031851232,
"timestamp": "2025-06-27T18:31:49.264220",
"validation_points": [
{
"passed": true,
"message": "模块名 'dms' 格式正确 (全小写/数字/中划线)。"
}
]
},
{
"test_case_id": "TC-DMS-PAGINATION-001",
"test_case_name": "分页参数检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "跳过检查API不符合分页参数检查的准入规则需包含'查询'/'列表'等关键词,且不包含'详情'等关键词)",
"duration_seconds": 0.01470291696023196,
"timestamp": "2025-06-27T18:31:49.278977",
"validation_points": [
{
"path": "/api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}/{id}",
"method": "GET",
"summary": "地质单元查询详情",
"contains_include_keyword": true,
"contains_exclude_keyword": true
}
]
},
{
"test_case_id": "TC-RESTful-004",
"test_case_name": "资源集合复数命名检查",
"test_case_severity": "MEDIUM",
"status": "失败",
"message": "路径 '/api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}/{id}' 的最后一个路径分段 'cd_geo_unit' 可能不是复数形式,建议对资源集合使用复数命名。",
"duration_seconds": 0.014733791002072394,
"timestamp": "2025-06-27T18:31:49.293847",
"validation_points": [
{
"path": "/api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}/{id}",
"segment": "cd_geo_unit"
}
]
},
{
"test_case_id": "TC-RESTful-002",
"test_case_name": "资源路径名词检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "路径 '/api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}/{id}' 符合资源名词命名规范。",
"duration_seconds": 0.0190301249967888,
"timestamp": "2025-06-27T18:31:49.312980",
"validation_points": [
{
"passed": true,
"message": "路径 '/api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}/{id}' 符合资源名词命名规范。"
}
]
},
{
"test_case_id": "TC-DMS-CORE-SCHEMA-001",
"test_case_name": "DMS核心存储服务API响应格式检查",
"test_case_severity": "HIGH",
"status": "通过",
"message": "字段'code'在schema中未标记为必填(required);字段'message'在schema中未标记为必填(required);字段'data'在schema中未标记为必填(required);响应schema符合标准格式: {'code':int or number or string, 'message':string, 'data': any}",
"duration_seconds": 0.01514579204376787,
"timestamp": "2025-06-27T18:31:49.328233",
"validation_points": [
{
"status_code": "200",
"required_fields": []
},
{
"status_code": "200",
"required_fields": []
},
{
"status_code": "200",
"required_fields": []
},
{
"status_code": "200"
}
]
},
{
"test_case_id": "TC-CORE-FUNC-001",
"test_case_name": "返回体JSON Schema验证",
"test_case_severity": "CRITICAL",
"status": "通过",
"message": "针对 GET http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id (状态码 200) 的响应体 conforms to the JSON schema.",
"duration_seconds": 0.013593457988463342,
"timestamp": "2025-06-27T18:31:49.341927",
"validation_points": [
{
"passed": true,
"message": "针对 GET http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id (状态码 200) 的响应体 conforms to the JSON schema."
}
]
},
{
"test_case_id": "TC-RESTful-003",
"test_case_name": "时间字段ISO 8601格式检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "在API规范中未找到可供静态检查的时间相关字段如 format: date-time 或 常见时间字段名)。",
"duration_seconds": 0.014272834057919681,
"timestamp": "2025-06-27T18:31:49.356261",
"validation_points": [
{
"passed": true,
"message": "在API规范中未找到可供静态检查的时间相关字段如 format: date-time 或 常见时间字段名)。"
}
]
},
{
"test_case_id": "TC-DMS-URL-VERSION-001",
"test_case_name": "DMS API URL版本号检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "API路径 '/api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}/{id}' 正确以'/api/'开头;API路径 '/api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}/{id}' 包含版本标识: 'v1'",
"duration_seconds": 0.016503124963492155,
"timestamp": "2025-06-27T18:31:49.372850",
"validation_points": [
{
"full_path": "/api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}/{id}"
},
{
"pattern_matched": "/v\\d+/",
"version_string": "v1",
"full_path": "/api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}/{id}"
}
]
},
{
"test_case_id": "TC-SECURITY-001",
"test_case_name": "HTTPS 协议强制性检查",
"test_case_severity": "HIGH",
"status": "失败",
"message": "API通过HTTP (http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/example_dms_instance_code/v1/cd_geo_unit/1.0.0/example_id) 响应了成功的状态码 200这违反了HTTPS强制策略。",
"duration_seconds": 0.014051583013497293,
"timestamp": "2025-06-27T18:31:49.386997",
"validation_points": [
{
"status_code": 200
}
]
},
{
"test_case_id": "TC-ERROR-4001-QUERY",
"test_case_name": "查询参数类型不匹配检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "跳过测试:在查询参数中未找到合适的字段来测试类型不匹配。",
"duration_seconds": 0.018428166978992522,
"timestamp": "2025-06-27T18:31:49.405484",
"validation_points": [
{
"passed": true,
"message": "跳过测试:在查询参数中未找到合适的字段来测试类型不匹配。"
}
]
},
{
"test_case_id": "TC-ERROR-4001-BODY",
"test_case_name": "请求体字段类型不匹配检查",
"test_case_severity": "MEDIUM",
"status": "失败",
"message": "当请求体字段 'isSearchCount' 类型不匹配时, 业务错误码应为 -1但实际为 49。",
"duration_seconds": 0.01447729195933789,
"timestamp": "2025-06-27T18:31:49.420011",
"validation_points": [
{
"expected_code": -1,
"actual_code": 49,
"response_body": {
"code": 49,
"message": "tempor",
"data": {
"total": 29,
"list": [
{
"dsid": "62",
"dataRegion": "Duis voluptate",
"gasReleaseMon": null,
"gasReleaseYear": null,
"releaseGasCum": null
},
{
"dsid": "57",
"dataRegion": "ut quis",
"gasReleaseMon": null,
"gasReleaseYear": null,
"releaseGasCum": null
},
{
"dsid": "70",
"dataRegion": "reprehenderit",
"gasReleaseMon": null,
"gasReleaseYear": null,
"releaseGasCum": null
}
]
}
}
}
]
},
{
"test_case_id": "TC-ERROR-4002",
"test_case_name": "数值参数越界检查",
"test_case_severity": "MEDIUM",
"status": "通过",
"message": "跳过测试:未找到具有明确范围限制的数值字段。",
"duration_seconds": 0.016369208926334977,
"timestamp": "2025-06-27T18:31:49.436430",
"validation_points": [
{
"passed": true,
"message": "跳过测试:未找到具有明确范围限制的数值字段。"
}
]
},
{
"test_case_id": "TC-ERROR-4006",
"test_case_name": "非法枚举值检查",
"test_case_severity": "MEDIUM",
"status": "失败",
"message": "当 body 字段 'logic' 值为 'invalid_enum_jrexal' (合法值为: ['AND', 'OR']) 时, 业务错误码应为 -1但实际为 84。",
"duration_seconds": 0.013778958003968,
"timestamp": "2025-06-27T18:31:49.450265",
"validation_points": [
{
"expected_code": -1,
"actual_code": 84,
"response_body": {
"code": 84,
"message": "sint eiusmod",
"data": {
"total": 72,
"list": [
{
"dsid": "85",
"dataRegion": "ut occaecat laboris culpa",
"gasReleaseMon": null,
"gasReleaseYear": null,
"releaseGasCum": null
},
{
"dsid": "12",
"dataRegion": "labore veniam ad",
"gasReleaseMon": null,
"gasReleaseYear": null,
"releaseGasCum": null
}
]
}
}
}
]
},
{
"test_case_id": "TC-ERROR-4003-BODY",
"test_case_name": "缺失必填请求体字段检查",
"test_case_severity": "HIGH",
"status": "通过",
"message": "跳过测试在API规范中未找到合适的必填请求体字段用于移除测试。",
"duration_seconds": 0.017216750071384013,
"timestamp": "2025-06-27T18:31:49.467572",
"validation_points": [
{
"passed": true,
"message": "跳过测试在API规范中未找到合适的必填请求体字段用于移除测试。"
}
]
},
{
"test_case_id": "TC-ERROR-4003-QUERY",
"test_case_name": "缺失必填查询参数检查",
"test_case_severity": "HIGH",
"status": "通过",
"message": "跳过测试在API规范中未找到合适的必填查询参数用于移除测试。",
"duration_seconds": 0.01443787501193583,
"timestamp": "2025-06-27T18:31:49.482063",
"validation_points": [
{
"passed": true,
"message": "跳过测试在API规范中未找到合适的必填查询参数用于移除测试。"
}
]
}
]
}
],
"stage_results": [
{
"stage_id": "generic_crud_validation_stage",
"stage_name": "Generic CRUD Validation Stage",
"description": "Performs a generic CRUD (Create, List, Read, Update, Delete) flow. It tries to dynamically discover API operations based on common keywords and HTTP methods. Field names for IDs, names, features, and JSON paths for list/detail objects are configurable via class attributes or can be set in `before_stage` based on `api_group_name`.",
"api_group_name": "地质单元",
"tags": [
"crud",
"generic_validation"
],
"overall_status": "失败",
"duration_seconds": "0.03",
"start_time": "2025-06-27T18:31:49",
"end_time": "2025-06-27T18:31:49",
"message": "测试阶段因步骤 'List and Find Created Resource' 的状态 (失败) 而中止.",
"executed_steps_count": 2,
"executed_steps": [
{
"step_name": "Create New Resource",
"description": null,
"lookup_key": "地质单元数据添加",
"resolved_endpoint": "POST /api/dms/{dms_instance_code}/v1/cd_geo_unit",
"status": "通过",
"message": "",
"duration_seconds": "0.0000",
"timestamp": "2025-06-27T18:31:49+0800",
"validation_points": [
{
"passed": true,
"message": "状态码匹配 (200)."
}
],
"api_call_curl": "N/A",
"request_details": {
"method": "POST",
"url": "http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/your_dms_instance_code/v1/cd_geo_unit",
"headers": {
"tenant-id": "your-tenant-id",
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer your-test-token"
},
"params": {},
"json_data": {
"version": "1.0.0",
"data": [
{
"wellCommonName": "TestResource_1751020309_28316e",
"dataRegion": "Feature_1751020309"
}
]
},
"body": {
"version": "1.0.0",
"data": [
{
"wellCommonName": "TestResource_1751020309_28316e",
"dataRegion": "Feature_1751020309"
}
]
},
"data": null,
"timeout": 30
},
"extracted_outputs": {},
"context_after_step_summary": {
"unique_resource_name": "TestResource_1751020309_28316e",
"updated_resource_name": "TestResource_1751020309_28316e_UPDATED",
"unique_feature_value": "Feature_1751020309",
"updated_feature_value": "Feature_1751020309_UPDATED",
"cfg_list_path_in_listresponse": "data.list",
"cfg_name_field_in_listitem": "wellCommonName",
"cfg_id_field_in_listitem": "dsid",
"cfg_resource_object_path_in_detailresponse": "data.list.0",
"cfg_name_field_in_detailresponse": "wellCommonName",
"cfg_id_field_in_detailresponse": "dsid",
"cfg_resource_object_path_in_updateresponse": "data.list.0",
"cfg_feature_field_name_for_validation": "dataRegion",
"dms_instance_code": "your_dms_instance_code",
"api_version": "1.0.0"
}
},
{
"step_name": "List and Find Created Resource",
"description": null,
"lookup_key": "地质单元列表查询",
"resolved_endpoint": "POST /api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}",
"status": "失败",
"message": "Resource not found: Name 'TestResource_1751020309_28316e' (field: wellCommonName) not found in list at path 'data.list'.",
"duration_seconds": "0.0000",
"timestamp": "2025-06-27T18:31:49+0800",
"validation_points": [
{
"passed": true,
"message": "状态码匹配 (200)."
},
{
"passed": false,
"message": "Resource not found: Name 'TestResource_1751020309_28316e' (field: wellCommonName) not found in list at path 'data.list'."
}
],
"api_call_curl": "N/A",
"request_details": {
"method": "POST",
"url": "http://127.0.0.1:4523/m1/6389742-6086420-default/api/dms/your_dms_instance_code/v1/cd_geo_unit/1.0.0",
"headers": {
"tenant-id": "your-tenant-id",
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer your-test-token"
},
"params": {
"pageNo": 1,
"pageSize": 10
},
"json_data": {
"isSearchCount": true,
"query": {
"fields": [
"dsid",
"wellCommonName",
"dataRegion"
],
"filter": {
"key": "wellCommonName",
"symbol": "=",
"realValue": [
"TestResource_1751020309_28316e"
]
}
}
},
"body": {
"isSearchCount": true,
"query": {
"fields": [
"dsid",
"wellCommonName",
"dataRegion"
],
"filter": {
"key": "wellCommonName",
"symbol": "=",
"realValue": [
"TestResource_1751020309_28316e"
]
}
}
},
"data": null,
"timeout": 30
},
"extracted_outputs": {},
"context_after_step_summary": {
"unique_resource_name": "TestResource_1751020309_28316e",
"updated_resource_name": "TestResource_1751020309_28316e_UPDATED",
"unique_feature_value": "Feature_1751020309",
"updated_feature_value": "Feature_1751020309_UPDATED",
"cfg_list_path_in_listresponse": "data.list",
"cfg_name_field_in_listitem": "wellCommonName",
"cfg_id_field_in_listitem": "dsid",
"cfg_resource_object_path_in_detailresponse": "data.list.0",
"cfg_name_field_in_detailresponse": "wellCommonName",
"cfg_id_field_in_detailresponse": "dsid",
"cfg_resource_object_path_in_updateresponse": "data.list.0",
"cfg_feature_field_name_for_validation": "dataRegion",
"dms_instance_code": "your_dms_instance_code",
"api_version": "1.0.0"
}
}
],
"final_stage_context_summary": {
"unique_resource_name": "TestResource_1751020309_28316e",
"updated_resource_name": "TestResource_1751020309_28316e_UPDATED",
"unique_feature_value": "Feature_1751020309",
"updated_feature_value": "Feature_1751020309_UPDATED",
"cfg_list_path_in_listresponse": "data.list",
"cfg_name_field_in_listitem": "wellCommonName",
"cfg_id_field_in_listitem": "dsid",
"cfg_resource_object_path_in_detailresponse": "data.list.0",
"cfg_name_field_in_detailresponse": "wellCommonName",
"cfg_id_field_in_detailresponse": "dsid",
"cfg_resource_object_path_in_updateresponse": "data.list.0",
"cfg_feature_field_name_for_validation": "dataRegion",
"dms_instance_code": "your_dms_instance_code",
"api_version": "1.0.0"
}
}
],
"api_call_details_summary": []
}