test(order): verify live import template directories without business writes

This commit is contained in:
2026-10-03 15:53:55 +08:00
parent bf8a985f22
commit 18935f1379
6 changed files with 279 additions and 5 deletions
+2 -2
View File
@@ -23,8 +23,8 @@ export function executionOptions(args, execArgs, env) {
requireFact(Boolean(env[key]), `Missing ${key}`)
const base = new URL(env.CHONGCHONG_MERCHANT_API_BASE_URL)
requireFact(['http:', 'https:'].includes(base.protocol) && !base.username && !base.password
&& base.pathname.replace(/\/$/, '') === '/api', 'Expected the configured TEST API base')
return { execute: true, runId: args[2].slice(9), base: base.href.replace(/\/$/, '') }
&& base.pathname === '/' && !base.search && !base.hash, 'Expected the configured TEST Gateway origin')
return { execute: true, runId: args[2].slice(9), base: base.origin + '/api' }
}
export function validatePage(page, number, size) {