summaryrefslogtreecommitdiffstats
path: root/utils/test/reporting/yardstick/scenarios.py
blob: 590fea2a441898828612e65990fefab919bd648e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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