Commit 61790d2c authored by Adrien Dorsaz's avatar Adrien Dorsaz

tests: fix acme_account_deactivate

parent 66c47ea1
Pipeline #173 failed with stage
in 7 minutes and 47 seconds
import unittest, os
import unittest, os, time
import acme_dns_tiny
from tests.config_factory import generate_acme_account_deactivate_config
import tools.acme_account_deactivate
......@@ -22,6 +22,11 @@ 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:
......
import unittest, os
import unittest, os, time
import acme_dns_tiny
from tests.config_factory import generate_acme_account_rollover_config
from tools.acme_account_deactivate import account_deactivate
......@@ -25,6 +25,11 @@ 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,9 +29,9 @@ class TestACMEDNSTiny(unittest.TestCase):
os.remove(self.configs[tmpfile])
super(TestACMEDNSTiny, self).tearDownClass()
# Add a sleeping time between each test, to avoid issue with order status
# Add a sleeping time between each test, to avoid issues with order/challenge status
@classmethod
def tearDown(self):
def setUp(self):
time.sleep(5);
# helper function to run openssl command
......
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