Commit 1b5a6650 authored by Adrien Dorsaz's avatar Adrien Dorsaz

tests: fix test_acme_account_rollover

parent 781e507b
Pipeline #116 passed with stage
in 2 minutes and 12 seconds
...@@ -29,7 +29,7 @@ class TestACMEAccountDelete(unittest.TestCase): ...@@ -29,7 +29,7 @@ class TestACMEAccountDelete(unittest.TestCase):
def test_success_account_delete(self): def test_success_account_delete(self):
""" Test success account key delete """ """ Test success account key delete """
tools.acme_account_delete.main(["--account-key", self.accountkey.name, tools.acme_account_delete.main(["--account-key", self.accountkey.name,
"--acme-directory", ACMEDirectory]) "--acme-directory", ACMEDirectory])
self.assertLoggedInfo("Account key deleted !") self.assertLoggedInfo("Account key deleted !")
if __name__ == "__main__": if __name__ == "__main__":
......
...@@ -3,7 +3,7 @@ from subprocess import Popen, PIPE ...@@ -3,7 +3,7 @@ from subprocess import Popen, PIPE
from io import StringIO from io import StringIO
import acme_dns_tiny import acme_dns_tiny
from tests.config_factory import generate_acme_account_rollover_config from tests.config_factory import generate_acme_account_rollover_config
from tools.acme_account_delete import delete_account from tools.acme_account_delete import account_delete
import tools.acme_account_rollover import tools.acme_account_rollover
import logassert import logassert
...@@ -21,7 +21,7 @@ class TestACMEAccountRollover(unittest.TestCase): ...@@ -21,7 +21,7 @@ class TestACMEAccountRollover(unittest.TestCase):
@classmethod @classmethod
def tearDownClass(self): def tearDownClass(self):
# delete account key registration at end of tests # delete account key registration at end of tests
delete_account(self.configs["newaccountkey"].name, ACMEDirectory) account_delete(self.configs["newaccountkey"].name, ACMEDirectory)
# close temp files correctly # close temp files correctly
for tmpfile in self.configs: for tmpfile in self.configs:
self.configs[tmpfile].close() self.configs[tmpfile].close()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment