Commit b2b37603 authored by Guillaume Hervier's avatar Guillaume Hervier

resiliencytest.erp5: Fix ERP5 HAProxy config step

/reviewed-on !39
parent 470da70c
...@@ -87,18 +87,18 @@ class ERP5TestSuite(SlaprunnerTestSuite): ...@@ -87,18 +87,18 @@ class ERP5TestSuite(SlaprunnerTestSuite):
result = self._connectToSlaprunner( result = self._connectToSlaprunner(
resource='/getFileContent', resource='/getFileContent',
data='file=runner_workdir%2Finstance%2Fslappart8%2Fetc%2Fhaproxy.cfg' data='file=runner_workdir%2Finstance%2Fslappart7%2Fetc%2Fhaproxy.cfg'
) )
file_content = json.loads(result)['result'] file_content = json.loads(result)['result']
file_content = file_content.replace('var/run/haproxy.sock', 'ha.sock') file_content = file_content.replace('var/run/haproxy.sock', 'ha.sock')
self._connectToSlaprunner( self._connectToSlaprunner(
resource='/saveFileContent', resource='/saveFileContent',
data='file=runner_workdir%%2Finstance%%2Fslappart8%%2Fetc%%2Fhaproxy.cfg&content=%s' % urllib.quote(file_content) data='file=runner_workdir%%2Finstance%%2Fslappart7%%2Fetc%%2Fhaproxy.cfg&content=%s' % urllib.quote(file_content)
) )
# Restart HAProxy # Restart HAProxy
self._connectToSlaprunner( self._connectToSlaprunner(
resource='/startStopProccess/name/slappart8:haproxy/cmd/RESTART' resource='/startStopProccess/name/slappart7:haproxy/cmd/RESTART'
) )
......
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