Commit d12f6aa9 authored by Adrien Dorsaz's avatar Adrien Dorsaz

remove all tests workaround: timing workaround is already available with the...

remove all tests workaround: timing workaround is already available with the "CheckChallengeDelay" form the configuration.
parent 1d7a64cd
......@@ -11,12 +11,7 @@ class TestACMEAccountDeactivate(unittest.TestCase):
@classmethod
def setUpClass(self):
self.configs = generate_acme_account_deactivate_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))
acme_dns_tiny.main([self.configs['config']])
super(TestACMEAccountDeactivate, self).setUpClass()
# To clean ACME staging server and close correctly temporary files
......@@ -27,11 +22,6 @@ class TestACMEAccountDeactivate(unittest.TestCase):
os.remove(self.configs['key'])
super(TestACMEAccountDeactivate, self).tearDownClass()
# Add a sleeping time between each test, to avoid issues with order/challenge status
@classmethod
def setUp(self):
time.sleep(5);
def test_success_account_deactivate(self):
""" Test success account key deactivate """
with self.assertLogs(level='INFO') as accountdeactivatelog:
......
......@@ -25,11 +25,6 @@ class TestACMEAccountRollover(unittest.TestCase):
os.remove(self.configs[tmpfile])
super(TestACMEAccountRollover, self).tearDownClass()
# Add a sleeping time between each test, to avoid issues with order/challenge status
@classmethod
def setUp(self):
time.sleep(5);
def test_success_account_rollover(self):
""" Test success account key rollover """
with self.assertLogs(level='INFO') as accountrolloverlog:
......
......@@ -29,11 +29,6 @@ class TestACMEDNSTiny(unittest.TestCase):
os.remove(self.configs[tmpfile])
super(TestACMEDNSTiny, self).tearDownClass()
# Add a sleeping time between each test, to avoid issues with order/challenge status
@classmethod
def setUp(self):
time.sleep(5);
# helper function to run openssl command
def openssl(self, command, options, communicate=None):
openssl = subprocess.Popen(["openssl", command] + options,
......
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