test(loading): scope non-ISO HTTP verification without removal probes

This commit is contained in:
2026-10-23 11:19:36 +08:00
parent 9c19980736
commit ecc76d4f91
4 changed files with 24 additions and 2 deletions
+6
View File
@@ -459,6 +459,7 @@ export function parseArguments(argv) {
waitSplitRandomValue: Number(values.get('wait-split-random-value') || values.get('wait-split-sequence') || 1),
prepareDropshipManualCount: values.get('prepare-dropship-manual-count') === 'true',
prepareMeasurementReview: values.get('prepare-measurement-review') === 'true',
verifyNonIsoContainer: values.get('verify-non-iso-container') === 'true',
verifyPalletLocationGuide: values.has('verify-pallet-location-guide'),
routeMode: values.get('route-mode') || 'fixed',
quiet: values.get('quiet') === 'true',
@@ -495,6 +496,11 @@ export function validateExecutionOptions(options) {
if (options.environment && !['test', 'gray'].includes(options.environment)) throw new Error('Only test or explicit gray acceptance is supported')
if (options.f40TaxMode && !['BUY_DECLARATION', 'TAX_REFUND'].includes(options.f40TaxMode)) throw new Error('f40-tax-mode 必须为 BUY_DECLARATION 或 TAX_REFUND')
if (options.prepareDomesticPdaH5 && (options.requestedModules?.length !== 1 || options.requestedModules[0] !== 'phase5-root-fulfillment')) throw new Error('prepare-domestic-pda-h5 仅允许单独指定 phase5-root-fulfillment')
if (options.verifyNonIsoContainer && (options.environment !== 'test'
|| options.requestedModules?.length !== 1 || options.requestedModules[0] !== 'phase3-container-loading'
|| options.verifyPalletLocationGuide)) {
throw new Error('verify-non-iso-container 仅允许 TEST 单独柜号链,不能混用库位块删除探针')
}
if (options.prepareMeasurementReview && (options.environment !== 'test'
|| options.requestedModules?.length !== 1 || options.requestedModules[0] !== 'inbound-measurement'
|| options.waitSplitCount !== 1 || options.prepareDomesticPdaH5 || options.prepareDropshipManualCount)) {