feat(ci): deploy both event bridge regions by default
This commit is contained in:
@@ -155,3 +155,12 @@ test('direct deployments wait for health and automatically restore the previous
|
||||
assert.match(directDeployScript, /自动回滚失败/)
|
||||
assert.match(directDeployScript, /return 1/)
|
||||
})
|
||||
|
||||
test('one event bridge build deploys both regional instances in development and test', () => {
|
||||
assert.match(pipeline, /choice\(name: 'EVENT_BRIDGE_REGION', choices: \['BOTH', 'CN', 'OVERSEAS'\]/)
|
||||
assert.match(pipeline, /\['BOTH', 'SELECT'\]\.contains\(params\.EVENT_BRIDGE_REGION\)/)
|
||||
assert.match(pipeline, /\? \['CN', 'OVERSEAS'\]/)
|
||||
assert.match(pipeline, /bridgeRegions\.each \{ bridgeRegion ->/)
|
||||
assert.match(pipeline, /EVENT_BRIDGE_REGION_OVERRIDE=\$\{bridgeRegion\}/)
|
||||
assert.match(pipeline, /部署事件桥实例:/)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user