- boot/ (Java/Maven, JNPF 7.0) — 移除旧的 boot/.git,源码直接纳入仓库
- web/ (Vue 3 + Vite + Ant Design Vue, pnpm)
- docs/, scard/, nax/
- refs/INDEX.md + refs/国标/(其余 refs/* 开源子仓库不纳入)
- 已忽略: connector_data/, jweb/, log/, web/{dist,node_modules,.pnpm}, boot/*/target/, .DS_Store, .idea, .vscode
20 lines
1.4 KiB
JavaScript
20 lines
1.4 KiB
JavaScript
/**
|
|
* TC-DIRECTORY_API-005 · 条件不满足时不能办理产品使用申请
|
|
* REQ-064 [FL-4.3] 反向/等价类 P0
|
|
*
|
|
* 前置:1. 通过已认证的调用方连接器调用“产品使用申请”接口可以正常打开;2. 已准备无权限账号或错误数据
|
|
* 步骤:1. 打开通过已认证的调用方连接器调用“产品使用申请”接口;2. 使用无权限账号或错误数据办理产品使用申请;3. 点击提交,查看提示和数据
|
|
* 预期:系统不允许办理产品使用申请,并说明原因。原有数据和状态不变。
|
|
*/
|
|
export const meta = {
|
|
tc: "TC-DIRECTORY_API-005",
|
|
req: "REQ-064",
|
|
title: "条件不满足时不能办理产品使用申请",
|
|
type: "反向/等价类",
|
|
priority: "P0",
|
|
route: "",
|
|
needs: ['be']
|
|
}
|
|
|
|
export async function run(t) { await t.step('使用错误数据调用产品使用申请接口',async()=>{await t.login();const before=await t.apiList('/api/ssw/tds/DataApply');const r=await t.api('POST','/api/ssw/tds/DataApply',{productId:t.uid('NO-SUCH-PRODUCT'),purpose:'错误申请'});t.assert(r.code!==200,'错误产品使用申请被接口拒绝');t.assert(/不存在|下架|必填/.test(r.msg||''),'接口明确说明产品使用申请失败原因');const after=await t.apiList('/api/ssw/tds/DataApply');t.assert(after.length===before.length,'错误产品使用申请未改变原有数据')}); }
|