Commit 81097552 authored by Adrien Dorsaz's avatar Adrien Dorsaz
Browse files

test: rename monkey as config maker and clean its useless imports

parent 1056a460
Pipeline #46 passed with stage
in 5 minutes and 14 seconds
import os, sys, configparser
import os, configparser
from tempfile import NamedTemporaryFile
from subprocess import Popen
from urllib.request import urlopen
# domain with running on it for testing
......@@ -16,7 +15,7 @@ TSIGKEYVALUE = os.getenv("GITLABCI_TSIGKEYVALUE")
# generate account and domain keys
def gen_configs():
def gen_config():
# good account key
account_key = NamedTemporaryFile()
Popen(["openssl", "genrsa", "-out",, "2048"]).wait()
......@@ -2,11 +2,11 @@ import unittest, sys
from subprocess import Popen, PIPE
from io import StringIO
import acme_dns_tiny
from .monkey import gen_configs
from .config_maker import gen_config
from .acme_account_delete import delete_account
import logassert
CONFIGS = gen_configs()
CONFIGS = gen_config()
class TestModule(unittest.TestCase):
"Tests for acme_dns_tiny.get_crt()"
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