Commit 36a6c6a9 authored by Adrien Dorsaz's avatar Adrien Dorsaz

test-acme-dns-tiny: fix typo and remove correctly option from config object

parent 3330fc7e
Pipeline #185 failed with stage
in 17 minutes and 36 seconds
......@@ -91,7 +91,7 @@ def generate_acme_dns_tiny_config():
config.read(goodCName)
goodCNameWithoutCSR = NamedTemporaryFile(delete=False)
del config["acmednstiny"]["CSRFile"]
config.remove_option("acmednstiny", "CSRFile")
with open(goodCNameWithoutCSR.name, 'w') as configfile:
config.write(configfile)
......
......@@ -131,7 +131,7 @@ class TestACMEDNSTiny(unittest.TestCase):
def test_success_cli_with_csr_option(self):
""" Successfully issue a certificate via command line interface using CSR option"""
certout, err = subprocess.Popen([
"python3", "acme_dns_tiny.py", ['--csr', sefl.configs['cnameCSR'], self.configs['goodCNameWithoutCSR']]
"python3", "acme_dns_tiny.py", ['--csr', self.configs['cnameCSR'], self.configs['goodCNameWithoutCSR']]
], stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
certchain = certout.decode("utf8")
......
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