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):
result = self._connectToSlaprunner(
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 = file_content.replace('var/run/haproxy.sock', 'ha.sock')
self._connectToSlaprunner(
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
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