Commit e83cf533 authored by Benjamin Blanc's avatar Benjamin Blanc

erp5_bootstrap: wait for testing scalability business configuration ready.

parent abc220fa
...@@ -102,3 +102,26 @@ if scalability: ...@@ -102,3 +102,26 @@ if scalability:
print "Business building sent" print "Business building sent"
print result.read() print result.read()
print "Response read" print "Response read"
# Here, how to know if the build is ready ?
# Check size of :
# https://192.168.242.72:1234/erp5/portal_activities/getMessageList
# Wait for 0-pending activities
start_time = time.time()
while MAX_INSTALLATION_TIME > time.time()-start_time:
zope_connection = getConnection(protocol,host)
zope_connection.request(
'GET', '/%%s/portal_activities/getMessageList' %%(site_id),
headers=header_dict
)
message_list_text = result.read()
message_list = [s.strip() for s in message_list_text[1:-1].split(',')]
if len(message_list)==0:
print "There is no pending activities."
print "Testing scalability business configuration is ready."
break
print "Testing scalability business configuration not ready yet"
time.sleep(15)
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