Merge remote-tracking branch 'origin/test' into dev

This commit is contained in:
2026-09-09 18:31:14 +08:00
18 changed files with 143 additions and 28 deletions
@@ -130,6 +130,26 @@ test('development publishes every service on loopback without changing test defa
assert.doesNotMatch(directDeployScript, /gateway\|gateway-overseas\) (?:export )?PUBLISHED_BIND_ADDRESS=0\.0\.0\.0/)
})
test('Firstleg deployment passes terminal drayage SMTP settings into the container', () => {
const firstlegService = serviceCompose.slice(
serviceCompose.indexOf(' firstleg:\n'),
serviceCompose.indexOf(' finance:\n')
)
for (const key of [
'TERMINAL_DRAYAGE_MAIL_ENABLED',
'TERMINAL_DRAYAGE_MAIL_HOST',
'TERMINAL_DRAYAGE_MAIL_PORT',
'TERMINAL_DRAYAGE_MAIL_USERNAME',
'TERMINAL_DRAYAGE_MAIL_PASSWORD',
'TERMINAL_DRAYAGE_MAIL_SSL',
'TERMINAL_DRAYAGE_MAIL_SCAN_DELAY'
]) {
assert.match(firstlegService, new RegExp(`^ ${key}: ` + '\\$\\{' + key, 'm'))
}
assert.match(directDeployScript, /TERMINAL_DRAYAGE_MAIL_ENABLED/)
assert.match(directDeployScript, /TERMINAL_DRAYAGE_MAIL_HOST TERMINAL_DRAYAGE_MAIL_PORT TERMINAL_DRAYAGE_MAIL_USERNAME TERMINAL_DRAYAGE_MAIL_PASSWORD/)
})
test('parallel image publications isolate registry credentials per Jenkins job', () => {
const imageStage = pipeline.slice(
pipeline.indexOf("stage('构建并发布单服务镜像')"),