Commit 38c133c1 authored by Alain Takoudjou's avatar Alain Takoudjou

gitlab resiliencytest: wait until gitlab is ready before create project

parent e96809ac
......@@ -159,10 +159,26 @@ class GitlabTestSuite(SlaprunnerTestSuite):'Gitlab root password is:\n%s' % self.password)'Gitlab private token is:\n%s' % self.private_token)'Waiting 1 minute so that gitlab can be started...')
print self._createNewProject('sample.test')'Waiting 90 seconds so that gitlab can be started...')
time.sleep(90)'Trying to connect to gitlab backend URL...')
loop = 0
while loop < 3:
except Exception, e:
if loop == 2:
self.logger.warning(str(e))'Retry connection in 60 seconds...')
loop += 1
project_list = self._listProjects()
self.default_project_list = []
for project in project_list:
......@@ -173,7 +189,7 @@ class GitlabTestSuite(SlaprunnerTestSuite):
self.sample_file = self._connectToGitlab(url=self.file_uri)'Wait 10 minutes for main instance to have backup of gitlab...')
time.sleep(60) #0)
# in erp5testnode, we have only one IP, so we can't run at the same time
# gitlab in webrunner of main instance, and other services in import script of clone instance
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