diff options
author | chenjiankun <chenjiankun1@huawei.com> | 2016-09-20 07:47:21 +0000 |
---|---|---|
committer | chenjiankun <chenjiankun1@huawei.com> | 2016-09-20 07:52:08 +0000 |
commit | b5c5476bf5b6e5a38503f43abc5afc5a8a0d151b (patch) | |
tree | cd363e96ba614fbc71647f40a9fa361ad3161a08 /utils/test/reporting/yardstick/scenarios.py | |
parent | a0a65ceb7af1e950dba78c9de6510c9162d4b3d0 (diff) |
Make a black list for yardstick reporting
JIRA: YARDSTICK-353
Change-Id: Ic4821ff279401cc4eb26d172c0b649e9eeb2da48
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Diffstat (limited to 'utils/test/reporting/yardstick/scenarios.py')
-rw-r--r-- | utils/test/reporting/yardstick/scenarios.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/utils/test/reporting/yardstick/scenarios.py b/utils/test/reporting/yardstick/scenarios.py new file mode 100644 index 000000000..590fea2a4 --- /dev/null +++ b/utils/test/reporting/yardstick/scenarios.py @@ -0,0 +1,20 @@ +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 |