yumoqing 9674a2ee4b feat(ticket): 工单管理模块应用集成——load链/build.sh三清单/种子/i18n/菜单/冒烟
- app/pipeline_app.py: try-import load_ticket()+load链(pipeline_task之后,依赖pipeline_service的provider注册/llm_bridge/rag_client)
- build.sh: clone/pip install/wwwroot软链三清单加ticket(无json/CRUD故不进xls2ui清单)
- conf/config.json module_dbname: ticket→pipeline; scripts/import_init.py INIT_MODULES加ticket(码表+owner.maintainer角色种子)
- scripts/merge_i18n.py MODULES加ticket; i18n四语言+3词条(我的工单/工单管理/提交新工单)
- wwwroot/index.ui: 客户分支「我的工单」;管理分支「工单管理」(is_ticket_staff=owner.maintainer/admin/superuser Jinja门禁)
- deploy/smoke: s15/s16工单两页面用例
- rp.json不改: 权限由模块load_path.py逐个精确配(管理页壳owner三角色,业务权限服务端按current_role动态校验)
2026-09-10 16:14:39 +08:00

147 lines
3.2 KiB
JSON

{
"_说明": "冒泡测试用例——增量部署后关键功能点验收。runner: deploy/dsmoke.py。auth=login 的用例先登录拿会话。expect: status 状态码 / contains 响应含串 / not_contains 不含串 / json_field 存在字段。凭据从环境变量 SMOKE_USER/SMOKE_PASS 读(不入库)。",
"base": "",
"cases": [
{
"id": "s01",
"name": "健康检查",
"url": "/",
"auth": "none",
"expect": {
"status": 200
}
},
{
"id": "s02",
"name": "登录",
"url": "/rbac/user/up_login.dspy",
"method": "POST",
"body": {
"username": "${SMOKE_USER}",
"password": "${SMOKE_PASS}"
},
"auth": "none",
"expect": {
"status": 200,
"not_contains": "password error"
}
},
{
"id": "s03",
"name": "主页壳",
"url": "/",
"auth": "login",
"expect": {
"status": 200,
"contains": "产线平台"
}
},
{
"id": "s04",
"name": "agent菜单",
"url": "/pipeline_core/api/agent_menus.dspy",
"auth": "login",
"expect": {
"status": 200,
"contains": "工作空间"
}
},
{
"id": "s05",
"name": "商机产线壳",
"url": "/pipeline-opportunity/agent/index.ui",
"auth": "login",
"expect": {
"status": 200,
"contains": "商机产线"
}
},
{
"id": "s06",
"name": "投标产线壳",
"url": "/pipeline-bidding/agent/index.ui",
"auth": "login",
"expect": {
"status": 200,
"contains": "投标产线"
}
},
{
"id": "s07",
"name": "开发产线壳",
"url": "/pipeline-sdlc/index.ui",
"auth": "login",
"expect": {
"status": 200
}
},
{
"id": "s08",
"name": "运营产线壳",
"url": "/pipeline_ops/index.ui",
"auth": "login",
"expect": {
"status": 200
}
},
{
"id": "s10",
"name": "商机数据参考(爬虫平台连通)",
"url": "/pipeline-opportunity/api/opp_references_popup.dspy",
"auth": "login",
"expect": {
"status": 200
}
},
{
"id": "s11",
"name": "项目管理列表",
"url": "/pipeline_core/api/agent_menu_open.dspy",
"method": "POST",
"body": {
"menu": "workspace"
},
"auth": "login",
"expect": {
"status": 200
}
},
{
"id": "s12",
"name": "待办",
"url": "/pipeline-sdlc/api/my_todos.dspy",
"auth": "login",
"expect": {
"status": 200
}
},
{
"id": "s13",
"name": "i18n资源",
"url": "/i18n/zh/i18n.json",
"auth": "none",
"expect": {
"status": 200,
"contains": "产线"
}
},
{
"id": "s14",
"name": "工单-客户列表页",
"url": "/ticket/my/index.ui",
"auth": "login",
"expect": {
"status": 200
}
},
{
"id": "s15",
"name": "工单-管理页",
"url": "/ticket/manage/index.ui",
"auth": "login",
"expect": {
"status": 200
}
}
]
}