Expand TUI and package recovery planning

This commit is contained in:
Luna 2026-07-09 05:51:59 -07:00
parent cab60cd633
commit 51d52b5229
No known key found for this signature in database
10 changed files with 511 additions and 41 deletions

View file

@ -103,6 +103,13 @@ class TestRespondPlan(unittest.TestCase):
self.assertIn(["enodia-sentinel", "fim-check", "--packages"], commands)
self.assertIn(["enodia-sentinel", "pkgdb-verify"], commands)
self.assertIn(["pacman", "-Qo", "/usr/bin/ssh"], commands)
self.assertIn(["pacman", "-S", "--overwrite", "*", "<package>"], commands)
self.assertIn(["enodia-sentinel", "fim-update"], commands)
restore = next(a for a in plan["actions"]
if a["title"].startswith("Reinstall owner"))
self.assertEqual(restore["targets"]["path"], "/usr/bin/ssh")
self.assertEqual(restore["targets"]["package"], "<package>")
self.assertTrue(restore["requires_review"])
self.assertIn(["enodia-sentinel", "watchdog", "--url",
"https://100.64.0.2:8787", "--token", "<token>",
"--insecure-tls"], commands)