Commit ccdf6758 authored by Benjamin Blanc's avatar Benjamin Blanc

scalability/runScalabilityTestSuite: add hardodec login/pass for ERP5 instance

parent a1d27747
...@@ -89,14 +89,13 @@ def getCreatedDocumentNumberFromERP5(erp5_url, log): ...@@ -89,14 +89,13 @@ def getCreatedDocumentNumberFromERP5(erp5_url, log):
log("count docs number from ERP5 instance") log("count docs number from ERP5 instance")
count_retry = 0 count_retry = 0
parsed = urlparse.urlparse(erp5_url) parsed = urlparse.urlparse(erp5_url)
user = parsed.username; user = 'zope'
password = parsed.password; password = 'insecure'
header_dict = {'Authorization': 'Basic %s' % \ header_dict = {'Authorization': 'Basic %s' % \
base64.encodestring('%s:%s' % (user, password)).strip()} base64.encodestring('%s:%s' % (user, password)).strip()}
zope_connection = getConnection(erp5_url, log) zope_connection = getConnection(erp5_url, log)
while count_retry < 100 : while count_retry < 100 :
try: try:
count = count + 1
zope_connection.request( zope_connection.request(
'GET', '/erp5/count_docs_scalability', 'GET', '/erp5/count_docs_scalability',
headers=header_dict headers=header_dict
......
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