test: align acceptance contracts with current initialization and service clients
This commit is contained in:
@@ -123,7 +123,7 @@ test('字段断言接入正式生产模块和默认全量入口', () => {
|
||||
})
|
||||
|
||||
test('矩阵登记 LANDED 与 UNKNOWN 且禁止 fixture 伪造未知字段', () => {
|
||||
const matrix = read(workspace, 'docs', '国内货柜履约', '货柜履约原型字段验收矩阵-2026-08-17.md')
|
||||
const matrix = read(workspace, 'docs', '国内货柜履约', '归档', '货柜履约原型字段验收矩阵-2026-08-17.md')
|
||||
assert.match(matrix, /LANDED/)
|
||||
assert.match(matrix, /UNKNOWN/)
|
||||
assert.match(matrix, /不得由 fixture 伪造|不生成假值/)
|
||||
|
||||
@@ -28,7 +28,7 @@ test('transfer review integration covers both source types and known blank-reaso
|
||||
const source = await read('warehouse-transfer-review.mjs')
|
||||
const caller = await read('phase4-overseas-client-services.mjs')
|
||||
assert.match(caller, /return verifyWarehouseTransferReview\(context, token, order.row.customerId, body, transferNo\)/)
|
||||
for (const value of ['WAIT_PDA_RECEIVING', 'PENDING_ASSIGNMENT', 'WAIT_DELIVERY', 'CANCELLED',
|
||||
for (const value of ['WAIT_PDA_RECEIVING', 'INBOUND_MEASURING', 'CANCELLED',
|
||||
'REJECTED', 'APPROVED', 'customerId=', 'rejected(denied, 403)', 'rejected(missingScope, 400)',
|
||||
'rejected(reverse, 409)', 'rejected(emptyReason, 400)', "sourceLastlegOrderIds: []"])
|
||||
assert.ok(source.includes(value), value)
|
||||
|
||||
@@ -22,7 +22,7 @@ const containerOverviewPanel = read(`${adminRoot}container-loading/components/Co
|
||||
const containerLoadingAcceptance = read('phase3-container-loading.mjs')
|
||||
const phase3LoadingAcceptance = read('phase3-loading.mjs')
|
||||
const truckAcceptance = read('truck-appointments.mjs')
|
||||
const matrix = read('../../../docs/国内货柜履约/货柜管理全链验收矩阵-2026-08-13.md')
|
||||
const matrix = read('../../../docs/国内货柜履约/归档/货柜管理全链验收矩阵-2026-08-13.md')
|
||||
|
||||
test('container acceptance reads the canonical domestic workbench route', () => {
|
||||
assert.match(containerLoadingAcceptance, /const DOMESTIC_CONTAINERS = `\$\{CONTAINERS\}\/domestic`/)
|
||||
|
||||
Reference in New Issue
Block a user