22 lines
825 B
Python
22 lines
825 B
Python
"""
|
|
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
|