优化
This commit is contained in:
@@ -86,7 +86,7 @@ test('fixed resource runner excludes lifecycle handlers without marking them pas
|
||||
test('both request entrypoints reject customer creation before network access', async () => {
|
||||
const runner = new AcceptanceRun({ environment: 'test' })
|
||||
for (const method of ['request', 'requestWithBody']) {
|
||||
for (const path of ['/api/platform/v1/iam/tenants', '/api/platform/v1/iam/tenants/123/archive', '/api/platform/v1/iam/tenants/123/submit-review']) {
|
||||
for (const path of ['/api/auth/register', '/api/auth/register/?source=test', '/api/platform/v1/iam/tenants', '/api/platform/v1/iam/tenants/123/archive', '/api/platform/v1/iam/tenants/123/submit-review']) {
|
||||
await assert.rejects(runner[method]('POST', path, {}), /禁止创建、归档客户/)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user