08ea5fbe98
添加用户管理视图、API和状态管理文件
78 lines
2.2 KiB
JSON
78 lines
2.2 KiB
JSON
{
|
|
"summary": {
|
|
"total_tests": 4,
|
|
"passed_tests": 1,
|
|
"failed_tests": 3,
|
|
"success_rate": "25.00%",
|
|
"test_time": "2026-01-19T10:55:43.822448"
|
|
},
|
|
"results": [
|
|
{
|
|
"test_name": "GET /actuator/health",
|
|
"test_type": "API请求",
|
|
"url": "http://127.0.0.1:8080/api/actuator/health",
|
|
"method": "GET",
|
|
"status_code": 403,
|
|
"response_time": 105.60798645019531,
|
|
"success": false,
|
|
"error_message": "期望状态码200,实际403",
|
|
"request_data": null,
|
|
"response_data": {
|
|
"code": "FORBIDDEN",
|
|
"message": "Missing user authentication information"
|
|
},
|
|
"timestamp": "2026-01-19T10:55:36.666971"
|
|
},
|
|
{
|
|
"test_name": "POST /sys/auth/login",
|
|
"test_type": "API请求",
|
|
"url": "http://127.0.0.1:8080/api/sys/auth/login",
|
|
"method": "POST",
|
|
"status_code": 403,
|
|
"response_time": 4.146814346313477,
|
|
"success": false,
|
|
"error_message": "期望状态码200,实际403",
|
|
"request_data": {
|
|
"username": "admin",
|
|
"password": "admin123"
|
|
},
|
|
"response_data": {
|
|
"code": "FORBIDDEN",
|
|
"message": "Missing user authentication information"
|
|
},
|
|
"timestamp": "2026-01-19T10:55:37.774470"
|
|
},
|
|
{
|
|
"test_name": "GET /sys/users",
|
|
"test_type": "API请求",
|
|
"url": "http://127.0.0.1:8080/api/sys/users",
|
|
"method": "GET",
|
|
"status_code": 401,
|
|
"response_time": 10.711193084716797,
|
|
"success": true,
|
|
"error_message": "",
|
|
"request_data": null,
|
|
"response_data": {
|
|
"code": "UNAUTHORIZED",
|
|
"message": "Missing or invalid authorization header"
|
|
},
|
|
"timestamp": "2026-01-19T10:55:41.796033"
|
|
},
|
|
{
|
|
"test_name": "POST /sys/auth/logout",
|
|
"test_type": "API请求",
|
|
"url": "http://127.0.0.1:8080/api/sys/auth/logout",
|
|
"method": "POST",
|
|
"status_code": 403,
|
|
"response_time": 3.6630630493164062,
|
|
"success": false,
|
|
"error_message": "期望状态码200,实际403",
|
|
"request_data": null,
|
|
"response_data": {
|
|
"code": "FORBIDDEN",
|
|
"message": "Missing user authentication information"
|
|
},
|
|
"timestamp": "2026-01-19T10:55:42.812437"
|
|
}
|
|
]
|
|
} |