test: complete phase3 phase4 acceptance coverage
This commit is contained in:
@@ -10,6 +10,9 @@ test('phase-four HTTP acceptance modules are registered in the Admin acceptance
|
||||
for (const module of [
|
||||
'phase4-overseas-warehouse',
|
||||
'phase4-overseas-pda',
|
||||
'phase4-overseas-inbound-operations',
|
||||
'phase4-overseas-client-services',
|
||||
'phase4-overseas-dispatch',
|
||||
'phase4-cross-region-events',
|
||||
'phase4-overseas-business',
|
||||
'phase4-overseas-master-data',
|
||||
@@ -19,6 +22,18 @@ test('phase-four HTTP acceptance modules are registered in the Admin acceptance
|
||||
}
|
||||
})
|
||||
|
||||
test('overseas inbound commands, client services and dispatch follow completed PDA receiving', () => {
|
||||
for (const consumer of ['phase4-overseas-inbound-operations', 'phase4-overseas-client-services',
|
||||
'phase4-overseas-dispatch']) {
|
||||
const modules = parseArguments(['--modules', consumer]).modules
|
||||
for (const prerequisite of ['merchant-qualification-fixture', 'phase3-loading',
|
||||
'phase3-loading-finalize', 'phase4-overseas-pda']) {
|
||||
assert.ok(modules.indexOf(prerequisite) >= 0
|
||||
&& modules.indexOf(prerequisite) < modules.indexOf(consumer))
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
test('entry accepts a separate overseas Gateway without exposing token state', () => {
|
||||
const options = parseArguments([
|
||||
'--gateway', 'http://localhost:9000/',
|
||||
|
||||
Reference in New Issue
Block a user