优化
This commit is contained in:
@@ -75,6 +75,16 @@ async function createFixtureCustomer(context) {
|
||||
}
|
||||
|
||||
export async function run(context) {
|
||||
if (context.options?.fixedCustomerId) {
|
||||
const tenantId = context.context.merchantQualificationFixture?.tenantId
|
||||
if (!tenantId) throw new Error('固定客户前置未完成,禁止创建海外仓费用客户')
|
||||
const response = await context.request('GET', `/api/platform/v1/iam/tenants/${encodeURIComponent(tenantId)}/overseas-storage-fees`)
|
||||
const view = context.apiSuccess(MODULE, '读取固定客户海外仓费用配置', response)
|
||||
context.assert(MODULE, '费用配置属于固定客户', response, id(view?.customerId) === id(tenantId), `customerId=${id(view?.customerId)}`, OPTIONS)
|
||||
context.addCoverageGap(MODULE, SCENARIO, '固定客户模式排除费用规则破坏性生命周期',
|
||||
'只读现有费用配置,不覆盖共享客户费率或归档客户', 'not-implemented', {blocking:false})
|
||||
return
|
||||
}
|
||||
const start = context.steps.length
|
||||
// Always create a module-owned customer. The customers module may archive its
|
||||
// own fixture, and this lifecycle must never depend on that or on history.
|
||||
|
||||
Reference in New Issue
Block a user