summaryrefslogtreecommitdiffstats
path: root/functest/ci/generate_report.py
diff options
context:
space:
mode:
Diffstat (limited to 'functest/ci/generate_report.py')
-rwxr-xr-xfunctest/ci/generate_report.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/functest/ci/generate_report.py b/functest/ci/generate_report.py
index 3872a07ed..1c844fabf 100755
--- a/functest/ci/generate_report.py
+++ b/functest/ci/generate_report.py
@@ -39,8 +39,8 @@ def init(tiers_to_run=[]):
def get_results_from_db():
- url = "%s/results?build_tag=%s" % (ft_utils.get_db_url(),
- CONST.BUILD_TAG)
+ url = "%s?build_tag=%s" % (ft_utils.get_db_url(),
+ CONST.BUILD_TAG)
logger.debug("Query to rest api: %s" % url)
try:
data = json.load(urllib2.urlopen(url))
@@ -56,7 +56,7 @@ def get_data(test, results):
for test_db in results:
if test['test_name'] in test_db['case_name']:
id = test_db['_id']
- url = ft_utils.get_db_url() + '/results/' + id
+ url = ft_utils.get_db_url() + '/' + id
test_result = test_db['criteria']
return {"url": url, "result": test_result}