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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eteri
slapos
Commits
b7f1d45b
Commit
b7f1d45b
authored
Jun 05, 2019
by
Łukasz Nowak
Committed by
Łukasz Nowak
Jun 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
caddy-frontend/test: Make getSupervisorRPCServer classmethod
parent
3a21eeed
Changes
1
Hide 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 @
b7f1d45b
...
...
@@ -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