summaryrefslogtreecommitdiffstats
path: root/utils/test/reporting/yardstick/scenarios.py
diff options
context:
space:
mode:
Diffstat (limited to 'utils/test/reporting/yardstick/scenarios.py')
-rw-r--r--utils/test/reporting/yardstick/scenarios.py20
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