Register Xiaoxin education node host navigation
This commit is contained in:
parent
18c389b885
commit
69af693033
4 changed files with 84 additions and 2 deletions
|
|
@ -54,6 +54,17 @@ class LighthouseNavigatorTests(unittest.TestCase):
|
|||
)
|
||||
self.assertFalse(route["authority_granted"])
|
||||
|
||||
def test_xiaoxin_education_server_uses_registered_node(self):
|
||||
route = compile_route(self.registry, self.host_map, "codex", "继续部署小新教育服务器")
|
||||
self.assertEqual(route["decision"], "ALLOW_NAVIGATION")
|
||||
self.assertEqual(
|
||||
route["intent"]["id"],
|
||||
"INTENT-XX-EDUCATION-SERVER-OPERATION-001",
|
||||
)
|
||||
self.assertEqual(route["target"]["id"], "XX-GZ-001")
|
||||
self.assertEqual(route["intent"]["transport"], "LOCAL_DEDICATED_KEY_SSH")
|
||||
self.assertFalse(route["authority_granted"])
|
||||
|
||||
def test_hololake_architecture_uses_repo014_online_main(self):
|
||||
route = compile_route(
|
||||
self.registry,
|
||||
|
|
|
|||
Loading…
Reference in a new issue