This commit is contained in:
2026-09-15 14:30:47 +08:00
parent a474ca4d93
commit d1a00b8e01
18 changed files with 141 additions and 30 deletions
@@ -155,6 +155,18 @@ test('domestic event bridge SQL converges legacy tenant columns to the customer
assert.match(incremental, /bridge_outbox_customer_column = 0 AND @bridge_outbox_tenant_column = 1/)
})
test('both overseas PDF consumers explicitly connect to the existing CN Print service', async () => {
const compose = await read('deploy/docker-compose.overseas.yml')
for (const service of ['lastleg-service', 'warehouse-overseas-service']) {
const block = compose.match(new RegExp(`^ ${service}:\\n([\\s\\S]*?)(?=^ [a-z][\\w-]*:|^networks:)`, 'm'))?.[1]
assert.ok(block, `${service} must have a deployment definition`)
assert.match(block, /PRINT_SERVICE_URL: \$\{PRINT_SERVICE_URL:-http:\/\/print:9207\}/,
`${service} cannot discover the CN Print service from its overseas Nacos namespace`)
const config = await read(`${service}/src/main/resources/application.yml`)
assert.match(config, /print:\s*\n\s+url: \$\{PRINT_SERVICE_URL:\}/)
}
})
test('domestic unified SQL creates the overseas hold version before queuing its comment', async () => {
const incremental = await read('deploy/sql/头程数据库统一增量-MySQL8.sql')
const addColumn = incremental.indexOf('CALL add_inbound_overseas_hold_version();')