fix(scripts): use domestic container detail route
This commit is contained in:
@@ -8,6 +8,11 @@ import { run } from './phase4-cross-region-events.mjs'
|
||||
const source = readFileSync(new URL('./phase4-cross-region-events.mjs', import.meta.url), 'utf8')
|
||||
const system = readFileSync(new URL('./system.mjs', import.meta.url), 'utf8')
|
||||
|
||||
test('cross-region denial probes the current domestic container detail route', () => {
|
||||
assert.ok(source.includes('/api/platform/v1/containers/domestic/${encodeURIComponent(id(phase3.containerBookingId))}'))
|
||||
assert.ok(!source.includes('/api/platform/v1/containers/${encodeURIComponent(id(phase3.containerBookingId))}'))
|
||||
})
|
||||
|
||||
function response(path, data, http = 200, code = '200') {
|
||||
return { method: 'GET', path, http, body: { code, data }, requestId: 'request-1', traceId: 'trace-1' }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user