Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
107
Merge Requests
107
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
c559e35e
Commit
c559e35e
authored
Jun 05, 2019
by
Łukasz Nowak
Committed by
Thomas Gambier
Jul 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
caddy-frontend/test: Make getSupervisorRPCServer classmethod
parent
9407f00b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
software/caddy-frontend/test/utils.py
software/caddy-frontend/test/utils.py
+3
-2
No files found.
software/caddy-frontend/test/utils.py
View file @
c559e35e
...
...
@@ -99,7 +99,8 @@ class SlapOSInstanceTestCase(unittest.TestCase):
return
"default"
# Utility methods.
def
getSupervisorRPCServer
(
self
):
@
classmethod
def
getSupervisorRPCServer
(
cls
):
"""Returns a XML-RPC connection to the supervisor used by slapos node
Refer to http://supervisord.org/api.html for details of available methods.
...
...
@@ -112,7 +113,7 @@ class SlapOSInstanceTestCase(unittest.TestCase):
None
,
# XXX hardcoded socket path
serverurl
=
"unix://{working_directory}/inst/supervisord.socket"
.
format
(
**
self
.
config
)))
**
cls
.
config
)))
# Unittest methods
@
classmethod
...
...
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