This commit is contained in:
2026-09-20 19:57:47 +08:00
parent db07111e63
commit bd03ed5671
17 changed files with 210 additions and 97 deletions
@@ -238,7 +238,7 @@ test('direct deployments wait for health and automatically restore the previous
assert.match(directDeployScript, /return 1/)
})
test('one event bridge build deploys both regional instances in development and test', () => {
test('one event bridge build deploys both regional instances in every environment', () => {
assert.match(pipeline, /choice\(name: 'EVENT_BRIDGE_REGION', choices: \['BOTH', 'CN', 'OVERSEAS', 'SELECT'\]/)
assert.match(pipeline, /\['BOTH', 'SELECT'\]\.contains\(params\.EVENT_BRIDGE_REGION\)/)
assert.match(pipeline, /\? \['CN', 'OVERSEAS'\]/)
@@ -248,4 +248,5 @@ test('one event bridge build deploys both regional instances in development and
assert.match(pipeline, /imageTag\?\.endsWith\('-both'\)/)
assert.match(pipeline, /imageTag\.substring\(0, imageTag\.length\(\) - '-both'\.length\(\)\)/)
assert.match(pipeline, /env\.DEPLOY_BOTH_EVENT_BRIDGES = deployBothBridges \? 'true' : 'false'/)
assert.match(pipeline, /部署生产事件桥实例:/)
})