fix(acceptance): target deployed TEST Firstleg container for read-only audits

This commit is contained in:
2026-10-03 23:39:06 +08:00
parent 1f7ddf7bc9
commit 19e9913f30
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -131,7 +131,7 @@ const base64Expression = value => '['+Buffer.from(value).toString('base64').matc
export function buildEvidenceRemoteScript(service, sql, agent) {
assertReadOnlySql(sql)
if (!['order','firstleg','lastleg'].includes(service) || !/^[A-Za-z0-9_.-]{1,128}$/.test(agent)) throw Error('Invalid TEST evidence target')
const prefix=service.toUpperCase(),container=`firstleg-test-${service}`
const prefix=service.toUpperCase(),container=service==='firstleg'?'firstleg-test-business':`firstleg-test-${service}`
const python = `import json,os,subprocess,urllib.parse,base64,re
try:
c=json.loads(subprocess.check_output(['docker','inspect','${container}'],text=True,stderr=subprocess.DEVNULL))[0]