## Summary #59
@@ -133,7 +133,8 @@ class DjangoConfigSourceTests(TestCase):
|
|||||||
)
|
)
|
||||||
HostConfig.objects.create(host="web-01", address="web-01.example.test")
|
HostConfig.objects.create(host="web-01", address="web-01.example.test")
|
||||||
|
|
||||||
cfg = DjangoConfigSource().effective_config_for_host("web-01")
|
with override_settings(POBSYNC_HOME=str(Path(tmp) / "home")):
|
||||||
|
cfg = DjangoConfigSource().effective_config_for_host("web-01")
|
||||||
|
|
||||||
self.assertIn(f"-oIdentityFile={identity_file}", cfg["ssh"]["options"])
|
self.assertIn(f"-oIdentityFile={identity_file}", cfg["ssh"]["options"])
|
||||||
self.assertEqual(cfg["ssh_credential"]["storage"], "filesystem")
|
self.assertEqual(cfg["ssh_credential"]["storage"], "filesystem")
|
||||||
|
|||||||
Reference in New Issue
Block a user