Commit 06423cab authored by Adrien Dorsaz's avatar Adrien Dorsaz

v2: fix config management in acme deactivate test

parent 4265563b
Pipeline #158 failed with stage
in 3 minutes and 3 seconds
......@@ -177,6 +177,6 @@ def generate_acme_account_deactivate_config():
config.write(configfile)
return {
"config": deactivateConfig.name,
"config": deactivateConfig,
"key": account_key
}
......@@ -11,15 +11,16 @@ class TestACMEAccountDeactivate(unittest.TestCase):
@classmethod
def setUpClass(self):
configs = generate_acme_account_deactivate_config()
self.config = configs["config"]
self.account_key = configs["key"]
acme_dns_tiny.main([self.configs['config'].name])
acme_dns_tiny.main([self.config.name])
super(TestACMEAccountDeactivate, self).setUpClass()
# To clean ACME staging server and close correctly temporary files
@classmethod
def tearDownClass(self):
# close temp files correctly
self.configs['config'].close
self.config.close()
self.accountkey.close()
super(TestACMEAccountDeactivate, self).tearDownClass()
......
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