Commit 4048ab39 authored by Yusei Tahara's avatar Yusei Tahara

erp5/util/testnode, scalability_test: Stop using a dummy frontend master and...

erp5/util/testnode, scalability_test: Stop using a dummy frontend master and use host.vifib.net frontend with a valid SSL certificate instead. Always use https.
parent 5c3ec017
This diff is collapsed.
...@@ -468,10 +468,8 @@ class SlapOSTester(SlapOSMasterCommunicator): ...@@ -468,10 +468,8 @@ class SlapOSTester(SlapOSMasterCommunicator):
information = self.getInformationFromInstance(instance["href"]) information = self.getInformationFromInstance(instance["href"])
if "frontend-" in instance["title"]: if "frontend-" in instance["title"]:
try: try:
# TODO: this should get "secure_access" value (https). Until having a
# valid certificate, the "site_url" (http) will be used.
frontend = [instance["title"].replace("frontend-", ""), frontend = [instance["title"].replace("frontend-", ""),
information["connection_dict"]["site_url"]] information["connection_dict"]["secure_access"]]
frontend_url_list.append(frontend) frontend_url_list.append(frontend)
except Exception as e: except Exception as e:
logger.info("Frontend url not generated yet for instance: " + instance["title"]) logger.info("Frontend url not generated yet for instance: " + instance["title"])
......
import os.path import os.path
import json import json
import urlparse
ZOPE_USER_FAMILY = "user" ZOPE_USER_FAMILY = "user"
ZOPE_ACTIVITIES_FAMILIY = "activities" ZOPE_ACTIVITIES_FAMILIY = "activities"
...@@ -32,8 +31,7 @@ class ERP5_scalability(): ...@@ -32,8 +31,7 @@ class ERP5_scalability():
if frontend[0] == ZOPE_USER_FAMILY: if frontend[0] == ZOPE_USER_FAMILY:
frontend_address = frontend[1] frontend_address = frontend[1]
break break
port = 4443 if urlparse.urlparse(frontend_address).scheme == 'https' else 8080 return "%s/erp5" % (frontend_address)
return "%s:%d/erp5" % (frontend_address, port)
def getScalabilityTestMetricUrl(self, instance_information_dict, **kw): def getScalabilityTestMetricUrl(self, instance_information_dict, **kw):
frontend_address = self.getScalabilityTestUrl(instance_information_dict) frontend_address = self.getScalabilityTestUrl(instance_information_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