2378 lines
97 KiB
JSON
2378 lines
97 KiB
JSON
{
|
||
"start_time": "2025-06-26T01:12:39.491464",
|
||
"end_time": "2025-06-26T01:13:07.847312",
|
||
"duration_seconds": "28.36",
|
||
"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": 78,
|
||
"test_cases_failed": 36,
|
||
"test_cases_error": 0,
|
||
"test_cases_skipped_in_endpoint": 0,
|
||
"test_case_success_rate": "68.42%",
|
||
"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": 5.830602,
|
||
"start_time": "2025-06-26T01:12:39.492329",
|
||
"end_time": "2025-06-26T01:12:45.322931",
|
||
"executed_test_cases": [
|
||
{
|
||
"test_case_id": "TC-HEADER-001",
|
||
"test_case_name": "必需请求头Schema验证",
|
||
"test_case_severity": "严重",
|
||
"status": "失败",
|
||
"message": "缺少必需的请求头 X-Tenant-ID;缺少必需的请求头 X-Data-Domain",
|
||
"duration_seconds": 0.31916158297099173,
|
||
"timestamp": "2025-06-26T01:12:39.811656",
|
||
"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": "严重",
|
||
"status": "通过",
|
||
"message": "响应状态码为 200,符合预期 200。",
|
||
"duration_seconds": 0.5131350419251248,
|
||
"timestamp": "2025-06-26T01:12:40.324844",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "响应状态码为 200,符合预期 200。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-SECURITY-002",
|
||
"test_case_name": "敏感字段加密检查",
|
||
"test_case_severity": "高",
|
||
"status": "通过",
|
||
"message": "未在响应中找到需要检查的敏感字段。",
|
||
"duration_seconds": 0.1896544590126723,
|
||
"timestamp": "2025-06-26T01:12:40.514653",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "未在响应中找到需要检查的敏感字段。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-LLM-COMPLIANCE-001",
|
||
"test_case_name": "LLM合规性综合检查",
|
||
"test_case_severity": "中",
|
||
"status": "失败",
|
||
"message": "[API应该使用正确的HTTP方法:GET用于检索,POST用于创建,PUT用于更新,DELETE用于删除] 不通过: 该接口使用了POST方法,但其描述为'数据推送接口',语义上更接近于创建(CREATE)操作。然而,根据路径模板'/api/dms/{dms_instance_code}/v1/message/push/{schema}/{version}'中的'push'动作和请求体内容来看,它更像是一个查询或数据获取操作(如构造查询条件并返回数据),这通常应使用GET方法。因此,该接口的HTTP方法可能存在语义不匹配的问题。",
|
||
"duration_seconds": 4.3347919170046225,
|
||
"timestamp": "2025-06-26T01:12:44.850435",
|
||
"validation_points": [
|
||
{
|
||
"criterion": "API应该使用正确的HTTP方法:GET用于检索,POST用于创建,PUT用于更新,DELETE用于删除",
|
||
"llm_reason": "该接口使用了POST方法,但其描述为'数据推送接口',语义上更接近于创建(CREATE)操作。然而,根据路径模板'/api/dms/{dms_instance_code}/v1/message/push/{schema}/{version}'中的'push'动作和请求体内容来看,它更像是一个查询或数据获取操作(如构造查询条件并返回数据),这通常应使用GET方法。因此,该接口的HTTP方法可能存在语义不匹配的问题。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-RESTful-001",
|
||
"test_case_name": "核心命名与结构规范检查",
|
||
"test_case_severity": "高",
|
||
"status": "通过",
|
||
"message": "模块名 'dms' 格式正确 (全小写/数字/中划线)。;规范中未找到响应码 200 或其类别(2XX, default)的匹配定义,跳过空数组与null的检查。",
|
||
"duration_seconds": 0.1470342919928953,
|
||
"timestamp": "2025-06-26T01:12:45.000252",
|
||
"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": "中",
|
||
"status": "通过",
|
||
"message": "跳过检查:API不符合分页参数检查的准入规则(需包含'查询'/'列表'等关键词,且不包含'详情'等关键词)",
|
||
"duration_seconds": 0.03369012498296797,
|
||
"timestamp": "2025-06-26T01:12:45.034055",
|
||
"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": "中",
|
||
"status": "通过",
|
||
"message": "路径 '/api/dms/{dms_instance_code}/v1/message/push/{schema}/{version}' 的最后一个路径分段 'push' 是动词,不需要使用复数形式。",
|
||
"duration_seconds": 0.019935082993470132,
|
||
"timestamp": "2025-06-26T01:12:45.054369",
|
||
"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": "中",
|
||
"status": "通过",
|
||
"message": "路径 '/api/dms/{dms_instance_code}/v1/message/push/{schema}/{version}' 符合资源名词命名规范。",
|
||
"duration_seconds": 0.021040208055637777,
|
||
"timestamp": "2025-06-26T01:12:45.075786",
|
||
"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": "高",
|
||
"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.02423425007145852,
|
||
"timestamp": "2025-06-26T01:12:45.100216",
|
||
"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": "Response Body JSON Schema Validation",
|
||
"test_case_severity": "严重",
|
||
"status": "通过",
|
||
"message": "Schema验证步骤完成(未发现问题,或schema不适用/未为此响应定义)。",
|
||
"duration_seconds": 0.026754499995149672,
|
||
"timestamp": "2025-06-26T01:12:45.127213",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "Schema验证步骤完成(未发现问题,或schema不适用/未为此响应定义)。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-RESTful-003",
|
||
"test_case_name": "时间字段ISO 8601格式检查",
|
||
"test_case_severity": "中",
|
||
"status": "通过",
|
||
"message": "在API规范中未找到可供静态检查的时间相关字段(如 format: date-time 或 常见时间字段名)。",
|
||
"duration_seconds": 0.029401374980807304,
|
||
"timestamp": "2025-06-26T01:12:45.156757",
|
||
"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": "中",
|
||
"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.02681941702030599,
|
||
"timestamp": "2025-06-26T01:12:45.183773",
|
||
"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 Protocol Mandatory Verification",
|
||
"test_case_severity": "严重",
|
||
"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.017891458002850413,
|
||
"timestamp": "2025-06-26T01:12:45.201781",
|
||
"validation_points": [
|
||
{
|
||
"status_code": 200
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4001-QUERY",
|
||
"test_case_name": "Error Code -1 - Query Parameter Type Mismatch Validation",
|
||
"test_case_severity": "中",
|
||
"status": "通过",
|
||
"message": "跳过测试:在查询参数中未找到合适的字段来测试类型不匹配。",
|
||
"duration_seconds": 0.0172520000487566,
|
||
"timestamp": "2025-06-26T01:12:45.219157",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "跳过测试:在查询参数中未找到合适的字段来测试类型不匹配。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4001-BODY",
|
||
"test_case_name": "Error Code -1 - Request Body Type Mismatch Validation",
|
||
"test_case_severity": "中",
|
||
"status": "失败",
|
||
"message": "当请求体字段 'isSearchCount' 类型不匹配时, 业务错误码应为 -1,但实际为 4006。",
|
||
"duration_seconds": 0.017402792000211775,
|
||
"timestamp": "2025-06-26T01:12:45.236709",
|
||
"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": "Error Code -1 - Number Value Out of Range Validation",
|
||
"test_case_severity": "中",
|
||
"status": "通过",
|
||
"message": "跳过测试:未找到具有明确范围限制的数值字段。",
|
||
"duration_seconds": 0.024334749905392528,
|
||
"timestamp": "2025-06-26T01:12:45.261197",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "跳过测试:未找到具有明确范围限制的数值字段。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4006",
|
||
"test_case_name": "Error Code 4006 - Invalid Enum Value Validation",
|
||
"test_case_severity": "中",
|
||
"status": "失败",
|
||
"message": "当 body 字段 'logic' 值为 'invalid_enum_cfqxpb' (合法值为: ['AND', 'OR']) 时, 业务错误码应为 -1,但实际为 4006。",
|
||
"duration_seconds": 0.02038570900913328,
|
||
"timestamp": "2025-06-26T01:12:45.281894",
|
||
"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": "Error Code -1 - Missing Required Request Body Field Validation",
|
||
"test_case_severity": "高",
|
||
"status": "通过",
|
||
"message": "跳过测试:在API规范中未找到合适的必填请求体字段用于移除测试。",
|
||
"duration_seconds": 0.022522915969602764,
|
||
"timestamp": "2025-06-26T01:12:45.304701",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "跳过测试:在API规范中未找到合适的必填请求体字段用于移除测试。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4003-QUERY",
|
||
"test_case_name": "Error Code -1 - Missing Required Query Parameter Validation",
|
||
"test_case_severity": "高",
|
||
"status": "通过",
|
||
"message": "跳过测试:在API规范中未找到合适的必填查询参数用于移除测试。",
|
||
"duration_seconds": 0.017677666968666017,
|
||
"timestamp": "2025-06-26T01:12:45.322661",
|
||
"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": 3.918887,
|
||
"start_time": "2025-06-26T01:12:45.323186",
|
||
"end_time": "2025-06-26T01:12:49.242073",
|
||
"executed_test_cases": [
|
||
{
|
||
"test_case_id": "TC-HEADER-001",
|
||
"test_case_name": "必需请求头Schema验证",
|
||
"test_case_severity": "严重",
|
||
"status": "失败",
|
||
"message": "缺少必需的请求头 X-Tenant-ID;缺少必需的请求头 X-Data-Domain",
|
||
"duration_seconds": 0.029587791999801993,
|
||
"timestamp": "2025-06-26T01:12:45.353848",
|
||
"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": "严重",
|
||
"status": "通过",
|
||
"message": "响应状态码为 200,符合预期 200。",
|
||
"duration_seconds": 0.019037249963730574,
|
||
"timestamp": "2025-06-26T01:12:45.373127",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "响应状态码为 200,符合预期 200。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-SECURITY-002",
|
||
"test_case_name": "敏感字段加密检查",
|
||
"test_case_severity": "高",
|
||
"status": "通过",
|
||
"message": "未在响应中找到需要检查的敏感字段。",
|
||
"duration_seconds": 0.033631457947194576,
|
||
"timestamp": "2025-06-26T01:12:45.407031",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "未在响应中找到需要检查的敏感字段。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-LLM-COMPLIANCE-001",
|
||
"test_case_name": "LLM合规性综合检查",
|
||
"test_case_severity": "中",
|
||
"status": "失败",
|
||
"message": "[API应该使用正确的HTTP方法:GET用于检索,POST用于创建,PUT用于更新,DELETE用于删除] 不通过: 该API的用途是'地质单元列表查询',属于数据检索操作,按照合规性标准应使用GET方法,但实际使用了POST方法,因此不符合该标准。",
|
||
"duration_seconds": 3.4848844580119476,
|
||
"timestamp": "2025-06-26T01:12:48.892183",
|
||
"validation_points": [
|
||
{
|
||
"criterion": "API应该使用正确的HTTP方法:GET用于检索,POST用于创建,PUT用于更新,DELETE用于删除",
|
||
"llm_reason": "该API的用途是'地质单元列表查询',属于数据检索操作,按照合规性标准应使用GET方法,但实际使用了POST方法,因此不符合该标准。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-RESTful-001",
|
||
"test_case_name": "核心命名与结构规范检查",
|
||
"test_case_severity": "高",
|
||
"status": "通过",
|
||
"message": "模块名 'dms' 格式正确 (全小写/数字/中划线)。;规范中未找到响应码 200 或其类别(2XX, default)的匹配定义,跳过空数组与null的检查。",
|
||
"duration_seconds": 0.056422249996103346,
|
||
"timestamp": "2025-06-26T01:12:48.948857",
|
||
"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": "中",
|
||
"status": "通过",
|
||
"message": "API请求包含所有标准分页参数:pageNo、pageSize和isSearchCount",
|
||
"duration_seconds": 0.024271166999824345,
|
||
"timestamp": "2025-06-26T01:12:48.973287",
|
||
"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": "中",
|
||
"status": "失败",
|
||
"message": "路径 '/api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}' 的最后一个路径分段 'cd_geo_unit' 可能不是复数形式,建议对资源集合使用复数命名。",
|
||
"duration_seconds": 0.021307250019162893,
|
||
"timestamp": "2025-06-26T01:12:48.994821",
|
||
"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": "中",
|
||
"status": "通过",
|
||
"message": "路径 '/api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}' 符合资源名词命名规范。",
|
||
"duration_seconds": 0.02613712497986853,
|
||
"timestamp": "2025-06-26T01:12:49.021261",
|
||
"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": "高",
|
||
"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.01843383302912116,
|
||
"timestamp": "2025-06-26T01:12:49.040197",
|
||
"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": "Response Body JSON Schema Validation",
|
||
"test_case_severity": "严重",
|
||
"status": "通过",
|
||
"message": "Schema验证步骤完成(未发现问题,或schema不适用/未为此响应定义)。",
|
||
"duration_seconds": 0.018191291950643063,
|
||
"timestamp": "2025-06-26T01:12:49.058809",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "Schema验证步骤完成(未发现问题,或schema不适用/未为此响应定义)。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-RESTful-003",
|
||
"test_case_name": "时间字段ISO 8601格式检查",
|
||
"test_case_severity": "中",
|
||
"status": "通过",
|
||
"message": "在API规范中未找到可供静态检查的时间相关字段(如 format: date-time 或 常见时间字段名)。",
|
||
"duration_seconds": 0.01811945904046297,
|
||
"timestamp": "2025-06-26T01:12:49.077124",
|
||
"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": "中",
|
||
"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.020125915994867682,
|
||
"timestamp": "2025-06-26T01:12:49.097624",
|
||
"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 Protocol Mandatory Verification",
|
||
"test_case_severity": "严重",
|
||
"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.021583624999038875,
|
||
"timestamp": "2025-06-26T01:12:49.119559",
|
||
"validation_points": [
|
||
{
|
||
"status_code": 200
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4001-QUERY",
|
||
"test_case_name": "Error Code -1 - Query Parameter Type Mismatch Validation",
|
||
"test_case_severity": "中",
|
||
"status": "失败",
|
||
"message": "当查询参数 'pageNo' (路径: 'pageNo') 类型不匹配时, 业务错误码应为 -1,但实际为 56。",
|
||
"duration_seconds": 0.024867041036486626,
|
||
"timestamp": "2025-06-26T01:12:49.144716",
|
||
"validation_points": [
|
||
{
|
||
"expected_code": -1,
|
||
"actual_code": 56,
|
||
"response_body": {
|
||
"code": 56,
|
||
"message": "dolore exercitation quis nulla sed",
|
||
"data": {
|
||
"total": 91,
|
||
"list": [
|
||
{
|
||
"dsid": "40",
|
||
"dataRegion": "in occaecat laborum",
|
||
"gasReleaseMon": null,
|
||
"gasReleaseYear": null,
|
||
"releaseGasCum": null
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4001-BODY",
|
||
"test_case_name": "Error Code -1 - Request Body Type Mismatch Validation",
|
||
"test_case_severity": "中",
|
||
"status": "失败",
|
||
"message": "当请求体字段 'isSearchCount' 类型不匹配时, 业务错误码应为 -1,但实际为 76。",
|
||
"duration_seconds": 0.020140959066338837,
|
||
"timestamp": "2025-06-26T01:12:49.165158",
|
||
"validation_points": [
|
||
{
|
||
"expected_code": -1,
|
||
"actual_code": 76,
|
||
"response_body": {
|
||
"code": 76,
|
||
"message": "mollit incididunt ad adipisicing",
|
||
"data": {
|
||
"total": 52,
|
||
"list": [
|
||
{
|
||
"dsid": "24",
|
||
"dataRegion": "officia Ut",
|
||
"gasReleaseMon": null,
|
||
"gasReleaseYear": null,
|
||
"releaseGasCum": null
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4002",
|
||
"test_case_name": "Error Code -1 - Number Value Out of Range Validation",
|
||
"test_case_severity": "中",
|
||
"status": "失败",
|
||
"message": "当 query 字段 'pageNo' 值为 0.0 (超出范围: min=1.0, max=None) 时, 业务错误码应为 -1,但实际为 70。",
|
||
"duration_seconds": 0.01882695802487433,
|
||
"timestamp": "2025-06-26T01:12:49.184301",
|
||
"validation_points": [
|
||
{
|
||
"expected_code": -1,
|
||
"actual_code": 70,
|
||
"response_body": {
|
||
"code": 70,
|
||
"message": "ad reprehenderit cupidatat dolore",
|
||
"data": {
|
||
"total": 81,
|
||
"list": [
|
||
{
|
||
"dsid": "23",
|
||
"dataRegion": "aliquip Duis",
|
||
"gasReleaseMon": null,
|
||
"gasReleaseYear": null,
|
||
"releaseGasCum": null
|
||
},
|
||
{
|
||
"dsid": "48",
|
||
"dataRegion": "ea dolor est in",
|
||
"gasReleaseMon": null,
|
||
"gasReleaseYear": null,
|
||
"releaseGasCum": null
|
||
},
|
||
{
|
||
"dsid": "74",
|
||
"dataRegion": "aute",
|
||
"gasReleaseMon": null,
|
||
"gasReleaseYear": null,
|
||
"releaseGasCum": null
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4006",
|
||
"test_case_name": "Error Code 4006 - Invalid Enum Value Validation",
|
||
"test_case_severity": "中",
|
||
"status": "失败",
|
||
"message": "当 body 字段 'logic' 值为 'invalid_enum_w49a6g' (合法值为: ['AND', 'OR']) 时, 业务错误码应为 -1,但实际为 79。",
|
||
"duration_seconds": 0.01790970889851451,
|
||
"timestamp": "2025-06-26T01:12:49.202428",
|
||
"validation_points": [
|
||
{
|
||
"expected_code": -1,
|
||
"actual_code": 79,
|
||
"response_body": {
|
||
"code": 79,
|
||
"message": "nisi anim esse",
|
||
"data": {
|
||
"total": 32,
|
||
"list": [
|
||
{
|
||
"dsid": "64",
|
||
"dataRegion": "aliquip labore sunt exercitation",
|
||
"gasReleaseMon": null,
|
||
"gasReleaseYear": null,
|
||
"releaseGasCum": null
|
||
},
|
||
{
|
||
"dsid": "10",
|
||
"dataRegion": "qui voluptate",
|
||
"gasReleaseMon": null,
|
||
"gasReleaseYear": null,
|
||
"releaseGasCum": null
|
||
},
|
||
{
|
||
"dsid": "70",
|
||
"dataRegion": "id mollit irure enim cillum",
|
||
"gasReleaseMon": null,
|
||
"gasReleaseYear": null,
|
||
"releaseGasCum": null
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4003-BODY",
|
||
"test_case_name": "Error Code -1 - Missing Required Request Body Field Validation",
|
||
"test_case_severity": "高",
|
||
"status": "通过",
|
||
"message": "跳过测试:在API规范中未找到合适的必填请求体字段用于移除测试。",
|
||
"duration_seconds": 0.018308292026631534,
|
||
"timestamp": "2025-06-26T01:12:49.221180",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "跳过测试:在API规范中未找到合适的必填请求体字段用于移除测试。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4003-QUERY",
|
||
"test_case_name": "Error Code -1 - Missing Required Query Parameter Validation",
|
||
"test_case_severity": "高",
|
||
"status": "通过",
|
||
"message": "跳过测试:在API规范中未找到合适的必填查询参数用于移除测试。",
|
||
"duration_seconds": 0.02054558298550546,
|
||
"timestamp": "2025-06-26T01:12:49.241932",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "跳过测试:在API规范中未找到合适的必填查询参数用于移除测试。"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"endpoint_id": "PUT /api/dms/{dms_instance_code}/v1/cd_geo_unit",
|
||
"endpoint_name": "地质单元数据修改",
|
||
"overall_status": "失败",
|
||
"duration_seconds": 2.479789,
|
||
"start_time": "2025-06-26T01:12:49.242174",
|
||
"end_time": "2025-06-26T01:12:51.721963",
|
||
"executed_test_cases": [
|
||
{
|
||
"test_case_id": "TC-HEADER-001",
|
||
"test_case_name": "必需请求头Schema验证",
|
||
"test_case_severity": "严重",
|
||
"status": "失败",
|
||
"message": "缺少必需的请求头 X-Tenant-ID;缺少必需的请求头 X-Data-Domain",
|
||
"duration_seconds": 0.01781224994920194,
|
||
"timestamp": "2025-06-26T01:12:49.260561",
|
||
"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": "严重",
|
||
"status": "通过",
|
||
"message": "响应状态码为 200,符合预期 200。",
|
||
"duration_seconds": 0.019878457998856902,
|
||
"timestamp": "2025-06-26T01:12:49.280567",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "响应状态码为 200,符合预期 200。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-SECURITY-002",
|
||
"test_case_name": "敏感字段加密检查",
|
||
"test_case_severity": "高",
|
||
"status": "通过",
|
||
"message": "未在响应中找到需要检查的敏感字段。",
|
||
"duration_seconds": 0.015673124929890037,
|
||
"timestamp": "2025-06-26T01:12:49.296429",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "未在响应中找到需要检查的敏感字段。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-LLM-COMPLIANCE-001",
|
||
"test_case_name": "LLM合规性综合检查",
|
||
"test_case_severity": "中",
|
||
"status": "通过",
|
||
"message": "[API应该使用正确的HTTP方法:GET用于检索,POST用于创建,PUT用于更新,DELETE用于删除] 通过: 该API的用途是修改地质单元数据,使用的是PUT方法,符合用于更新资源的语义。",
|
||
"duration_seconds": 2.1068201669258997,
|
||
"timestamp": "2025-06-26T01:12:51.403443",
|
||
"validation_points": [
|
||
{
|
||
"criterion": "API应该使用正确的HTTP方法:GET用于检索,POST用于创建,PUT用于更新,DELETE用于删除",
|
||
"llm_reason": "该API的用途是修改地质单元数据,使用的是PUT方法,符合用于更新资源的语义。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-RESTful-001",
|
||
"test_case_name": "核心命名与结构规范检查",
|
||
"test_case_severity": "高",
|
||
"status": "通过",
|
||
"message": "模块名 'dms' 格式正确 (全小写/数字/中划线)。",
|
||
"duration_seconds": 0.046723000006750226,
|
||
"timestamp": "2025-06-26T01:12:51.450543",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "模块名 'dms' 格式正确 (全小写/数字/中划线)。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-DMS-PAGINATION-001",
|
||
"test_case_name": "分页参数检查",
|
||
"test_case_severity": "中",
|
||
"status": "通过",
|
||
"message": "跳过检查:API不符合分页参数检查的准入规则(需包含'查询'/'列表'等关键词,且不包含'详情'等关键词)",
|
||
"duration_seconds": 0.02912566706072539,
|
||
"timestamp": "2025-06-26T01:12:51.479965",
|
||
"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": "中",
|
||
"status": "通过",
|
||
"message": "跳过检查:PUT 方法,不适用于资源集合复数检查。",
|
||
"duration_seconds": 0.021180375013500452,
|
||
"timestamp": "2025-06-26T01:12:51.501483",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "跳过检查:PUT 方法,不适用于资源集合复数检查。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-RESTful-002",
|
||
"test_case_name": "资源路径名词检查",
|
||
"test_case_severity": "中",
|
||
"status": "通过",
|
||
"message": "路径 '/api/dms/{dms_instance_code}/v1/cd_geo_unit' 符合资源名词命名规范。",
|
||
"duration_seconds": 0.021127707906998694,
|
||
"timestamp": "2025-06-26T01:12:51.523104",
|
||
"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": "高",
|
||
"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.01824383402708918,
|
||
"timestamp": "2025-06-26T01:12:51.541765",
|
||
"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": "Response Body JSON Schema Validation",
|
||
"test_case_severity": "严重",
|
||
"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.024378417059779167,
|
||
"timestamp": "2025-06-26T01:12:51.566435",
|
||
"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": "中",
|
||
"status": "通过",
|
||
"message": "在API规范中未找到可供静态检查的时间相关字段(如 format: date-time 或 常见时间字段名)。",
|
||
"duration_seconds": 0.019509708043187857,
|
||
"timestamp": "2025-06-26T01:12:51.586041",
|
||
"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": "中",
|
||
"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.01585974998306483,
|
||
"timestamp": "2025-06-26T01:12:51.602027",
|
||
"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 Protocol Mandatory Verification",
|
||
"test_case_severity": "严重",
|
||
"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.014750917092896998,
|
||
"timestamp": "2025-06-26T01:12:51.616876",
|
||
"validation_points": [
|
||
{
|
||
"status_code": 200
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4001-QUERY",
|
||
"test_case_name": "Error Code -1 - Query Parameter Type Mismatch Validation",
|
||
"test_case_severity": "中",
|
||
"status": "失败",
|
||
"message": "当查询参数 'id' (路径: 'id') 类型不匹配时, 业务错误码应为 -1,但实际为 99。",
|
||
"duration_seconds": 0.015680041047744453,
|
||
"timestamp": "2025-06-26T01:12:51.632734",
|
||
"validation_points": [
|
||
{
|
||
"expected_code": -1,
|
||
"actual_code": 99,
|
||
"response_body": {
|
||
"code": 99,
|
||
"message": "sint",
|
||
"data": false
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4001-BODY",
|
||
"test_case_name": "Error Code -1 - Request Body Type Mismatch Validation",
|
||
"test_case_severity": "中",
|
||
"status": "失败",
|
||
"message": "当请求体字段 'id' 类型不匹配时, 业务错误码应为 -1,但实际为 79。",
|
||
"duration_seconds": 0.018345125019550323,
|
||
"timestamp": "2025-06-26T01:12:51.651254",
|
||
"validation_points": [
|
||
{
|
||
"expected_code": -1,
|
||
"actual_code": 79,
|
||
"response_body": {
|
||
"code": 79,
|
||
"message": "in",
|
||
"data": true
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4002",
|
||
"test_case_name": "Error Code -1 - Number Value Out of Range Validation",
|
||
"test_case_severity": "中",
|
||
"status": "通过",
|
||
"message": "跳过测试:未找到具有明确范围限制的数值字段。",
|
||
"duration_seconds": 0.016080999979749322,
|
||
"timestamp": "2025-06-26T01:12:51.667503",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "跳过测试:未找到具有明确范围限制的数值字段。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4006",
|
||
"test_case_name": "Error Code 4006 - Invalid Enum Value Validation",
|
||
"test_case_severity": "中",
|
||
"status": "通过",
|
||
"message": "跳过测试:未找到具有明确枚举值限制的字段。",
|
||
"duration_seconds": 0.018033916945569217,
|
||
"timestamp": "2025-06-26T01:12:51.685718",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "跳过测试:未找到具有明确枚举值限制的字段。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4003-BODY",
|
||
"test_case_name": "Error Code -1 - Missing Required Request Body Field Validation",
|
||
"test_case_severity": "高",
|
||
"status": "失败",
|
||
"message": "当移除必填请求体字段 'id' 时, 业务错误码应为 -1,但实际为 4003。",
|
||
"duration_seconds": 0.015512541984207928,
|
||
"timestamp": "2025-06-26T01:12:51.701679",
|
||
"validation_points": [
|
||
{
|
||
"expected_code": -1,
|
||
"actual_code": 4003,
|
||
"response_body": {
|
||
"code": 4003
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4003-QUERY",
|
||
"test_case_name": "Error Code -1 - Missing Required Query Parameter Validation",
|
||
"test_case_severity": "高",
|
||
"status": "失败",
|
||
"message": "当移除必填查询参数 'id' 时, 业务错误码应为 -1,但实际为 42。",
|
||
"duration_seconds": 0.01974229095503688,
|
||
"timestamp": "2025-06-26T01:12:51.721714",
|
||
"validation_points": [
|
||
{
|
||
"expected_code": -1,
|
||
"actual_code": 42,
|
||
"response_body": {
|
||
"code": 42,
|
||
"message": "dolore ex nostrud in",
|
||
"data": true
|
||
}
|
||
}
|
||
]
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"endpoint_id": "DELETE /api/dms/{dms_instance_code}/v1/cd_geo_unit",
|
||
"endpoint_name": "地质单元数据删除",
|
||
"overall_status": "失败",
|
||
"duration_seconds": 3.752663,
|
||
"start_time": "2025-06-26T01:12:51.722112",
|
||
"end_time": "2025-06-26T01:12:55.474775",
|
||
"executed_test_cases": [
|
||
{
|
||
"test_case_id": "TC-HEADER-001",
|
||
"test_case_name": "必需请求头Schema验证",
|
||
"test_case_severity": "严重",
|
||
"status": "失败",
|
||
"message": "缺少必需的请求头 X-Tenant-ID;缺少必需的请求头 X-Data-Domain",
|
||
"duration_seconds": 0.01583249995019287,
|
||
"timestamp": "2025-06-26T01:12:51.738782",
|
||
"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": "严重",
|
||
"status": "通过",
|
||
"message": "响应状态码为 200,符合预期 200。",
|
||
"duration_seconds": 0.015812958008609712,
|
||
"timestamp": "2025-06-26T01:12:51.754834",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "响应状态码为 200,符合预期 200。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-SECURITY-002",
|
||
"test_case_name": "敏感字段加密检查",
|
||
"test_case_severity": "高",
|
||
"status": "通过",
|
||
"message": "未在响应中找到需要检查的敏感字段。",
|
||
"duration_seconds": 0.01722112495917827,
|
||
"timestamp": "2025-06-26T01:12:51.772304",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "未在响应中找到需要检查的敏感字段。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-LLM-COMPLIANCE-001",
|
||
"test_case_name": "LLM合规性综合检查",
|
||
"test_case_severity": "中",
|
||
"status": "失败",
|
||
"message": "[API应该使用正确的HTTP方法:GET用于检索,POST用于创建,PUT用于更新,DELETE用于删除] 不通过: DELETE方法通常用于删除资源,但该API的请求体(schema_request_body)中包含了一个主键id数据集(data字段),这通常表示批量删除操作。而根据RESTful规范,DELETE方法一般用于删除单个资源,批量删除不符合标准用法。",
|
||
"duration_seconds": 3.379469292005524,
|
||
"timestamp": "2025-06-26T01:12:55.151993",
|
||
"validation_points": [
|
||
{
|
||
"criterion": "API应该使用正确的HTTP方法:GET用于检索,POST用于创建,PUT用于更新,DELETE用于删除",
|
||
"llm_reason": "DELETE方法通常用于删除资源,但该API的请求体(schema_request_body)中包含了一个主键id数据集(data字段),这通常表示批量删除操作。而根据RESTful规范,DELETE方法一般用于删除单个资源,批量删除不符合标准用法。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-RESTful-001",
|
||
"test_case_name": "核心命名与结构规范检查",
|
||
"test_case_severity": "高",
|
||
"status": "通过",
|
||
"message": "模块名 'dms' 格式正确 (全小写/数字/中划线)。",
|
||
"duration_seconds": 0.04728629195597023,
|
||
"timestamp": "2025-06-26T01:12:55.199603",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "模块名 'dms' 格式正确 (全小写/数字/中划线)。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-DMS-PAGINATION-001",
|
||
"test_case_name": "分页参数检查",
|
||
"test_case_severity": "中",
|
||
"status": "通过",
|
||
"message": "跳过检查:API不符合分页参数检查的准入规则(需包含'查询'/'列表'等关键词,且不包含'详情'等关键词)",
|
||
"duration_seconds": 0.032106040976941586,
|
||
"timestamp": "2025-06-26T01:12:55.231998",
|
||
"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": "中",
|
||
"status": "通过",
|
||
"message": "跳过检查:DELETE 方法,不适用于资源集合复数检查。",
|
||
"duration_seconds": 0.020985250012017787,
|
||
"timestamp": "2025-06-26T01:12:55.253517",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "跳过检查:DELETE 方法,不适用于资源集合复数检查。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-RESTful-002",
|
||
"test_case_name": "资源路径名词检查",
|
||
"test_case_severity": "中",
|
||
"status": "通过",
|
||
"message": "路径 '/api/dms/{dms_instance_code}/v1/cd_geo_unit' 符合资源名词命名规范。",
|
||
"duration_seconds": 0.019834334030747414,
|
||
"timestamp": "2025-06-26T01:12:55.273691",
|
||
"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": "高",
|
||
"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.018373916042037308,
|
||
"timestamp": "2025-06-26T01:12:55.292424",
|
||
"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": "Response Body JSON Schema Validation",
|
||
"test_case_severity": "严重",
|
||
"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.020281750010326505,
|
||
"timestamp": "2025-06-26T01:12:55.313027",
|
||
"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": "中",
|
||
"status": "通过",
|
||
"message": "在API规范中未找到可供静态检查的时间相关字段(如 format: date-time 或 常见时间字段名)。",
|
||
"duration_seconds": 0.016768583096563816,
|
||
"timestamp": "2025-06-26T01:12:55.330118",
|
||
"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": "中",
|
||
"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.01849808299448341,
|
||
"timestamp": "2025-06-26T01:12:55.348993",
|
||
"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 Protocol Mandatory Verification",
|
||
"test_case_severity": "严重",
|
||
"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.017255290993489325,
|
||
"timestamp": "2025-06-26T01:12:55.366694",
|
||
"validation_points": [
|
||
{
|
||
"status_code": 200
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4001-QUERY",
|
||
"test_case_name": "Error Code -1 - Query Parameter Type Mismatch Validation",
|
||
"test_case_severity": "中",
|
||
"status": "失败",
|
||
"message": "当查询参数 'id' (路径: 'id') 类型不匹配时, 业务错误码应为 -1,但实际为 94。",
|
||
"duration_seconds": 0.016842167009599507,
|
||
"timestamp": "2025-06-26T01:12:55.383799",
|
||
"validation_points": [
|
||
{
|
||
"expected_code": -1,
|
||
"actual_code": 94,
|
||
"response_body": {
|
||
"code": 94,
|
||
"message": "consectetur aute",
|
||
"data": true
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4001-BODY",
|
||
"test_case_name": "Error Code -1 - Request Body Type Mismatch Validation",
|
||
"test_case_severity": "中",
|
||
"status": "失败",
|
||
"message": "当请求体字段 'version' 类型不匹配时, 业务错误码应为 -1,但实际为 5。",
|
||
"duration_seconds": 0.02314066607505083,
|
||
"timestamp": "2025-06-26T01:12:55.407126",
|
||
"validation_points": [
|
||
{
|
||
"expected_code": -1,
|
||
"actual_code": 5,
|
||
"response_body": {
|
||
"code": 5,
|
||
"message": "eu tempor cupidatat",
|
||
"data": true
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4002",
|
||
"test_case_name": "Error Code -1 - Number Value Out of Range Validation",
|
||
"test_case_severity": "中",
|
||
"status": "通过",
|
||
"message": "跳过测试:未找到具有明确范围限制的数值字段。",
|
||
"duration_seconds": 0.017145459074527025,
|
||
"timestamp": "2025-06-26T01:12:55.424564",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "跳过测试:未找到具有明确范围限制的数值字段。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4006",
|
||
"test_case_name": "Error Code 4006 - Invalid Enum Value Validation",
|
||
"test_case_severity": "中",
|
||
"status": "通过",
|
||
"message": "跳过测试:未找到具有明确枚举值限制的字段。",
|
||
"duration_seconds": 0.016132457996718585,
|
||
"timestamp": "2025-06-26T01:12:55.440868",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "跳过测试:未找到具有明确枚举值限制的字段。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4003-BODY",
|
||
"test_case_name": "Error Code -1 - Missing Required Request Body Field Validation",
|
||
"test_case_severity": "高",
|
||
"status": "通过",
|
||
"message": "跳过测试:在API规范中未找到合适的必填请求体字段用于移除测试。",
|
||
"duration_seconds": 0.016124874935485423,
|
||
"timestamp": "2025-06-26T01:12:55.457328",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "跳过测试:在API规范中未找到合适的必填请求体字段用于移除测试。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4003-QUERY",
|
||
"test_case_name": "Error Code -1 - Missing Required Query Parameter Validation",
|
||
"test_case_severity": "高",
|
||
"status": "失败",
|
||
"message": "当移除必填查询参数 'id' 时, 业务错误码应为 -1,但实际为 21。",
|
||
"duration_seconds": 0.016989415977150202,
|
||
"timestamp": "2025-06-26T01:12:55.474451",
|
||
"validation_points": [
|
||
{
|
||
"expected_code": -1,
|
||
"actual_code": 21,
|
||
"response_body": {
|
||
"code": 21,
|
||
"message": "consectetur quis in",
|
||
"data": true
|
||
}
|
||
}
|
||
]
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"endpoint_id": "POST /api/dms/{dms_instance_code}/v1/cd_geo_unit",
|
||
"endpoint_name": "地质单元数据添加",
|
||
"overall_status": "失败",
|
||
"duration_seconds": 7.788943,
|
||
"start_time": "2025-06-26T01:12:55.474916",
|
||
"end_time": "2025-06-26T01:13:03.263859",
|
||
"executed_test_cases": [
|
||
{
|
||
"test_case_id": "TC-HEADER-001",
|
||
"test_case_name": "必需请求头Schema验证",
|
||
"test_case_severity": "严重",
|
||
"status": "失败",
|
||
"message": "缺少必需的请求头 X-Tenant-ID;缺少必需的请求头 X-Data-Domain",
|
||
"duration_seconds": 0.01656845898833126,
|
||
"timestamp": "2025-06-26T01:12:55.492242",
|
||
"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": "严重",
|
||
"status": "通过",
|
||
"message": "响应状态码为 200,符合预期 200。",
|
||
"duration_seconds": 0.01789283298421651,
|
||
"timestamp": "2025-06-26T01:12:55.510314",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "响应状态码为 200,符合预期 200。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-SECURITY-002",
|
||
"test_case_name": "敏感字段加密检查",
|
||
"test_case_severity": "高",
|
||
"status": "通过",
|
||
"message": "未在响应中找到需要检查的敏感字段。",
|
||
"duration_seconds": 0.017040667007677257,
|
||
"timestamp": "2025-06-26T01:12:55.527723",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "未在响应中找到需要检查的敏感字段。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-LLM-COMPLIANCE-001",
|
||
"test_case_name": "LLM合规性综合检查",
|
||
"test_case_severity": "中",
|
||
"status": "通过",
|
||
"message": "[API应该使用正确的HTTP方法:GET用于检索,POST用于创建,PUT用于更新,DELETE用于删除] 通过: 该API的用途是添加地质单元数据,属于创建操作,使用了POST方法,符合规范。",
|
||
"duration_seconds": 7.344409166951664,
|
||
"timestamp": "2025-06-26T01:13:02.872186",
|
||
"validation_points": [
|
||
{
|
||
"criterion": "API应该使用正确的HTTP方法:GET用于检索,POST用于创建,PUT用于更新,DELETE用于删除",
|
||
"llm_reason": "该API的用途是添加地质单元数据,属于创建操作,使用了POST方法,符合规范。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-RESTful-001",
|
||
"test_case_name": "核心命名与结构规范检查",
|
||
"test_case_severity": "高",
|
||
"status": "通过",
|
||
"message": "模块名 'dms' 格式正确 (全小写/数字/中划线)。;规范中未找到响应码 200 或其类别(2XX, default)的匹配定义,跳过空数组与null的检查。",
|
||
"duration_seconds": 0.05925558297894895,
|
||
"timestamp": "2025-06-26T01:13:02.932338",
|
||
"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": "中",
|
||
"status": "通过",
|
||
"message": "跳过检查:API不符合分页参数检查的准入规则(需包含'查询'/'列表'等关键词,且不包含'详情'等关键词)",
|
||
"duration_seconds": 0.025016624946147203,
|
||
"timestamp": "2025-06-26T01:13:02.957649",
|
||
"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": "中",
|
||
"status": "失败",
|
||
"message": "路径 '/api/dms/{dms_instance_code}/v1/cd_geo_unit' 的最后一个路径分段 'cd_geo_unit' 可能不是复数形式,建议对资源集合使用复数命名。",
|
||
"duration_seconds": 0.020272125024348497,
|
||
"timestamp": "2025-06-26T01:13:02.978339",
|
||
"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": "中",
|
||
"status": "通过",
|
||
"message": "路径 '/api/dms/{dms_instance_code}/v1/cd_geo_unit' 符合资源名词命名规范。",
|
||
"duration_seconds": 0.019423458026722074,
|
||
"timestamp": "2025-06-26T01:13:02.998154",
|
||
"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": "高",
|
||
"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.018344042007811368,
|
||
"timestamp": "2025-06-26T01:13:03.016982",
|
||
"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": "Response Body JSON Schema Validation",
|
||
"test_case_severity": "严重",
|
||
"status": "通过",
|
||
"message": "Schema验证步骤完成(未发现问题,或schema不适用/未为此响应定义)。",
|
||
"duration_seconds": 0.023407167056575418,
|
||
"timestamp": "2025-06-26T01:13:03.040740",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "Schema验证步骤完成(未发现问题,或schema不适用/未为此响应定义)。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-RESTful-003",
|
||
"test_case_name": "时间字段ISO 8601格式检查",
|
||
"test_case_severity": "中",
|
||
"status": "通过",
|
||
"message": "在API规范中未找到可供静态检查的时间相关字段(如 format: date-time 或 常见时间字段名)。",
|
||
"duration_seconds": 0.02195012499578297,
|
||
"timestamp": "2025-06-26T01:13:03.063036",
|
||
"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": "中",
|
||
"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.017171542043797672,
|
||
"timestamp": "2025-06-26T01:13:03.080647",
|
||
"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 Protocol Mandatory Verification",
|
||
"test_case_severity": "严重",
|
||
"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.017213665996678174,
|
||
"timestamp": "2025-06-26T01:13:03.098420",
|
||
"validation_points": [
|
||
{
|
||
"status_code": 200
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4001-QUERY",
|
||
"test_case_name": "Error Code -1 - Query Parameter Type Mismatch Validation",
|
||
"test_case_severity": "中",
|
||
"status": "通过",
|
||
"message": "跳过测试:在查询参数中未找到合适的字段来测试类型不匹配。",
|
||
"duration_seconds": 0.01609391695819795,
|
||
"timestamp": "2025-06-26T01:13:03.114672",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "跳过测试:在查询参数中未找到合适的字段来测试类型不匹配。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4001-BODY",
|
||
"test_case_name": "Error Code -1 - Request Body Type Mismatch Validation",
|
||
"test_case_severity": "中",
|
||
"status": "失败",
|
||
"message": "当请求体字段 'version' 类型不匹配时, 业务错误码应为 -1,但实际为 25。",
|
||
"duration_seconds": 0.05580974998883903,
|
||
"timestamp": "2025-06-26T01:13:03.170648",
|
||
"validation_points": [
|
||
{
|
||
"expected_code": -1,
|
||
"actual_code": 25,
|
||
"response_body": {
|
||
"code": 25,
|
||
"message": "est minim Ut",
|
||
"data": true
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4002",
|
||
"test_case_name": "Error Code -1 - Number Value Out of Range Validation",
|
||
"test_case_severity": "中",
|
||
"status": "通过",
|
||
"message": "跳过测试:未找到具有明确范围限制的数值字段。",
|
||
"duration_seconds": 0.04020350007340312,
|
||
"timestamp": "2025-06-26T01:13:03.211032",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "跳过测试:未找到具有明确范围限制的数值字段。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4006",
|
||
"test_case_name": "Error Code 4006 - Invalid Enum Value Validation",
|
||
"test_case_severity": "中",
|
||
"status": "通过",
|
||
"message": "跳过测试:未找到具有明确枚举值限制的字段。",
|
||
"duration_seconds": 0.019155874964781106,
|
||
"timestamp": "2025-06-26T01:13:03.230314",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "跳过测试:未找到具有明确枚举值限制的字段。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4003-BODY",
|
||
"test_case_name": "Error Code -1 - Missing Required Request Body Field Validation",
|
||
"test_case_severity": "高",
|
||
"status": "失败",
|
||
"message": "当移除必填请求体字段 'data.0.bsflag' 时, 业务错误码应为 -1,但实际为 77。",
|
||
"duration_seconds": 0.015637291013263166,
|
||
"timestamp": "2025-06-26T01:13:03.246171",
|
||
"validation_points": [
|
||
{
|
||
"expected_code": -1,
|
||
"actual_code": 77,
|
||
"response_body": {
|
||
"code": 77,
|
||
"message": "occaecat irure sunt et",
|
||
"data": false
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4003-QUERY",
|
||
"test_case_name": "Error Code -1 - Missing Required Query Parameter Validation",
|
||
"test_case_severity": "高",
|
||
"status": "通过",
|
||
"message": "跳过测试:在API规范中未找到合适的必填查询参数用于移除测试。",
|
||
"duration_seconds": 0.017193958046846092,
|
||
"timestamp": "2025-06-26T01:13:03.263660",
|
||
"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": 4.538843,
|
||
"start_time": "2025-06-26T01:13:03.264028",
|
||
"end_time": "2025-06-26T01:13:07.802871",
|
||
"executed_test_cases": [
|
||
{
|
||
"test_case_id": "TC-HEADER-001",
|
||
"test_case_name": "必需请求头Schema验证",
|
||
"test_case_severity": "严重",
|
||
"status": "失败",
|
||
"message": "缺少必需的请求头 X-Tenant-ID;缺少必需的请求头 X-Data-Domain",
|
||
"duration_seconds": 0.024528458015993237,
|
||
"timestamp": "2025-06-26T01:13:03.289554",
|
||
"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": "严重",
|
||
"status": "通过",
|
||
"message": "响应状态码为 200,符合预期 200。",
|
||
"duration_seconds": 0.01784137508366257,
|
||
"timestamp": "2025-06-26T01:13:03.307705",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "响应状态码为 200,符合预期 200。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-SECURITY-002",
|
||
"test_case_name": "敏感字段加密检查",
|
||
"test_case_severity": "高",
|
||
"status": "通过",
|
||
"message": "未在响应中找到需要检查的敏感字段。",
|
||
"duration_seconds": 0.021396041964180768,
|
||
"timestamp": "2025-06-26T01:13:03.329409",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "未在响应中找到需要检查的敏感字段。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-LLM-COMPLIANCE-001",
|
||
"test_case_name": "LLM合规性综合检查",
|
||
"test_case_severity": "中",
|
||
"status": "失败",
|
||
"message": "[API应该使用正确的HTTP方法:GET用于检索,POST用于创建,PUT用于更新,DELETE用于删除] 不通过: 该API使用GET方法,但其请求体(schema_request_body)中包含复杂的查询条件和过滤逻辑,这通常属于用于检索资源的POST方法的范畴。根据标准,GET应仅用于直接检索资源,而不应携带复杂的查询逻辑。",
|
||
"duration_seconds": 4.12632925005164,
|
||
"timestamp": "2025-06-26T01:13:07.455986",
|
||
"validation_points": [
|
||
{
|
||
"criterion": "API应该使用正确的HTTP方法:GET用于检索,POST用于创建,PUT用于更新,DELETE用于删除",
|
||
"llm_reason": "该API使用GET方法,但其请求体(schema_request_body)中包含复杂的查询条件和过滤逻辑,这通常属于用于检索资源的POST方法的范畴。根据标准,GET应仅用于直接检索资源,而不应携带复杂的查询逻辑。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-RESTful-001",
|
||
"test_case_name": "核心命名与结构规范检查",
|
||
"test_case_severity": "高",
|
||
"status": "通过",
|
||
"message": "模块名 'dms' 格式正确 (全小写/数字/中划线)。",
|
||
"duration_seconds": 0.05657008301932365,
|
||
"timestamp": "2025-06-26T01:13:07.512929",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "模块名 'dms' 格式正确 (全小写/数字/中划线)。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-DMS-PAGINATION-001",
|
||
"test_case_name": "分页参数检查",
|
||
"test_case_severity": "中",
|
||
"status": "通过",
|
||
"message": "跳过检查:API不符合分页参数检查的准入规则(需包含'查询'/'列表'等关键词,且不包含'详情'等关键词)",
|
||
"duration_seconds": 0.03286525001749396,
|
||
"timestamp": "2025-06-26T01:13:07.546058",
|
||
"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": "中",
|
||
"status": "失败",
|
||
"message": "路径 '/api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}/{id}' 的最后一个路径分段 'cd_geo_unit' 可能不是复数形式,建议对资源集合使用复数命名。",
|
||
"duration_seconds": 0.02167766692582518,
|
||
"timestamp": "2025-06-26T01:13:07.568185",
|
||
"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": "中",
|
||
"status": "通过",
|
||
"message": "路径 '/api/dms/{dms_instance_code}/v1/cd_geo_unit/{version}/{id}' 符合资源名词命名规范。",
|
||
"duration_seconds": 0.026372583000920713,
|
||
"timestamp": "2025-06-26T01:13:07.595006",
|
||
"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": "高",
|
||
"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.01804225007072091,
|
||
"timestamp": "2025-06-26T01:13:07.613537",
|
||
"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": "Response Body JSON Schema Validation",
|
||
"test_case_severity": "严重",
|
||
"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.017353166942484677,
|
||
"timestamp": "2025-06-26T01:13:07.631276",
|
||
"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": "中",
|
||
"status": "通过",
|
||
"message": "在API规范中未找到可供静态检查的时间相关字段(如 format: date-time 或 常见时间字段名)。",
|
||
"duration_seconds": 0.017126958002336323,
|
||
"timestamp": "2025-06-26T01:13:07.648694",
|
||
"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": "中",
|
||
"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.020006875041872263,
|
||
"timestamp": "2025-06-26T01:13:07.669178",
|
||
"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 Protocol Mandatory Verification",
|
||
"test_case_severity": "严重",
|
||
"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.018331583007238805,
|
||
"timestamp": "2025-06-26T01:13:07.687984",
|
||
"validation_points": [
|
||
{
|
||
"status_code": 200
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4001-QUERY",
|
||
"test_case_name": "Error Code -1 - Query Parameter Type Mismatch Validation",
|
||
"test_case_severity": "中",
|
||
"status": "通过",
|
||
"message": "跳过测试:在查询参数中未找到合适的字段来测试类型不匹配。",
|
||
"duration_seconds": 0.019224583986215293,
|
||
"timestamp": "2025-06-26T01:13:07.707460",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "跳过测试:在查询参数中未找到合适的字段来测试类型不匹配。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4001-BODY",
|
||
"test_case_name": "Error Code -1 - Request Body Type Mismatch Validation",
|
||
"test_case_severity": "中",
|
||
"status": "失败",
|
||
"message": "当请求体字段 'isSearchCount' 类型不匹配时, 业务错误码应为 -1,但实际为 59。",
|
||
"duration_seconds": 0.02028512500692159,
|
||
"timestamp": "2025-06-26T01:13:07.728073",
|
||
"validation_points": [
|
||
{
|
||
"expected_code": -1,
|
||
"actual_code": 59,
|
||
"response_body": {
|
||
"code": 59,
|
||
"message": "reprehenderit do incididunt ad ut",
|
||
"data": {
|
||
"total": 98,
|
||
"list": [
|
||
{
|
||
"dsid": "46",
|
||
"dataRegion": "non dolore",
|
||
"gasReleaseMon": null,
|
||
"gasReleaseYear": null,
|
||
"releaseGasCum": null
|
||
},
|
||
{
|
||
"dsid": "62",
|
||
"dataRegion": "cillum culpa",
|
||
"gasReleaseMon": null,
|
||
"gasReleaseYear": null,
|
||
"releaseGasCum": null
|
||
},
|
||
{
|
||
"dsid": "85",
|
||
"dataRegion": "Excepteur ut",
|
||
"gasReleaseMon": null,
|
||
"gasReleaseYear": null,
|
||
"releaseGasCum": null
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4002",
|
||
"test_case_name": "Error Code -1 - Number Value Out of Range Validation",
|
||
"test_case_severity": "中",
|
||
"status": "通过",
|
||
"message": "跳过测试:未找到具有明确范围限制的数值字段。",
|
||
"duration_seconds": 0.01736541697755456,
|
||
"timestamp": "2025-06-26T01:13:07.745766",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "跳过测试:未找到具有明确范围限制的数值字段。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4006",
|
||
"test_case_name": "Error Code 4006 - Invalid Enum Value Validation",
|
||
"test_case_severity": "中",
|
||
"status": "失败",
|
||
"message": "当 body 字段 'logic' 值为 'invalid_enum_8cbvmc' (合法值为: ['AND', 'OR']) 时, 业务错误码应为 -1,但实际为 43。",
|
||
"duration_seconds": 0.022006999934092164,
|
||
"timestamp": "2025-06-26T01:13:07.767986",
|
||
"validation_points": [
|
||
{
|
||
"expected_code": -1,
|
||
"actual_code": 43,
|
||
"response_body": {
|
||
"code": 43,
|
||
"message": "Excepteur velit dolor",
|
||
"data": {
|
||
"total": 4,
|
||
"list": [
|
||
{
|
||
"dsid": "47",
|
||
"dataRegion": "reprehenderit nostrud irure laboris",
|
||
"gasReleaseMon": null,
|
||
"gasReleaseYear": null,
|
||
"releaseGasCum": null
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4003-BODY",
|
||
"test_case_name": "Error Code -1 - Missing Required Request Body Field Validation",
|
||
"test_case_severity": "高",
|
||
"status": "通过",
|
||
"message": "跳过测试:在API规范中未找到合适的必填请求体字段用于移除测试。",
|
||
"duration_seconds": 0.01740633405279368,
|
||
"timestamp": "2025-06-26T01:13:07.785843",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "跳过测试:在API规范中未找到合适的必填请求体字段用于移除测试。"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"test_case_id": "TC-ERROR-4003-QUERY",
|
||
"test_case_name": "Error Code -1 - Missing Required Query Parameter Validation",
|
||
"test_case_severity": "高",
|
||
"status": "通过",
|
||
"message": "跳过测试:在API规范中未找到合适的必填查询参数用于移除测试。",
|
||
"duration_seconds": 0.01660849992185831,
|
||
"timestamp": "2025-06-26T01:13:07.802668",
|
||
"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-26T01:13:07",
|
||
"end_time": "2025-06-26T01:13:07",
|
||
"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-26T01:13:07+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_1750871587_02ba72",
|
||
"dataRegion": "Feature_1750871587"
|
||
}
|
||
]
|
||
},
|
||
"body": {
|
||
"version": "1.0.0",
|
||
"data": [
|
||
{
|
||
"wellCommonName": "TestResource_1750871587_02ba72",
|
||
"dataRegion": "Feature_1750871587"
|
||
}
|
||
]
|
||
},
|
||
"data": null,
|
||
"timeout": 30
|
||
},
|
||
"extracted_outputs": {},
|
||
"context_after_step_summary": {
|
||
"unique_resource_name": "TestResource_1750871587_02ba72",
|
||
"updated_resource_name": "TestResource_1750871587_02ba72_UPDATED",
|
||
"unique_feature_value": "Feature_1750871587",
|
||
"updated_feature_value": "Feature_1750871587_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_1750871587_02ba72' (field: wellCommonName) not found in list at path 'data.list'.",
|
||
"duration_seconds": "0.0000",
|
||
"timestamp": "2025-06-26T01:13:07+0800",
|
||
"validation_points": [
|
||
{
|
||
"passed": true,
|
||
"message": "状态码匹配 (200)."
|
||
},
|
||
{
|
||
"passed": false,
|
||
"message": "Resource not found: Name 'TestResource_1750871587_02ba72' (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_1750871587_02ba72"
|
||
]
|
||
}
|
||
}
|
||
},
|
||
"body": {
|
||
"isSearchCount": true,
|
||
"query": {
|
||
"fields": [
|
||
"dsid",
|
||
"wellCommonName",
|
||
"dataRegion"
|
||
],
|
||
"filter": {
|
||
"key": "wellCommonName",
|
||
"symbol": "=",
|
||
"realValue": [
|
||
"TestResource_1750871587_02ba72"
|
||
]
|
||
}
|
||
}
|
||
},
|
||
"data": null,
|
||
"timeout": 30
|
||
},
|
||
"extracted_outputs": {},
|
||
"context_after_step_summary": {
|
||
"unique_resource_name": "TestResource_1750871587_02ba72",
|
||
"updated_resource_name": "TestResource_1750871587_02ba72_UPDATED",
|
||
"unique_feature_value": "Feature_1750871587",
|
||
"updated_feature_value": "Feature_1750871587_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_1750871587_02ba72",
|
||
"updated_resource_name": "TestResource_1750871587_02ba72_UPDATED",
|
||
"unique_feature_value": "Feature_1750871587",
|
||
"updated_feature_value": "Feature_1750871587_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": []
|
||
} |