fix(scripts): use domestic container detail route

This commit is contained in:
2026-09-08 23:06:07 +08:00
parent f7f4c80806
commit 00990fedcc
6 changed files with 32 additions and 5 deletions
@@ -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' }
}