This commit is contained in:
2026-08-25 16:40:50 +08:00
parent 87c5e18ca6
commit eb1a8895ac
14 changed files with 170 additions and 42 deletions
@@ -130,6 +130,19 @@ test('every reviewed synchronous client has a complete and exclusive executable
}
})
test('IAM customer dimension Feign is reachable only from the background relay', async () => {
const references = []
for (const file of await javaFiles(path.join(root, 'iam', 'src', 'main', 'java'))) {
const source = await readFile(file, 'utf8')
if (source.includes('CustomerDimensionRuleClient')) {
references.push(path.relative(root, file).replaceAll('\\', '/'))
}
}
assert.deepEqual(references.sort(), [
'iam/src/main/java/com/baiyue/iam/client/CustomerDimensionRuleClient.java',
'iam/src/main/java/com/baiyue/iam/service/CustomerDimensionInitializationRelay.java'
])
})
test('all four Lastleg RestClient gateways use explicit bounded transports', async () => {
const clients = new Map([
@@ -242,4 +255,3 @@ test('shared Feign timeout defaults and long-running export overrides do not dri
const fileConfig = await readFile(path.join(root, 'file', 'src', 'main', 'resources', 'application.yml'), 'utf8')
assert.equal((fileConfig.match(/read-timeout:\s*15000/g) ?? []).length, 5)
})