Commit 1c8ba070 authored by Rafael Monnerat's avatar Rafael Monnerat

resiliencytest: Restart haproxy and call startAllPartitions 2 times

  In case haproxy were not working before.
parent 515140ed
...@@ -98,11 +98,15 @@ class ERP5TestSuite(SlaprunnerTestSuite): ...@@ -98,11 +98,15 @@ class ERP5TestSuite(SlaprunnerTestSuite):
# Restart HAProxy # Restart HAProxy
self._connectToSlaprunner( self._connectToSlaprunner(
resource='/startStopProccess/name/slappart7:haproxy/cmd/STOPPED' resource='/startStopProccess/name/slappart7:haproxy/cmd/RESTART'
) )
for i in range(1):
time.sleep(15) time.sleep(15)
# In case erp5 bootstrap (in erp5-cluster) couldn't connect to zope through HAProxy
self._connectToSlaprunner('/startAllPartition')
def _getCreatedERP5Document(self): def _getCreatedERP5Document(self):
""" Fetch and return content of ERP5 document created above.""" """ Fetch and return content of ERP5 document created above."""
url = "%s/erp5/getTitle" % self._getERP5Url() url = "%s/erp5/getTitle" % self._getERP5Url()
......
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