test(firstleg): seed booking file before loading release
This commit is contained in:
@@ -52,6 +52,25 @@ 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', () => {
|
||||
ordered(loading, [
|
||||
'创建三期 DRAFT 订舱(不生成真实柜)',
|
||||
'三期 DRAFT 订舱返回稳定身份和初始版本',
|
||||
'三期订舱上传当前有效订舱确认文件',
|
||||
'订舱文件归属当前订舱且上传递增版本',
|
||||
'订舱文件同键同载荷重放',
|
||||
'订舱文件精确重放不新增文件或版本',
|
||||
'回查订舱文件有效归属',
|
||||
'同键重放后当前订舱仅保留一条目标有效文件',
|
||||
'三期订舱 RELEASED 冻结运输快照',
|
||||
])
|
||||
assert.match(loading, /documentType', 'BOOKING_CONFIRMATION'/)
|
||||
assert.match(loading, /id\(bookingDocument\?\.document\?\.oceanBookingId\) === bookingId/)
|
||||
assert.match(loading, /releaseVersion > draftVersion/)
|
||||
assert.match(loading, /'Idempotency-Key': bookingDocumentKey/)
|
||||
assert.equal((loading.match(/'Idempotency-Key': bookingDocumentKey/g) || []).length, 2)
|
||||
assert.match(loading, /Number\(bookingDocumentReplay\?\.bookingVersion\) === releaseVersion/)
|
||||
assert.match(loading, /expectedVersion: releaseVersion, reason: context\.marker/)
|
||||
assert.doesNotMatch(loading, /expectedVersion: draftVersion, reason: context\.marker/)
|
||||
ordered(loading, [
|
||||
'PDA 原子批次完成拣货并等待人工确认',
|
||||
'五类装柜证据完整且铅封号持久化',
|
||||
|
||||
Reference in New Issue
Block a user