test(overseas): close fulfillment HTTP gaps

This commit is contained in:
2026-09-09 03:18:59 +08:00
parent 47774ea8fe
commit a99a54493b
4 changed files with 27 additions and 6 deletions
@@ -11,7 +11,7 @@ function codeOf(response) { return response?.body?.code == null ? 'missing' : St
function success(response) { return response?.http === 200 && codeOf(response) === '200' }
function conflict(response) { return response?.http === 200 && codeOf(response) === 'A0409' }
function traced(response) { return Boolean(response?.requestId) && Boolean(response?.traceId) }
function key(context, label) { return `${context.marker}-four-documents-${label}`.slice(0, 128) }
function key(context, label) { return `${context.marker}-operational-documents-${label}`.slice(0, 128) }
function validDocument(document, type, completed) {
return Boolean(document?.id) && Boolean(document?.fileId) && document?.documentType === type
&& /^[0-9a-f]{64}$/i.test(String(document?.fileHash || ''))