Commit 57997ec6 authored by Rafael Monnerat's avatar Rafael Monnerat

resiliencetest: haproxy is changed partition.

parent 9ceaeeaa
......@@ -87,18 +87,18 @@ class ERP5TestSuite(SlaprunnerTestSuite):
result = self._connectToSlaprunner(
resource='/getFileContent',
data='file=runner_workdir%2Finstance%2Fslappart7%2Fetc%2Fhaproxy.cfg'
data='file=runner_workdir%2Finstance%2Fslappart8%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%%2Fslappart7%%2Fetc%%2Fhaproxy.cfg&content=%s' % urllib.quote(file_content)
data='file=runner_workdir%%2Finstance%%2Fslappart8%%2Fetc%%2Fhaproxy.cfg&content=%s' % urllib.quote(file_content)
)
# Restart HAProxy
self._connectToSlaprunner(
resource='/startStopProccess/name/slappart7:haproxy/cmd/RESTART'
resource='/startStopProccess/name/slappart8: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