优化
This commit is contained in:
@@ -46,6 +46,8 @@ test('overseas compose is isolated from CN defaults and disables implicit schema
|
||||
})
|
||||
|
||||
test('CN and overseas event bridges have explicit opposite-region consumers', async () => {
|
||||
const cnCompose = await read('deploy/docker-compose.yml')
|
||||
const overseasCompose = await read('deploy/docker-compose.overseas.yml')
|
||||
const cn = await read('config/nacos/cn/event-bridge-service.yml')
|
||||
const overseas = await read('config/nacos/overseas/event-bridge-service.yml')
|
||||
const firstleg = await read('config/nacos/cn/firstleg-service.yml')
|
||||
@@ -53,6 +55,8 @@ test('CN and overseas event bridges have explicit opposite-region consumers', as
|
||||
const scripts = `${await read('deploy/scripts/deploy-built-service.sh')}\n${await read('deploy/scripts/deploy-services.sh')}`
|
||||
assert.match(cn, /EVENT_CONSUMER_URL:http:\/\/firstleg:9202\/internal\/firstleg\/v1\/container-events/)
|
||||
assert.match(overseas, /EVENT_CONSUMER_URL:http:\/\/lastleg-service:9303\/internal\/lastleg\/events/)
|
||||
assert.match(cnCompose, /EVENT_CONSUMER_URL: \$\{FIRSTLEG_CONTAINER_EVENT_CONSUMER_URL:-http:\/\/firstleg:9202\/internal\/firstleg\/v1\/container-events\}/)
|
||||
assert.match(overseasCompose, /EVENT_CONSUMER_URL: \$\{EVENT_CONSUMER_URL:-http:\/\/lastleg-service:9303\/internal\/lastleg\/events\}/)
|
||||
assert.match(firstleg, /LASTLEG_EVENT_BRIDGE_URL/)
|
||||
assert.match(firstleg, /LASTLEG_OUTBOX_RELAY_LEASE_SECONDS/)
|
||||
assert.match(lastleg, /FIRSTLEG_EVENT_BRIDGE_URL/)
|
||||
|
||||
Reference in New Issue
Block a user