Commit ecc90aae authored by Jérome Perrin's avatar Jérome Perrin

fixup! SlapOSInstanceTestCase: add getSupervisorRPCServer

parent 582cc6be
......@@ -185,10 +185,10 @@ class SlapOSInstanceTestCase(unittest.TestCase):
Refer to http://supervisord.org/api.html for details of available methods.
"""
# xmlrpc over unix socket https://stackoverflow.com/a/11746051/7294664
return xmlrpc.ServerProxy(
return xmlrpclib.ServerProxy(
'http://slapos-supervisor',
transport=supervisor.xmlrpc.SupervisorTransport(
None,
None,
# XXX hardcoded socket path
server_url="unix://{working_directory}/inst/inst/supervisord.socket".format(**self.config)))
serverurl="unix://{working_directory}/inst/supervisord.socket".format(**self.config)))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment