feat(ops): 添加发布 smoke test
- 新增只读发布 smoke runner 和 dry-run 测试\n- 将生产部署 workflow 从单点版本检查升级为 smoke test\n- 补充 Docker web runtime 脚本复制、package script 和部署文档\n\nCo-Authored-By: GPT-5 Codex <codex@openai.com>
This commit is contained in:
@@ -82,4 +82,19 @@ describe('production ops scripts', () => {
|
||||
assert.match(result.stdout, /ftb_pm_server_data/);
|
||||
assert.match(result.stdout, /tar -czf/);
|
||||
});
|
||||
|
||||
it('prints read-only release smoke checks in dry-run mode', () => {
|
||||
const result = runScript('scripts/smoke-test-release.mjs', [
|
||||
'--dry-run',
|
||||
'--base-url',
|
||||
'http://localhost',
|
||||
]);
|
||||
|
||||
assert.equal(result.status, 0, result.stderr);
|
||||
assert.match(result.stdout, /\/api\/v1\/health\/version/);
|
||||
assert.match(result.stdout, /\/products/);
|
||||
assert.match(result.stdout, /\/api\/v1\/products/);
|
||||
assert.match(result.stdout, /\/api\/v1\/v2\.2\/requirements\?productId=__smoke__/);
|
||||
assert.match(result.stdout, /\/api\/v1\/config\/ai/);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user