test(phase3): align full acceptance fixtures
This commit is contained in:
@@ -103,7 +103,13 @@ export async function run(context) {
|
||||
const clearance = await context.request('GET', `${CONTAINERS}/${encodeURIComponent(containerId)}/clearance`)
|
||||
context.apiSuccess(MODULE, '查询目的港清关资料', clearance, `containerBookingId=${containerId}`, OPTIONS)
|
||||
const customs = await context.request('GET', `/api/platform/v1/first-leg/loading-lists/${encodeURIComponent(planId)}/customs?warehouseId=${encodeURIComponent(warehouseId)}`)
|
||||
context.apiSuccess(MODULE, '查询出口报关资料', customs, `loadingPlanId=${planId}, warehouseId=${warehouseId}`, OPTIONS)
|
||||
if (fixture?.finalStatus === 'LOADED') {
|
||||
context.apiSuccess(MODULE, '查询出口报关资料', customs, `loadingPlanId=${planId}, warehouseId=${warehouseId}`, OPTIONS)
|
||||
} else {
|
||||
context.assert(MODULE, '运行中计划尚未生成完成装柜清单,出口报关资料拒绝读取', customs,
|
||||
customs.http === 200 && String(customs.body?.code) === 'A0409',
|
||||
`loadingPlanId=${planId}, status=${fixture?.finalStatus || 'missing'}`, OPTIONS)
|
||||
}
|
||||
|
||||
context.addStep(MODULE, '异常标记/取消、单证上传和完成锁定保持写入阻断', null, true,
|
||||
'默认全量脚本只读;写场景需显式独立授权和一次性测试柜次', OPTIONS)
|
||||
|
||||
Reference in New Issue
Block a user