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
06423cab
Commit
06423cab
authored
Feb 02, 2018
by
Adrien Dorsaz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v2: fix config management in acme deactivate test
parent
4265563b
Pipeline
#158
failed with stage
in 3 minutes and 3 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
tests/config_factory.py
tests/config_factory.py
+1
-1
tests/test_acme_account_deactivate.py
tests/test_acme_account_deactivate.py
+3
-2
No files found.
tests/config_factory.py
View file @
06423cab
...
...
@@ -177,6 +177,6 @@ def generate_acme_account_deactivate_config():
config
.
write
(
configfile
)
return
{
"config"
:
deactivateConfig
.
name
,
"config"
:
deactivateConfig
,
"key"
:
account_key
}
tests/test_acme_account_deactivate.py
View file @
06423cab
...
...
@@ -11,15 +11,16 @@ class TestACMEAccountDeactivate(unittest.TestCase):
@
classmethod
def
setUpClass
(
self
):
configs
=
generate_acme_account_deactivate_config
()
self
.
config
=
configs
[
"config"
]
self
.
account_key
=
configs
[
"key"
]
acme_dns_tiny
.
main
([
self
.
config
s
[
'config'
]
.
name
])
acme_dns_tiny
.
main
([
self
.
config
.
name
])
super
(
TestACMEAccountDeactivate
,
self
).
setUpClass
()
# To clean ACME staging server and close correctly temporary files
@
classmethod
def
tearDownClass
(
self
):
# close temp files correctly
self
.
config
s
[
'config'
].
close
self
.
config
.
close
()
self
.
accountkey
.
close
()
super
(
TestACMEAccountDeactivate
,
self
).
tearDownClass
()
...
...
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