This commit is contained in:
2026-09-30 15:16:39 +08:00
parent 0919a61661
commit 22584e7fde
15 changed files with 994 additions and 45 deletions
@@ -6,6 +6,15 @@ import { AcceptanceRun, parseArguments, validateExecutionOptions } from './admin
const source = readFileSync(resolve('scripts/admin-test-env-acceptance.mjs'), 'utf8')
test('F40 optional chain always creates its customer and rejects absent domestic PDA credentials', () => {
const options = parseArguments(['--modules', 'phase5-root-fulfillment',
'--gateway', 'http://localhost:9000', '--username', 'contract-user', '--password', 'contract-password',
'--merchant-username', 'prior-client', '--merchant-password', 'prior-password'])
assert.deepEqual(options.modules, ['merchant-qualification-fixture', 'phase5-root-fulfillment'])
options.pdaUsername = ''; options.pdaPassword = ''
assert.throws(() => validateExecutionOptions(options), /PDA/)
})
test('phase-four HTTP acceptance modules are registered in the Admin acceptance entry', () => {
for (const module of [
'phase4-overseas-warehouse',