fix(acceptance): target deployed TEST Firstleg container for read-only audits
This commit is contained in:
@@ -63,8 +63,8 @@ test('Firstleg receiver evidence stays on its exact TEST container and rejects w
|
||||
const sql = buildCompletionEvidenceSql(completion())
|
||||
const decode = value => Buffer.from([...value.matchAll(/'([A-Za-z0-9+/=]{40,})'/g)].map(m => m[1]).join(''), 'base64').toString('utf8')
|
||||
const python = decode(decode(buildEvidenceRemoteScript('firstleg', sql, 'java-test-agent')))
|
||||
assert.match(python, /docker','inspect','firstleg-test-firstleg'/)
|
||||
assert.match(python, /get\('Name'\)!='\/firstleg-test-firstleg'/)
|
||||
assert.match(python, /docker','inspect','firstleg-test-business'/)
|
||||
assert.match(python, /get\('Name'\)!='\/firstleg-test-business'/)
|
||||
assert.match(python, /com\.docker\.compose\.project'\)!='firstleg-test'/)
|
||||
assert.match(python, /e\['FIRSTLEG_DB_URL'\]/)
|
||||
assert.match(python, /e\['FIRSTLEG_DB_USERNAME'\]/)
|
||||
|
||||
Reference in New Issue
Block a user