Commit f5038808 authored by Adrien Dorsaz's avatar Adrien Dorsaz

add back workaround for account deactivation test.

This workaround this issue: when starting this test after the two others, ACME staging server seems to have again in cache some TXT record and return error to get certificate.
As this test just use acme-dns-tiny to register the account key, we just check the registration is working.
parent 3cbd54ab
Pipeline #176 passed with stage
in 17 minutes and 26 seconds
......@@ -11,7 +11,12 @@ class TestACMEAccountDeactivate(unittest.TestCase):
@classmethod
def setUpClass(self):
self.configs = generate_acme_account_deactivate_config()
acme_dns_tiny.main([self.configs['config']])
try:
acme_dns_tiny.main([self.configs['config']])
except ValueError as err:
if str(err).startswith("Error register"):
raise ValueError("Fail test as account has not been registered correctly: {0}".format(err))
super(TestACMEAccountDeactivate, self).setUpClass()
# To clean ACME staging server and close correctly temporary files
......
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