mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-12-06 01:40:19 +00:00
fix(stalwart): fix TOr and testing properly, local pass
This commit is contained in:
9 files changed
+164
-161
No files matched your search
@@ -2,6 +2,7 @@
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
from cli.administration.recover import paths, recoverers
|
||||
@@ -182,7 +183,7 @@ class RegistryTest(unittest.TestCase):
|
||||
|
||||
def test_command_starts_with_interpreter_and_script(self):
|
||||
cmd = recoverers.RECOVERERS["secrets"].command("/gen/files")
|
||||
self.assertEqual(cmd[0], "python3")
|
||||
self.assertEqual(cmd[0], sys.executable)
|
||||
self.assertTrue(
|
||||
cmd[1].endswith("svc-bkp-secrets-2-local/files/python/recover.py")
|
||||
)
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
from cli.administration.recover import remote
|
||||
@@ -43,7 +44,7 @@ class CommandsTest(unittest.TestCase):
|
||||
self.assertEqual(
|
||||
steps[0], ["rsync", "-a", "host:/backup/usb.img", remote.IMAGE]
|
||||
)
|
||||
self.assertEqual(steps[1][0], "python3")
|
||||
self.assertEqual(steps[1][0], sys.executable)
|
||||
self.assertIn(remote.IMAGE, steps[1])
|
||||
self.assertIn(remote.LOCAL_ROOT, steps[1])
|
||||
self.assertIn("--passphrase-stdin", steps[1])
|
||||
|
||||
Reference in new issue
Block a user