Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
acme-dns-tiny
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Adrien Dorsaz
acme-dns-tiny
Commits
bc765162
Commit
bc765162
authored
Feb 27, 2017
by
Adrien Dorsaz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: add and enable account key rollover test
parent
b20c4369
Pipeline
#110
failed with stage
in 1 minute and 49 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
.gitlab-ci.yml
.gitlab-ci.yml
+4
-2
tests/config_factory.py
tests/config_factory.py
+1
-1
tests/test_acme_account_rollover.py
tests/test_acme_account_rollover.py
+2
-2
No files found.
.gitlab-ci.yml
View file @
bc765162
...
...
@@ -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
tests/config_factory.py
View file @
bc765162
...
...
@@ -119,7 +119,7 @@ def generate_acme_dns_tiny_config():
}
# generate account and domain keys
def
generate_account_rollover_config
():
def
generate_ac
me_ac
count_rollover_config
():
# Old account key
old_account_key
=
NamedTemporaryFile
()
Popen
([
"openssl"
,
"genrsa"
,
"-out"
,
old_account_key
.
name
,
"2048"
]).
wait
()
...
...
tests/test_account_rollover.py
→
tests/test_ac
me_ac
count_rollover.py
View file @
bc765162
...
...
@@ -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_ac
me_ac
count_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_ac
me_ac
count_rollover_config
()
super
(
TestACMEAccountRollover
,
self
).
setUpClass
()
# To clean ACME staging server and close correctly temporary files
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment