- 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.2 KiB
JavaScript
59 lines
2.2 KiB
JavaScript
/**
|
||
* TC-IDENTITY-013 · 正常办理连接器身份管理
|
||
* REQ-031 [FL-8.2] 正向/场景法 P0
|
||
*
|
||
* 前置:已绑定连接器的机构用户或已认证连接器 / 连接器的【身份管理】可打开 / 已准备好测试数据
|
||
* 步骤:打开连接器的【身份管理】→ 按页面提示填写或选择正确的数据 → 点击提交,查看办理结果
|
||
* 预期:连接器身份管理办理成功,系统按要求完成处理,状态和记录正确。
|
||
*
|
||
* 连接器身份 = /tdc/identity。创建需 identityCode/name/tdsEndpoint。
|
||
* 通过 CrudPage 注入资料 → 验证列表可见。
|
||
*/
|
||
export const meta = {
|
||
tc: 'TC-IDENTITY-013',
|
||
req: 'REQ-031',
|
||
title: '正常办理连接器身份管理',
|
||
type: '正向/场景法',
|
||
priority: 'P0',
|
||
route: '/tdc/identity',
|
||
needs: ['fe', 'be']
|
||
}
|
||
|
||
export async function run(t) {
|
||
const code = `E2E-IDENT-${t.uid('CONN').replace(/[^a-zA-Z0-9_-]/g, '').slice(-12)}`
|
||
const name = `测评连接器身份-${t.uid('CONN').replace(/[^a-zA-Z0-9_-]/g, '').slice(-12)}`
|
||
|
||
await t.step('前置:登录并打开连接器【身份管理】', async () => {
|
||
await t.login()
|
||
await t.goto('/tdc/identity')
|
||
await t.expectTitle('连接器身份')
|
||
await t.expectVisible('.ant-table', '连接器身份列表已渲染')
|
||
})
|
||
|
||
await t.step('正向:填写正确数据并提交新建', async () => {
|
||
await t.create({
|
||
身份标识: code,
|
||
身份名称: name,
|
||
所属机构: '尚数网测评机构',
|
||
统一社会信用代码: '91330100MA2E2E2E2E',
|
||
本端服务地址: 'https://e2e.identity.local:8443',
|
||
'TDS 地址': 'https://tds.ssw.local',
|
||
目标空间: '烟测空间_69520894'
|
||
})
|
||
await t.shot('提交后列表')
|
||
})
|
||
|
||
await t.step('核对:列表存在该身份', async () => {
|
||
await t.search(code)
|
||
await t.expectRow(code)
|
||
})
|
||
|
||
await t.step('核对:接口侧已落库', async () => {
|
||
const list = await t.apiList('/api/ssw/tdc/Identity', { keyword: code })
|
||
const row = list.find((r) => r.identityCode === code)
|
||
t.assert(!!row, `后端落库 id=${row?.id}`)
|
||
t.assert(row.name === name, `身份名称一致(${row.name})`)
|
||
t.assert(row.registerStatus, `注册状态有初始值(${row.registerStatus})`)
|
||
})
|
||
}
|