summaryrefslogtreecommitdiffstats
path: root/reporting/functest/reporting-tempest.py
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2016-09-08 18:36:47 +0200
committerMorgan Richomme <morgan.richomme@orange.com>2016-09-08 18:36:47 +0200
commit3bbce50d580b467c7d6a4e6cef3963b77e684f44 (patch)
tree74873722e5612889a7d8de29f649d22bb1e1e0fa /reporting/functest/reporting-tempest.py
parent3d383d1e28a7d835591186759b3ba55bf14db73e (diff)
Fix security issues reported by the security audit
JIRA: RELENG-143 Change-Id: Ia20c6ce86e72924ab8ab5f93bdc956d7f6a40a93 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
Diffstat (limited to 'reporting/functest/reporting-tempest.py')
-rwxr-xr-xreporting/functest/reporting-tempest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/reporting/functest/reporting-tempest.py b/reporting/functest/reporting-tempest.py
index 0dc1dd3..363f123 100755
--- a/reporting/functest/reporting-tempest.py
+++ b/reporting/functest/reporting-tempest.py
@@ -28,7 +28,7 @@ logger.info("success rate > %s " % criteria_success_rate)
for version in conf.versions:
for installer in conf.installers:
# we consider the Tempest results of the last PERIOD days
- url = conf.URL_BASE + "?case=tempest_smoke_serial"
+ url = 'http://' + conf.URL_BASE + "?case=tempest_smoke_serial"
request = Request(url + '&period=' + str(PERIOD) +
'&installer=' + installer +
'&version=' + version)
@@ -116,7 +116,7 @@ for version in conf.versions:
logger.error("Error field not present (Brahamputra runs?)")
templateLoader = jinja2.FileSystemLoader(conf.REPORTING_PATH)
- templateEnv = jinja2.Environment(loader=templateLoader)
+ templateEnv = jinja2.Environment(loader=templateLoader, autoescape=True)
TEMPLATE_FILE = "/template/index-tempest-tmpl.html"
template = templateEnv.get_template(TEMPLATE_FILE)