优化
This commit is contained in:
@@ -84,6 +84,8 @@ test('overseas compose is isolated from CN defaults and disables implicit schema
|
||||
assert.doesNotMatch(compose, /overseas-security-service|9307|OVERSEAS_SECURITY_DB|OVERSEAS_SECURITY_SERVICE_URL|OVERSEAS_SECURITY_EVENT_CONSUMER_URL/)
|
||||
assert.match(compose, /CN_EVENT_BRIDGE_URL: \$\{CN_EVENT_BRIDGE_TARGET_URL:-http:\/\/event-bridge-cn:9312\}/)
|
||||
assert.match(compose, /FIRSTLEG_EVENT_BRIDGE_URL: \$\{CN_EVENT_BRIDGE_TARGET_URL:-http:\/\/event-bridge-cn:9312\}/)
|
||||
assert.match(compose, /FILE_SERVICE_URL: \$\{FILE_SERVICE_URL\}/)
|
||||
assert.doesNotMatch(compose, /DOMESTIC_FILE_SERVICE_URL/)
|
||||
assert.doesNotMatch(compose, /CN_EVENT_BRIDGE_URL: \$\{CN_EVENT_BRIDGE_URL:/)
|
||||
assert.match(compose, /aliases: \[event-bridge-overseas\]/)
|
||||
})
|
||||
@@ -114,11 +116,15 @@ test('CN and overseas event bridges have explicit opposite-region consumers', as
|
||||
assert.match(firstleg, /LASTLEG_OUTBOX_RELAY_LEASE_SECONDS/)
|
||||
assert.match(lastleg, /CN_EVENT_BRIDGE_URL:\$\{FIRSTLEG_EVENT_BRIDGE_URL\}/)
|
||||
assert.match(lastleg, /WAREHOUSE_OVERSEAS_SERVICE_URL:http:\/\/warehouse-overseas-service:9305/)
|
||||
assert.match(lastleg, /domestic-file:\s*\n\s*url: \$\{FILE_SERVICE_URL\}/)
|
||||
assert.doesNotMatch(lastleg, /DOMESTIC_FILE_SERVICE_URL/)
|
||||
assert.match(gatewayOverseas, /LASTLEG_SECURITY_SERVICE_URL:http:\/\/lastleg-service:9303/)
|
||||
assert.match(overseas, /LASTLEG_SECURITY_EVENT_CONSUMER_URL:http:\/\/lastleg-service:9303\/internal\/lastleg\/security\/v1\/events/)
|
||||
assert.doesNotMatch(`${gatewayOverseas}\n${overseas}`, /overseas-security-service|9307|OVERSEAS_SECURITY_/)
|
||||
assert.match(scripts, /FIRSTLEG_EVENT_BRIDGE_URL/)
|
||||
assert.match(scripts, /LASTLEG_EVENT_BRIDGE_URL/)
|
||||
assert.match(scripts, /FILE_SERVICE_URL/)
|
||||
assert.doesNotMatch(scripts, /DOMESTIC_FILE_SERVICE_URL/)
|
||||
assert.match(scripts, /docker-compose\.overseas\.yml/)
|
||||
assert.match(scripts, /REGION_CODE=CN 或 REGION_CODE=OVERSEAS/)
|
||||
assert.match(scripts, /env_file_value REGION_CODE/)
|
||||
|
||||
Reference in New Issue
Block a user