发布当前测试版本至临时灰度环境 #11

Merged
admin merged 43 commits from release/test into main 2026-10-07 11:11:54 +08:00
Showing only changes of commit fce1356cb6 - Show all commits
+7
View File
@@ -59,6 +59,13 @@ test('order and lastleg 401s share one refresh and replay the unified access tok
assert.equal(calls.filter((call) => call.token === 'Bearer new-access').length, 2)
})
test('successful order submit with explicit null data is accepted', async () => {
const http = harness(async (config) => ({
config, status: 200, headers: {}, data: { code: '200', message: 'success', data: null },
}))
assert.equal(await http.apiRequest({ method: 'POST', url: '/merchant/v1/orders/first-leg/order-1/submit' }), null)
})
test('data-less security failures preserve diagnostics and malformed success is rejected', async () => {
for (const data of [{ code: 'A0403', message: 'Denied', traceId: 'trace-1', requestId: 'request-1' }, { code: '200', message: 'OK' }]) {
const http = harness(async (config) => ({ config, status: 200, headers: {}, data }))