优化
This commit is contained in:
@@ -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)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user