Commit bc765162 authored by Adrien Dorsaz's avatar Adrien Dorsaz

tests: add and enable account key rollover test

parent b20c4369
Pipeline #110 failed with stage
in 1 minute and 49 seconds
......@@ -4,7 +4,8 @@ jessie:
- pip3 install -r tests/requirements.txt
script:
- coverage run --source ./ -m unittest -v tests.test_acme_dns_tiny
- coverage report --include=acme_dns_tiny.py
- coverage run --source ./ -m unittest -v tests.test_acme_account_rollover
- coverage report --include=acme_dns_tiny.py --include=tools/acme_account_rollover
jessie_backport:
image: adt-jessie_dnspython3_1.15-bpo
......@@ -12,5 +13,6 @@ jessie_backport:
- pip3 install -r tests/requirements.txt
script:
- coverage run --source ./ -m unittest -v tests.test_acme_dns_tiny
- coverage report --include=acme_dns_tiny.py
- coverage run --source ./ -m unittest -v tests.test_acme_account_rollover
- coverage report --include=acme_dns_tiny.py --include=tools/acme_account_rollover
......@@ -119,7 +119,7 @@ def generate_acme_dns_tiny_config():
}
# generate account and domain keys
def generate_account_rollover_config():
def generate_acme_account_rollover_config():
# Old account key
old_account_key = NamedTemporaryFile()
Popen(["openssl", "genrsa", "-out", old_account_key.name, "2048"]).wait()
......
......@@ -2,7 +2,7 @@ import unittest, sys, os
from subprocess import Popen, PIPE
from io import StringIO
import acme_dns_tiny
from tests.config_factory import generate_account_rollover_config
from tests.config_factory import generate_acme_account_rollover_config
from tools.acme_account_delete import delete_account
import tools.acme_account_rollover
import logassert
......@@ -14,7 +14,7 @@ class TestACMEAccountRollover(unittest.TestCase):
@classmethod
def setUpClass(self):
self.configs = generate_account_rollover_config()
self.configs = generate_acme_account_rollover_config()
super(TestACMEAccountRollover, self).setUpClass()
# To clean ACME staging server and close correctly temporary files
......
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