This commit is contained in:
2026-08-14 19:09:51 +08:00
parent 10d3390bb1
commit 7d4256dbd2
2 changed files with 17 additions and 1 deletions
@@ -28,3 +28,19 @@ test('test-environment full acceptance registers container overview module', ()
assert.fail('default acceptance module phase3-container-overview is not registered yet')
}
})
test('test-environment full acceptance executes warehouse-scoped booking channel isolation', () => {
const loadingModulePath = resolve(scriptsDir, 'admin-test-env-modules', 'phase3-container-loading.mjs')
const fixturePath = resolve(scriptsDir, 'admin-test-env-modules', 'ocean-booking-fixture.mjs')
assert.match(adminAcceptance, /CONFIGURED_MODULES\s*=\s*\[[^\]]*'phase3-container-loading'/s)
assert.ok(existsSync(loadingModulePath), 'phase3-container-loading module is missing')
assert.ok(existsSync(fixturePath), 'shared ocean booking fixture is missing')
const loadingModule = readFileSync(loadingModulePath, 'utf8')
const fixture = readFileSync(fixturePath, 'utf8')
assert.match(loadingModule, /publishPlatformLogisticsChannels\(context, warehouseId, MODULE\)/)
assert.match(loadingModule, /selectPlatformChannelIsolationPair/)
assert.match(loadingModule, /BLOCKED_FIXTURE/)
assert.match(fixture, /\/api\/platform\/v1\/ocean-bookings\/channels/)
assert.match(fixture, /createdResources\.platformLogisticsChannels/)
})