diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2017-05-09 16:59:49 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2017-05-09 17:11:40 +0200 |
commit | a212763c3e9f4cf6d52200aa614e42a911c5dbf7 (patch) | |
tree | 007a22b42a87dd17375acaaa1d539d0abb4193af /functest/ci | |
parent | d37f6a64ed9aa88bd73d0c0fe6d774d91286420c (diff) |
Remove the former results in DB url
It conforms generate_report.py with the previous change [1].
[1] https://gerrit.opnfv.org/gerrit/#/c/33511/
Change-Id: I677ebd416f462a591439fc7b637c02d7964e6173
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest/ci')
-rw-r--r-- | functest/ci/generate_report.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/functest/ci/generate_report.py b/functest/ci/generate_report.py index 17240e8c..e400b1b6 100644 --- 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} |