fix(healthcheck): 修复健康检查错误拦截全局发布的问题,移除 Process Gate 相关校验并新增测试
This commit is contained in:
1 parent
e579a7a90f
commit
ec4ed9b67d
2 files changed
+23
-92
No files matched your search
@@ -0,0 +1,21 @@
|
||||
"""
|
||||
backend/tests/test_process_gate_healthcheck_script.py
|
||||
|
||||
用途:验证部署健康检查不再把 Process Gate 模块能力作为全局发布门禁。
|
||||
依赖:scripts/healthcheck.sh。
|
||||
逻辑:脚本只负责 Compose 服务启动检查;Process Gate 能力由应用运行时按需校验。
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
def test_healthcheck_does_not_gate_global_deploy_on_process_gate():
|
||||
"""关键断言:基础部署检查不再执行 Process Gate 专项探针。"""
|
||||
script = Path('scripts/healthcheck.sh').read_text(encoding='utf-8')
|
||||
|
||||
assert 'Process Gate' not in script
|
||||
assert 'enqueue_process_gate_healthcheck_probe' not in script
|
||||
assert 'shipping_process_gate' not in script
|
||||
assert 'required_services=(hxops-backend hxops-shipping-worker)' in script
|
||||
Reference in new issue
Block a user