fix(acceptance): permit dropship pallet pick audit

This commit is contained in:
2026-09-09 01:50:19 +08:00
parent decfe4ab1f
commit 74fa4789f5
5 changed files with 18 additions and 9 deletions
@@ -25,6 +25,15 @@ test('order fixture defaults to FBA and preserves explicit OVERSEAS or PRIVATE r
assert.doesNotMatch(orders, /const fbaResponse =/)
})
test('loading pick operation schemas accept whole-pallet dropship audits', () => {
const moduleSql = read('../../firstleg/src/main/resources/db/phase3-pda-convergence-schema.sql')
const unifiedSql = read('../../deploy/sql/头程数据库统一增量-MySQL8.sql')
for (const sql of [moduleSql, unifiedSql]) {
assert.match(sql, /chk_loading_pick_operation_action[\s\S]*?'PICK_PALLET'/)
}
assert.equal((unifiedSql.match(/CHECK \(action_type IN \([^)]*'PICK_PALLET'[^)]*\)\)/g) || []).length, 2)
})
test('producer collector requires dropship FBA, standard FBA, OVERSEAS and a fourth distinct container', () => {
const common = { marker: 'RUN-1', eventType: 'FIRST_LEG_LOADING_PLAN_COMPLETED', sourceStatus: 'LOADED' }
const dropship = { ...common, eventKey: 'DROP-EVENT', destinationType: 'FBA',