fix(routing): follow current REPO-014 architecture main
This commit is contained in:
parent
fe24d8e2a9
commit
885687e033
9 changed files with 132 additions and 6 deletions
|
|
@ -54,6 +54,25 @@ class LighthouseNavigatorTests(unittest.TestCase):
|
|||
)
|
||||
self.assertFalse(route["authority_granted"])
|
||||
|
||||
def test_hololake_architecture_uses_repo014_online_main(self):
|
||||
route = compile_route(
|
||||
self.registry,
|
||||
self.host_map,
|
||||
"codex",
|
||||
"恢复表弟教育行业开发的 HoloLake系统架构规划",
|
||||
)
|
||||
self.assertEqual(route["decision"], "ALLOW_NAVIGATION")
|
||||
self.assertEqual(
|
||||
route["intent"]["id"],
|
||||
"INTENT-HOLOLAKE-ARCHITECTURE-RESTORE-001",
|
||||
)
|
||||
self.assertEqual(route["target"]["id"], "REPO-014")
|
||||
self.assertEqual(
|
||||
route["target"]["truth_policy"],
|
||||
"ONLINE_MAIN_FIRST_LOCAL_MIRROR_ONLY_WHEN_EXACT_FULL_SHA_MATCHES",
|
||||
)
|
||||
self.assertFalse(route["authority_granted"])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
|
|
|||
Loading…
Reference in a new issue