module-10/11/12 收尾: 补充 Nginx/Flask 切机验收脚本与说明(发布门控 RELEASE_SMOKE)
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import test from 'node:test'
|
||||
import assert from 'node:assert/strict'
|
||||
const ENABLED = process.env.RELEASE_SMOKE === '1'
|
||||
test('release_smoke', { skip: !ENABLED }, async () => {
|
||||
const base = process.env.AIIMAGE_LIVE_BASE || 'http://127.0.0.1:18080'
|
||||
const res = await fetch(`${base}/login`)
|
||||
assert.equal(res.status, 200)
|
||||
})
|
||||
Reference in New Issue
Block a user