fix(acceptance): target deployed TEST Firstleg container for read-only audits
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user