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
1ae4370d
Commit
1ae4370d
authored
Jun 03, 2020
by
Adrien Dorsaz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
staging_test_acme_dns_tiny: tearDown should not try to parse cname_csr as a config file
parent
baac0d4a
Pipeline
#268
passed with stages
in 22 minutes and 19 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
tests/staging_test_acme_dns_tiny.py
tests/staging_test_acme_dns_tiny.py
+16
-16
No files found.
tests/staging_test_acme_dns_tiny.py
View file @
1ae4370d
...
@@ -41,22 +41,22 @@ class TestACMEDNSTiny(unittest.TestCase):
...
@@ -41,22 +41,22 @@ class TestACMEDNSTiny(unittest.TestCase):
def
tearDownClass
(
cls
):
def
tearDownClass
(
cls
):
# close temp files correctly
# close temp files correctly
for
conffile
in
cls
.
configs
:
for
conffile
in
cls
.
configs
:
parser
=
configparser
.
ConfigParser
()
# for each configuration file, deactivate the account and remove linked temporary files
parser
.
read
(
cls
.
configs
[
conffile
])
if
conffile
!=
"cname_csr"
:
try
:
parser
=
configparser
.
ConfigParser
()
# for each configuration, deactivate the account key
parser
.
read
(
cls
.
configs
[
conffile
])
if
conffile
!=
"cname_csr"
:
try
:
account_deactivate
(
parser
[
"acmednstiny"
][
"AccountKeyFile"
],
ACME_DIRECTORY
)
account_deactivate
(
parser
[
"acmednstiny"
][
"AccountKeyFile"
],
ACME_DIRECTORY
)
except
:
except
:
pass
pass
try
:
try
:
os
.
remove
(
parser
[
"acmednstiny"
][
"AccountKeyFile"
])
os
.
remove
(
parser
[
"acmednstiny"
][
"AccountKeyFile"
])
except
:
except
:
pass
pass
try
:
try
:
os
.
remove
(
parser
[
"acmednstiny"
][
"CSRFile"
])
os
.
remove
(
parser
[
"acmednstiny"
][
"CSRFile"
])
except
:
except
:
pass
pass
try
:
try
:
os
.
remove
(
cls
.
configs
[
conffile
])
os
.
remove
(
cls
.
configs
[
conffile
])
except
:
except
:
...
@@ -65,7 +65,7 @@ class TestACMEDNSTiny(unittest.TestCase):
...
@@ -65,7 +65,7 @@ class TestACMEDNSTiny(unittest.TestCase):
# helper function to valid success by making assertion on returned certificate chain
# helper function to valid success by making assertion on returned certificate chain
def
_assert_certificate_chain
(
self
,
cert_chain
):
def
_assert_certificate_chain
(
self
,
cert_chain
):
# Output have to contains two certiicates
# Output have to contains two certi
f
icates
certlist
=
cert_chain
.
split
(
"-----BEGIN CERTIFICATE-----"
)
certlist
=
cert_chain
.
split
(
"-----BEGIN CERTIFICATE-----"
)
self
.
assertEqual
(
3
,
len
(
certlist
))
self
.
assertEqual
(
3
,
len
(
certlist
))
self
.
assertEqual
(
''
,
certlist
[
0
])
self
.
assertEqual
(
''
,
certlist
[
0
])
...
...
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