fix: harden blue-green routing and gateway migration

This commit is contained in:
2026-09-20 21:49:30 +08:00
parent b50d59a058
commit b4824ddf71
2 changed files with 18 additions and 10 deletions
@@ -43,6 +43,8 @@ test('gateway cutover is atomic and restores nginx config on validation failure'
const script = await read('deploy/scripts/deploy-blue-green-service.sh')
assert.match(script, /api-cn\.buggoglobal\.com\.conf/)
assert.match(script, /api-global\.buggoglobal\.com\.conf/)
assert.match(script, /尚未完成首次蓝绿迁移,拒绝切换 Gateway/)
assert.match(script, /frontend-\$frontend_service\.active/)
assert.match(script, /尚未使用稳定上游 \$required_alias,拒绝切换 Gateway/)
assert.match(script, /reload_frontend_proxies/)
assert.match(script, /cp -f "\$config" "\$backup"/)