test: align customer archive acceptance status
This commit is contained in:
@@ -518,8 +518,8 @@ export class AcceptanceRun {
|
||||
const archiveResponse = await this.request('POST', `${detailPath}/archive`)
|
||||
const archived = this.apiSuccess(module, '归档测试客户', archiveResponse, `tenantId=${tenantId}`, archiveOptions)
|
||||
if (archived) {
|
||||
this.assert(module, '测试客户归档后处于停用状态', archiveResponse,
|
||||
archived.status === 'DISABLED', `status=${archived.status ?? 'missing'}`, archiveOptions)
|
||||
this.assert(module, '测试客户归档后处于 ARCHIVED 状态', archiveResponse,
|
||||
archived.status === 'ARCHIVED', `status=${archived.status ?? 'missing'}`, archiveOptions)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -92,7 +92,7 @@ export async function run(context) {
|
||||
if (ownedCustomer) {
|
||||
const archiveResponse = await context.request('POST', `/api/platform/v1/iam/tenants/${encodeURIComponent(tenantId)}/archive`)
|
||||
const archived = context.apiSuccess(MODULE, '费用配置契约不可用时清理隔离客户', archiveResponse, `tenantId=${tenantId}`, OPTIONS)
|
||||
context.assert(MODULE, '隔离客户清理后停用', archiveResponse, archived?.status === 'DISABLED', `status=${archived?.status ?? 'missing'}`, OPTIONS)
|
||||
context.assert(MODULE, '隔离客户清理后归档', archiveResponse, archived?.status === 'ARCHIVED', `status=${archived?.status ?? 'missing'}`, OPTIONS)
|
||||
}
|
||||
return
|
||||
}
|
||||
@@ -204,7 +204,7 @@ export async function run(context) {
|
||||
if (ownedCustomer) {
|
||||
const archiveResponse = await context.request('POST', `/api/platform/v1/iam/tenants/${encodeURIComponent(tenantId)}/archive`)
|
||||
const archived = context.apiSuccess(MODULE, '清理费用隔离客户', archiveResponse, `tenantId=${tenantId}`, OPTIONS)
|
||||
context.assert(MODULE, '费用隔离客户清理后停用', archiveResponse, archived?.status === 'DISABLED', `status=${archived?.status ?? 'missing'}`, OPTIONS)
|
||||
context.assert(MODULE, '费用隔离客户清理后归档', archiveResponse, archived?.status === 'ARCHIVED', `status=${archived?.status ?? 'missing'}`, OPTIONS)
|
||||
}
|
||||
const steps = context.steps.slice(start)
|
||||
context.scenarios.push({ name: SCENARIO, module: MODULE, success: steps.every((step) => step.passed), deploymentBlocked: steps.some((step) => step.deploymentBlocker), passed: steps.filter((step) => step.passed).length, failed: steps.filter((step) => !step.passed).length })
|
||||
|
||||
Reference in New Issue
Block a user