优化
This commit is contained in:
@@ -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/)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user