fix(ui): исключить подстановку моковых WAN в live расчёт
This commit is contained in:
1 parent
338335ddc0
commit
6e6558bde9
7 files changed
+35
-41
No files matched your search
@@ -21,3 +21,14 @@ test("missing and disabled probe leave observed values unknown while model stays
|
||||
assert.equal(result.homes[0].fullRoutes[0].je.observed?.probeId,null)
|
||||
}
|
||||
})
|
||||
|
||||
import {servers} from "./data"
|
||||
test("live topology never imports mock WAN or creates a synthetic uplink",()=>{
|
||||
const mock=servers.find(server=>server.type==="home-router")!
|
||||
for(const wanUplinks of [undefined,[]]){
|
||||
const inventory=rows.map((row,i)=>i===0?{...row,name:mock.name,host:mock.host,wanUplinks}:row)
|
||||
const result=buildLiveOptimizerData(inventory,[],DEFAULT_ROUTE_AI_OPTIMIZER_SETTINGS)
|
||||
assert.equal(result.homes[0].home.wans.length,0);assert.equal(result.homes[0].fullRoutes.length,0)
|
||||
assert.equal(result.homes[0].bestRoute,null)
|
||||
}
|
||||
})
|
||||
Reference in new issue
Block a user