- 前端 React+TypeScript (源码+构建产物) - 后端 Python FastAPI - 数据库迁移 001-015 - Docker部署配置 - 微信ClawBot API频道绑定 - 项目文档 README.md
442 lines
11 KiB
JSON
442 lines
11 KiB
JSON
{
|
|
"summary": {
|
|
"passed": 69,
|
|
"failed": 3,
|
|
"total": 72,
|
|
"pass_rate": "95%"
|
|
},
|
|
"results": [
|
|
{
|
|
"name": "LOGIN-ADMIN",
|
|
"status": "PASS",
|
|
"detail": "管理员登录成功",
|
|
"endpoint": ""
|
|
},
|
|
{
|
|
"name": "P1.1 获取Token概览",
|
|
"status": "PASS",
|
|
"detail": "OK",
|
|
"endpoint": "GET /token/overview"
|
|
},
|
|
{
|
|
"name": "P1.2 概览含today_tokens",
|
|
"status": "FAIL",
|
|
"detail": "keys: ['total_used', 'balance', 'today_apps']",
|
|
"endpoint": ""
|
|
},
|
|
{
|
|
"name": "P1.3 获取Token日志",
|
|
"status": "PASS",
|
|
"detail": "OK",
|
|
"endpoint": "GET /token/logs"
|
|
},
|
|
{
|
|
"name": "P1.4 日志含时间字段",
|
|
"status": "PASS",
|
|
"detail": "time=2026-06-01T10:53:10",
|
|
"endpoint": ""
|
|
},
|
|
{
|
|
"name": "P1.5 时间格式正确",
|
|
"status": "PASS",
|
|
"detail": "2026-06-01T10:53:10",
|
|
"endpoint": ""
|
|
},
|
|
{
|
|
"name": "P1.6 获取Token余额",
|
|
"status": "PASS",
|
|
"detail": "OK",
|
|
"endpoint": "GET /token/balance"
|
|
},
|
|
{
|
|
"name": "P2.1 错误密码返回401",
|
|
"status": "PASS",
|
|
"detail": "detail='密码错误'",
|
|
"endpoint": "POST /auth/login"
|
|
},
|
|
{
|
|
"name": "P2.2 不存在用户返回401+明确提示",
|
|
"status": "PASS",
|
|
"detail": "detail='用户名不存在'",
|
|
"endpoint": "POST /auth/login"
|
|
},
|
|
{
|
|
"name": "P2.3 正确密码登录成功",
|
|
"status": "PASS",
|
|
"detail": "登录成功",
|
|
"endpoint": "POST /auth/login"
|
|
},
|
|
{
|
|
"name": "P3.1 获取仪表盘统计",
|
|
"status": "PASS",
|
|
"detail": "OK",
|
|
"endpoint": "GET /admin/dashboard/stats"
|
|
},
|
|
{
|
|
"name": "P3.2 active_users",
|
|
"status": "PASS",
|
|
"detail": "用户总数=1",
|
|
"endpoint": ""
|
|
},
|
|
{
|
|
"name": "P3.2 enabled_models",
|
|
"status": "PASS",
|
|
"detail": "模型数=9",
|
|
"endpoint": ""
|
|
},
|
|
{
|
|
"name": "P3.2 today_orders",
|
|
"status": "PASS",
|
|
"detail": "今日订单=0",
|
|
"endpoint": ""
|
|
},
|
|
{
|
|
"name": "P3.2 today_tokens",
|
|
"status": "PASS",
|
|
"detail": "今日Token=66",
|
|
"endpoint": ""
|
|
},
|
|
{
|
|
"name": "P3.2 total_tokens",
|
|
"status": "PASS",
|
|
"detail": "累计总消耗=273",
|
|
"endpoint": ""
|
|
},
|
|
{
|
|
"name": "P4.1 获取广告列表",
|
|
"status": "PASS",
|
|
"detail": "OK",
|
|
"endpoint": "GET /admin/ads/"
|
|
},
|
|
{
|
|
"name": "P4.2 AI生成广告图",
|
|
"status": "PASS",
|
|
"detail": "OK",
|
|
"endpoint": "POST /admin/ads/generate-image"
|
|
},
|
|
{
|
|
"name": "P4.3 生成结果含image_url",
|
|
"status": "PASS",
|
|
"detail": "/app/api/admin/ads/images/ai_gen_9746ce65cdc9.svg",
|
|
"endpoint": ""
|
|
},
|
|
{
|
|
"name": "P5.1 获取模型供应商",
|
|
"status": "PASS",
|
|
"detail": "OK",
|
|
"endpoint": "GET /admin/models/providers"
|
|
},
|
|
{
|
|
"name": "P5.2 获取模型列表",
|
|
"status": "PASS",
|
|
"detail": "OK",
|
|
"endpoint": "GET /admin/models/"
|
|
},
|
|
{
|
|
"name": "P5.3 模型含能力标签",
|
|
"status": "PASS",
|
|
"detail": "caps=['text', 'vision', 'tool']",
|
|
"endpoint": ""
|
|
},
|
|
{
|
|
"name": "P5.4 模型含is_default",
|
|
"status": "PASS",
|
|
"detail": "isDefault=False",
|
|
"endpoint": ""
|
|
},
|
|
{
|
|
"name": "P5.5 从供应商获取模型",
|
|
"status": "PASS",
|
|
"detail": "OK",
|
|
"endpoint": "POST /admin/models/providers/prov-002/fetch-models"
|
|
},
|
|
{
|
|
"name": "P6.1 获取邮件配置",
|
|
"status": "PASS",
|
|
"detail": "OK",
|
|
"endpoint": "GET /admin/settings/email"
|
|
},
|
|
{
|
|
"name": "P6.2 保存邮件配置",
|
|
"status": "PASS",
|
|
"detail": "OK",
|
|
"endpoint": "PUT /admin/settings/email"
|
|
},
|
|
{
|
|
"name": "P6.3 配置回显验证",
|
|
"status": "PASS",
|
|
"detail": "OK",
|
|
"endpoint": "GET /admin/settings/email"
|
|
},
|
|
{
|
|
"name": "P6.4 回显值正确",
|
|
"status": "PASS",
|
|
"detail": "smtp_host=smtp.test.com",
|
|
"endpoint": ""
|
|
},
|
|
{
|
|
"name": "P6.5 发送测试邮件(假SMTP)",
|
|
"status": "PASS",
|
|
"detail": "HTTP 500",
|
|
"endpoint": "POST /admin/settings/email/test"
|
|
},
|
|
{
|
|
"name": "P6.6 AI生成测试内容",
|
|
"status": "PASS",
|
|
"detail": "OK",
|
|
"endpoint": "POST /admin/settings/email/generate-content"
|
|
},
|
|
{
|
|
"name": "P6.7 生成内容含主题",
|
|
"status": "PASS",
|
|
"detail": "AIFlow平台 - 邮件投递测试",
|
|
"endpoint": ""
|
|
},
|
|
{
|
|
"name": "P7.1 创建测试对话",
|
|
"status": "PASS",
|
|
"detail": "OK",
|
|
"endpoint": "POST /chat/conversations"
|
|
},
|
|
{
|
|
"name": "P7.2 获取Agent列表",
|
|
"status": "PASS",
|
|
"detail": "OK",
|
|
"endpoint": "GET /market/apps?type=agent"
|
|
},
|
|
{
|
|
"name": "P7.3 获取技能列表",
|
|
"status": "PASS",
|
|
"detail": "OK",
|
|
"endpoint": "GET /market/apps?type=skill"
|
|
},
|
|
{
|
|
"name": "P7.4 发送消息(含agent+skill)",
|
|
"status": "PASS",
|
|
"detail": "OK",
|
|
"endpoint": "POST /chat/conversations/41a645ab-c9ad-4f72-9ae1-0ed8e54dfd38/messages"
|
|
},
|
|
{
|
|
"name": "P7.5 响应含used_skills",
|
|
"status": "FAIL",
|
|
"detail": "used_skills=无",
|
|
"endpoint": ""
|
|
},
|
|
{
|
|
"name": "P7.6 Agent参数传递",
|
|
"status": "PASS",
|
|
"detail": "agent_id=app-legal-agent, skill_id=12120938-07cb-4c15-8322-5945eb34ac01",
|
|
"endpoint": ""
|
|
},
|
|
{
|
|
"name": "P8.1 搜索应用(客服)",
|
|
"status": "PASS",
|
|
"detail": "OK",
|
|
"endpoint": "GET /market/apps?keyword=客服"
|
|
},
|
|
{
|
|
"name": "P8.2 搜索结果过滤",
|
|
"status": "PASS",
|
|
"detail": "共14条",
|
|
"endpoint": ""
|
|
},
|
|
{
|
|
"name": "P8.3 获取全部应用",
|
|
"status": "PASS",
|
|
"detail": "OK",
|
|
"endpoint": "GET /market/apps"
|
|
},
|
|
{
|
|
"name": "P8.4 安装应用",
|
|
"status": "PASS",
|
|
"detail": "OK",
|
|
"endpoint": "POST /market/apps/12120938-07cb-4c15-8322-5945eb34ac01/install"
|
|
},
|
|
{
|
|
"name": "P8.5 重复安装检测",
|
|
"status": "PASS",
|
|
"detail": "HTTP 400 (已安装)",
|
|
"endpoint": "POST /market/apps/12120938-07cb-4c15-8322-5945eb34ac01/install"
|
|
},
|
|
{
|
|
"name": "P8.6 卸载应用",
|
|
"status": "PASS",
|
|
"detail": "HTTP 200",
|
|
"endpoint": "DELETE /market/apps/12120938-07cb-4c15-8322-5945eb34ac01/uninstall"
|
|
},
|
|
{
|
|
"name": "P9.1 获取知识库列表",
|
|
"status": "PASS",
|
|
"detail": "OK",
|
|
"endpoint": "GET /knowledge/bases"
|
|
},
|
|
{
|
|
"name": "P9.3 上传测试文档",
|
|
"status": "PASS",
|
|
"detail": "OK",
|
|
"endpoint": "POST /knowledge/bases/87a86c1c-8ee9-4831-96c0-ec4a1b5a1909/documents"
|
|
},
|
|
{
|
|
"name": "P9.4 构建知识图谱(LLM)",
|
|
"status": "PASS",
|
|
"detail": "OK",
|
|
"endpoint": "POST /knowledge/bases/87a86c1c-8ee9-4831-96c0-ec4a1b5a1909/build-graph"
|
|
},
|
|
{
|
|
"name": "P9.5 图谱含节点",
|
|
"status": "FAIL",
|
|
"detail": "0个节点",
|
|
"endpoint": ""
|
|
},
|
|
{
|
|
"name": "P9.7 获取图谱数据",
|
|
"status": "PASS",
|
|
"detail": "OK",
|
|
"endpoint": "GET /knowledge/bases/87a86c1c-8ee9-4831-96c0-ec4a1b5a1909/graph"
|
|
},
|
|
{
|
|
"name": "P10.1 获取文件类别资产",
|
|
"status": "PASS",
|
|
"detail": "OK",
|
|
"endpoint": "GET /assets/?category=file"
|
|
},
|
|
{
|
|
"name": "P10.2 获取doc类别资产",
|
|
"status": "PASS",
|
|
"detail": "OK",
|
|
"endpoint": "GET /assets/?category=doc"
|
|
},
|
|
{
|
|
"name": "P10.3 doc分类资产数量",
|
|
"status": "PASS",
|
|
"detail": "file=0, doc=5",
|
|
"endpoint": ""
|
|
},
|
|
{
|
|
"name": "P10.4 获取全部资产",
|
|
"status": "PASS",
|
|
"detail": "OK",
|
|
"endpoint": "GET /assets/"
|
|
},
|
|
{
|
|
"name": "P10.5 知识库列表(用于对比)",
|
|
"status": "PASS",
|
|
"detail": "OK",
|
|
"endpoint": "GET /knowledge/bases"
|
|
},
|
|
{
|
|
"name": "P10.6 知识库总文档数",
|
|
"status": "PASS",
|
|
"detail": "共4个库/20篇文档",
|
|
"endpoint": ""
|
|
},
|
|
{
|
|
"name": "P11.1 获取进化仪表盘",
|
|
"status": "PASS",
|
|
"detail": "OK",
|
|
"endpoint": "GET /evolution/dashboard"
|
|
},
|
|
{
|
|
"name": "P11.2 仪表盘数据",
|
|
"status": "PASS",
|
|
"detail": "keys=['detail']",
|
|
"endpoint": ""
|
|
},
|
|
{
|
|
"name": "P11.3 获取进化轨迹",
|
|
"status": "PASS",
|
|
"detail": "OK",
|
|
"endpoint": "GET /evolution/trajectories"
|
|
},
|
|
{
|
|
"name": "P11.4 轨迹数量",
|
|
"status": "PASS",
|
|
"detail": "共0条",
|
|
"endpoint": ""
|
|
},
|
|
{
|
|
"name": "P11.5 获取对话列表",
|
|
"status": "PASS",
|
|
"detail": "OK",
|
|
"endpoint": "GET /chat/conversations"
|
|
},
|
|
{
|
|
"name": "P11.6 发送测试消息(触发轨迹)",
|
|
"status": "PASS",
|
|
"detail": "OK",
|
|
"endpoint": "POST /chat/conversations/c2d2ccd4-9b3e-4092-80b3-595c143cce3c/messages"
|
|
},
|
|
{
|
|
"name": "P11.7 再次获取轨迹(验证新增)",
|
|
"status": "PASS",
|
|
"detail": "OK",
|
|
"endpoint": "GET /evolution/trajectories"
|
|
},
|
|
{
|
|
"name": "P11.8 轨迹记录验证",
|
|
"status": "PASS",
|
|
"detail": "发送前0条, 发送后0条",
|
|
"endpoint": ""
|
|
},
|
|
{
|
|
"name": "P11.9 获取管道状态",
|
|
"status": "PASS",
|
|
"detail": "OK",
|
|
"endpoint": "GET /evolution/pipeline/status"
|
|
},
|
|
{
|
|
"name": "P11.10 管道状态",
|
|
"status": "PASS",
|
|
"detail": "status=unknown",
|
|
"endpoint": ""
|
|
},
|
|
{
|
|
"name": "P12.1 生成微信二维码",
|
|
"status": "PASS",
|
|
"detail": "OK",
|
|
"endpoint": "POST /channels/authorize/scan?platform=wechat"
|
|
},
|
|
{
|
|
"name": "P12.2 QR URL不含localhost",
|
|
"status": "PASS",
|
|
"detail": "is_mock=True",
|
|
"endpoint": "POST /channels/authorize/scan"
|
|
},
|
|
{
|
|
"name": "P12.3 QR格式",
|
|
"status": "PASS",
|
|
"detail": "data_uri(正常)",
|
|
"endpoint": ""
|
|
},
|
|
{
|
|
"name": "P12.4 查询扫描状态",
|
|
"status": "PASS",
|
|
"detail": "OK",
|
|
"endpoint": "POST /channels/authorize/scan/status"
|
|
},
|
|
{
|
|
"name": "P7-B1 Agent列表(市场)",
|
|
"status": "PASS",
|
|
"detail": "OK",
|
|
"endpoint": "GET /market/apps?type=agent"
|
|
},
|
|
{
|
|
"name": "P7-B2 Agent数据完整性",
|
|
"status": "PASS",
|
|
"detail": "name=法律文书Agent, type=agent",
|
|
"endpoint": ""
|
|
},
|
|
{
|
|
"name": "P7-B3 已安装应用",
|
|
"status": "PASS",
|
|
"detail": "OK",
|
|
"endpoint": "GET /market/my-apps"
|
|
},
|
|
{
|
|
"name": "P7-B4 已安装应用数",
|
|
"status": "PASS",
|
|
"detail": "共0个",
|
|
"endpoint": ""
|
|
}
|
|
]
|
|
} |