test(firstleg): use task-scoped loading evidence
This commit is contained in:
@@ -53,16 +53,17 @@ test('default fixture publishes a second marker-owned inbound for the same-plan
|
||||
|
||||
test('HTTP chain refreshes after stale inventory and keeps one stable PDA identity', () => {
|
||||
assert.match(loading,
|
||||
/async function uploadEvidence\(context, containerBookingId, evidenceType\)/)
|
||||
/async function uploadEvidence\(context, taskId, warehouseId, evidenceType, expectedVersion, keySuffix,/)
|
||||
assert.match(loading,
|
||||
/files\/loading-evidence\/\$\{containerBookingId\}\?evidenceType=/)
|
||||
/first-leg\/pda-loading\/tasks\/\$\{taskId\}\/evidence\?\$\{query\}/)
|
||||
assert.match(loading,
|
||||
/files\/loading-evidence\/\$\{containerBookingId\}\/\$\{fileId\}/)
|
||||
assert.equal((loading.match(/uploadEvidence\(context, containerBookingId,/g) || []).length, 5)
|
||||
/\$\{evidencePath\}\/\$\{encodeURIComponent\(evidenceItem\.id\)\}\/content\?warehouseId=/)
|
||||
assert.match(loading, /\$\{evidencePath\}\/\$\{encodeURIComponent\(id\(voidTarget\.id\)\)\}\/void/)
|
||||
assert.doesNotMatch(loading,
|
||||
/files\/loading-evidence\/\$\{tenantId\}\/\$\{inboundId\}/)
|
||||
/api\/platform\/v1\/files\/loading-evidence/)
|
||||
assert.doesNotMatch(loading,
|
||||
/uploadEvidence\(context, tenantId, inboundId,/)
|
||||
/\$\{base\}\/loading\/evidence|api\/platform\/v1\/inbounds\/\$\{inboundId\}\/loading\/evidence/)
|
||||
assert.doesNotMatch(loading, /uploadEvidence\(context, (tenantId|inboundId|containerBookingId),/)
|
||||
ordered(loading, [
|
||||
'创建三期 DRAFT 订舱(不生成真实柜)',
|
||||
'三期 DRAFT 订舱返回稳定身份和初始版本',
|
||||
|
||||
Reference in New Issue
Block a user