Set up mail client DNS aliases for managed domains
This commit is contained in:
1 parent
c0dd02e7a6
commit
d81e716ff5
13 files changed
+185
-7
No files matched your search
@@ -266,6 +266,23 @@ class InstallerParametersTests(unittest.TestCase):
|
||||
)
|
||||
self.assertIn("192.0.2.41", plan.description())
|
||||
self.assertNotIn("/root/node-install-key", plan.description())
|
||||
with patch(
|
||||
"deploy.panel_installer.engine.platform_settings",
|
||||
return_value=(None, True),
|
||||
):
|
||||
installer = Installer(plan, "test-only", Mock())
|
||||
installer.state = dict.fromkeys(
|
||||
("secret_key", "database_password", "broker_password"),
|
||||
"test-only",
|
||||
)
|
||||
env = dict(
|
||||
line.split("=", 1)
|
||||
for line in installer.environment().splitlines()
|
||||
)
|
||||
self.assertEqual(env["COULOBRE_MAIL_IMAP_HOST"], "mx.example.net")
|
||||
self.assertEqual(
|
||||
env["COULOBRE_MAIL_SUBMISSION_HOST"], "mx.example.net"
|
||||
)
|
||||
|
||||
def test_password_file_must_be_private_and_regular(self):
|
||||
with tempfile.TemporaryDirectory() as folder:
|
||||
|
||||
Reference in new issue
Block a user