This commit is contained in:
2026-09-29 18:47:37 +08:00
parent 2c60a29e0f
commit c2927ab9a6
291 changed files with 4008 additions and 6298 deletions
+4 -4
View File
@@ -9,17 +9,17 @@ test('Jenkins pipelines build finance as an independent service', async () => {
const controller = await read('Jenkinsfile')
const service = await read('Jenkinsfile.service')
assert.match(controller, /'gateway', 'gateway-overseas', 'auth', 'iam', 'firstleg', 'finance'/)
assert.match(controller, /'gateway', 'auth', 'iam', 'firstleg', 'finance'/)
assert.match(controller, /'finance': 'SERVICE_FINANCE'/)
assert.match(controller, /booleanParam\(name: 'SERVICE_FINANCE'/)
assert.match(service, /'gateway', 'gateway-overseas', 'auth', 'iam', 'firstleg', 'finance'/)
assert.match(service, /'gateway', 'auth', 'iam', 'firstleg', 'finance'/)
assert.match(service, /'finance': 'finance\/target\/finance-service-1\.0\.0-SNAPSHOT\.jar'/)
})
test('Compose and deploy script expose finance with fail-closed database config', async () => {
const compose = await read('deploy/docker-compose.yml')
const serviceMap = await read('deploy/service-map.yml')
const deployScript = await read('deploy/scripts/deploy-services.sh')
const deployScript = await read('deploy/scripts/deploy-built-service.sh')
assert.match(compose, /^ finance:\s*$/m)
assert.match(compose, /image: \$\{IMAGE_REPOSITORY\}\/finance:\$\{IMAGE_TAG\}/)
@@ -28,5 +28,5 @@ test('Compose and deploy script expose finance with fail-closed database config'
assert.doesNotMatch(compose, /FINANCE_WALLET_DEFAULT_CREDIT_LIMIT/)
assert.match(serviceMap, /^ finance:\s*$/m)
assert.match(serviceMap, /jar: finance\/target\/finance-service-1\.0\.0-SNAPSHOT\.jar/)
assert.match(deployScript, /FINANCE_DB_URL FINANCE_DB_USERNAME FINANCE_DB_PASSWORD/)
assert.match(deployScript, /for suffix in URL USERNAME PASSWORD/)
})