summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
a0a65ce)
JIRA: YARDSTICK-353
Change-Id: Ic4821ff279401cc4eb26d172c0b649e9eeb2da48
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
import reportingUtils as utils
import reportingConf as conf
import scenarioResult as sr
import reportingUtils as utils
import reportingConf as conf
import scenarioResult as sr
+from scenarios import config as cf
# Logger
logger = utils.getLogger("Yardstick-Status")
# Logger
logger = utils.getLogger("Yardstick-Status")
scenario_results[k] += stable_result[k]
scenario_result_criteria = {}
scenario_results[k] += stable_result[k]
scenario_result_criteria = {}
+ for s in scenario_results.keys():
+ if cf.has_key(installer) and cf[installer].has_key(s):
+ scenario_results.pop(s)
+
# From each scenarios get results list
for s, s_result in scenario_results.items():
logger.info("---------------------------------")
# From each scenarios get results list
for s, s_result in scenario_results.items():
logger.info("---------------------------------")
REPORTING_PATH = "."
URL_BASE = 'http://testresults.opnfv.org/test/api/v1/results'
REPORTING_PATH = "."
URL_BASE = 'http://testresults.opnfv.org/test/api/v1/results'
+TEST_CONF = "https://git.opnfv.org/cgit/yardstick/plain/tests/ci/report_config.yaml"
# LOG_LEVEL = "ERROR"
LOG_LEVEL = "INFO"
# LOG_LEVEL = "ERROR"
LOG_LEVEL = "INFO"
--- /dev/null
+import yaml
+import os
+import requests
+
+import reportingConf as conf
+
+
+response = requests.get(conf.TEST_CONF)
+yaml_file = yaml.safe_load(response.text)
+reporting = yaml_file.get('reporting')
+
+config = {}
+
+for element in reporting:
+ name = element['name']
+ scenarios = element['scenario']
+ for s in scenarios:
+ if not config.has_key(name):
+ config[name] = {}
+ config[name][s] = True