- e2e: fix 9 failing cases (contract/hosting/delivery/usage/security); add dsl.createSandboxTask() self-provision helper; cli/runner now default headless, --ob opens visible browser - backend: tdc/tds controller adjustments (delivery, hosting, contract, chain-evidence, catalog, product, policy-conflict, etc.) - web: ssw views/components adjustments (contract, product, hosting, connector) - docs: AGENTS.md, e2e README; .gitignore; project memory update Excludes docs/e2e/results artifacts (screenshots + results.json).
16 lines
857 B
JavaScript
16 lines
857 B
JavaScript
/**
|
|
* TC-CONTRACT_SECURITY-005 · 条件不满足时不能办理数字合约真实性
|
|
* REQ-012 [FL-5.2] 反向/等价类 P0
|
|
*/
|
|
export const meta = { tc: 'TC-CONTRACT_SECURITY-005', req: 'REQ-012', title: '条件不满足时不能办理数字合约真实性', type: '反向/等价类', priority: 'P0', needs: ['be'] }
|
|
export async function run(t) {
|
|
await t.login()
|
|
const list = await t.apiList('/api/ssw/tds/Contract')
|
|
const noChain = list.find((c) => !c.chainTxHash)
|
|
if (noChain) {
|
|
// 未上链合约:Verify 应明确拒绝(不存在 SUCCESS 存证)
|
|
const r = await t.api('GET', `/api/ssw/tds/ChainEvidence/Verify?bizType=CONTRACT_SIGN&bizId=${noChain.id}`)
|
|
t.assert(r.code !== 200 || /未找到|未上链|失败|无证据/.test(r.msg || ''), `未上链合约真实性校验被拒:code=${r.code} msg=${r.msg || ''}`)
|
|
}
|
|
}
|