优化
This commit is contained in:
@@ -39,7 +39,8 @@ const expectedOnlineEdges = [
|
||||
'order-service->file-service',
|
||||
'order-service->firstleg-service',
|
||||
'order-service->iam-service',
|
||||
'order-service->warehouse-service'
|
||||
'order-service->warehouse-service',
|
||||
'warehouse-overseas-service->warehouse-service'
|
||||
]
|
||||
|
||||
const expectedBackgroundEdges = [
|
||||
@@ -95,11 +96,11 @@ async function discoverFeignEdges() {
|
||||
return clients.sort((left, right) => left.path.localeCompare(right.path))
|
||||
}
|
||||
|
||||
test('all 44 Feign clients have reviewed context, access and idempotency metadata', async () => {
|
||||
test('all 45 Feign clients have reviewed context, access and idempotency metadata', async () => {
|
||||
const reviewed = SYNCHRONOUS_CLIENTS.filter(client => client.transport === 'FEIGN')
|
||||
.map(({ path, source, target }) => ({ path, source, target }))
|
||||
.sort((left, right) => left.path.localeCompare(right.path))
|
||||
assert.equal(reviewed.length, 44)
|
||||
assert.equal(reviewed.length, 45)
|
||||
assert.deepEqual(await discoverFeignEdges(), reviewed)
|
||||
})
|
||||
|
||||
@@ -258,7 +259,9 @@ test('known user entries expose every longest simple REQUEST path over the two-h
|
||||
'lastleg-service->file-service->iam-service->warehouse-service'
|
||||
] },
|
||||
'warehouse-service': { hops: 0, paths: ['warehouse-service'] },
|
||||
'warehouse-overseas-service': { hops: 0, paths: ['warehouse-overseas-service'] }
|
||||
'warehouse-overseas-service': { hops: 1, paths: [
|
||||
'warehouse-overseas-service->warehouse-service'
|
||||
] }
|
||||
})
|
||||
for (const entry of USER_ENTRIES) {
|
||||
const result = summary[entry.service]
|
||||
|
||||
Reference in New Issue
Block a user