Expand TUI and package recovery planning
This commit is contained in:
parent
cab60cd633
commit
51d52b5229
10 changed files with 511 additions and 41 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue