test: complete phase4 PDA shipping prerequisites

This commit is contained in:
2026-08-25 15:27:26 +08:00
parent fa92936406
commit 1f6f1a0677
6 changed files with 177 additions and 22 deletions
@@ -80,7 +80,14 @@ test('cross-region normalization keeps existing producers ahead of every phase-t
test('phase-four producer variants restore the primary orchestration fixture after each matrix branch', async () => {
const source = await import('node:fs/promises').then((fs) => fs.readFile(
new URL('../admin-test-env-acceptance.mjs', import.meta.url), 'utf8'))
assert.match(source, /const createdKeys = \['phase3Loading', 'phase3LoadingCompletedProducer', 'orchestrationFixtures', 'oceanBooking'\]/)
const start = source.indexOf('const createdKeys = [', source.indexOf('async runPhase4ProducerVariant'))
const end = source.indexOf(']', start)
const createdKeys = source.slice(start, end)
for (const key of [
'phase3Loading', 'phase3LoadingCompletedProducer', 'orchestrationFixtures', 'oceanBooking',
'phase3CustomsSupplier', 'phase3Customs', 'serviceCenterFlow', 'portSchedule',
'phase3OutboundDispatch', 'phase3CarrierScheduleQuery', 'phase4CarrierPickupReady',
]) assert.match(createdKeys, new RegExp(`'${key}'`))
})
test('contract covers dual audience, canonical 403, both event directions and diagnostics', () => {