This commit is contained in:
2026-10-22 11:56:47 +08:00
parent 5d71af1ac9
commit de96e47d74
71 changed files with 1296 additions and 332 deletions
@@ -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, {}), /禁止创建、归档客户/)
}
}