From 9f1b80f54a6e657db3c0c0125c89a30b23187699 Mon Sep 17 00:00:00 2001 From: Paul Date: Thu, 7 Oct 2021 20:46:43 +0200 Subject: [PATCH] eAB test cases --- tests/test_module.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tests/test_module.py b/tests/test_module.py index 25461fe3..afdc948e 100644 --- a/tests/test_module.py +++ b/tests/test_module.py @@ -224,8 +224,8 @@ def test_account_key_domain(self): self.assertIsInstance(result, ValueError) self.assertIn(self.account_key_error, result.args[0]) - def test_contact(self): - """ Make sure optional contact details can be set """ + def test_contact_update(self): + """ Make sure optional contact details can be updated """ # add a logging handler that captures the info log output log_output = StringIO() debug_handler = logging.StreamHandler(log_output) @@ -233,6 +233,14 @@ def test_contact(self): # call acme_tiny with new contact details old_stdout = sys.stdout sys.stdout = StringIO() + result = acme_tiny.main([ + "--account-key", self.KEYS['account_key'].name, + "--csr", self.KEYS['domain_csr'].name, + "--acme-dir", self.tempdir, + "--directory-url", self.DIR_URL, + "--check-port", self.check_port, + "--contact", "mailto:devteam2@gethttpsforfree.com", "mailto:daboss@gethttpsforfree.com", + ]) result = acme_tiny.main([ "--account-key", self.KEYS['account_key'].name, "--csr", self.KEYS['domain_csr'].name,