- 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
59 lines
2.0 KiB
JavaScript
59 lines
2.0 KiB
JavaScript
/**
|
||
* TC-CONNECTOR-001 · 正常办理连接器注册
|
||
* REQ-005 [FL-3.1] 正向/场景法 P0
|
||
*
|
||
* 前置:具备权限的平台运营方 / 【接入连接器管理】可打开 / 测试数据已备
|
||
* 步骤:打开接入连接器管理 → 填写正确数据 → 提交
|
||
* 预期:注册成功,状态与记录正确
|
||
*/
|
||
export const meta = {
|
||
tc: 'TC-CONNECTOR-001',
|
||
req: 'REQ-005',
|
||
title: '正常办理连接器注册',
|
||
type: '正向/场景法',
|
||
priority: 'P0',
|
||
route: '/tds/connectors',
|
||
needs: ['fe', 'be']
|
||
}
|
||
|
||
export async function run(t) {
|
||
const code = t.uid('E2E-CONN')
|
||
const name = `测评连接器-${t.runId}`
|
||
|
||
await t.step('前置:以运营方身份登录并打开【接入连接器管理】', async () => {
|
||
await t.login()
|
||
await t.goto('/tds/connectors')
|
||
await t.expectTitle('连接器接入')
|
||
await t.expectVisible('.ant-table', '连接器列表已渲染')
|
||
await t.pickSpace()
|
||
})
|
||
|
||
await t.step('填写正确数据并提交注册', async () => {
|
||
await t.create({
|
||
连接器标识: code,
|
||
连接器名称: name,
|
||
所属机构: '尚数网测评机构',
|
||
统一社会信用代码: '91330100MA2E2E2E2E',
|
||
服务地址: 'https://e2e.connector.local:8443',
|
||
能力声明: '{"roles":["PROVIDER","CONSUMER"],"protocol":"mTLS"}'
|
||
})
|
||
await t.shot('提交后列表')
|
||
})
|
||
|
||
await t.step('核对办理结果:列表可见且状态正确', async () => {
|
||
await t.search(code)
|
||
await t.expectRow(code)
|
||
await t.expectRow(name)
|
||
})
|
||
|
||
await t.step('核对落库记录:接口侧数据与界面一致', async () => {
|
||
const list = await t.apiList('/api/ssw/tds/Connector', { keyword: code })
|
||
const row = list.find((r) => r.connectorCode === code)
|
||
t.assert(!!row, `后端已落库连接器 ${code}`)
|
||
t.assert(row.name === name, `落库名称与提交一致(${row.name})`)
|
||
t.assert(!!row.auditStatus, `注册后进入审批流转,审批状态=${row.auditStatus}`)
|
||
})
|
||
|
||
t.expectConsoleClean()
|
||
}
|