diff options
author | SerenaFeng <feng.xiaowei@zte.com.cn> | 2017-12-06 09:07:43 +0800 |
---|---|---|
committer | SerenaFeng <feng.xiaowei@zte.com.cn> | 2017-12-06 09:07:43 +0800 |
commit | 3f672f0e918c5c461008a7fc0e53e63b79083d34 (patch) | |
tree | 12bfc267788dff461cc6bb500ada150223f42ca2 /dashboard/dashboard/conf/testcases.py | |
parent | 41ff15069d96ea1040cb457b39f909967dabb8bc (diff) |
remove deprecated dashboard code
dashboard is not used anymore, substitute by Bitergia dashboard
Change-Id: Iccfd634d0d404d23b09d88454dab38425359a2b8
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'dashboard/dashboard/conf/testcases.py')
-rw-r--r-- | dashboard/dashboard/conf/testcases.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/dashboard/dashboard/conf/testcases.py b/dashboard/dashboard/conf/testcases.py deleted file mode 100644 index 98ce209..0000000 --- a/dashboard/dashboard/conf/testcases.py +++ /dev/null @@ -1,24 +0,0 @@ -import yaml - - -with open('/etc/dashboard/testcases.yaml') as f: - testcases_yaml = yaml.safe_load(f) -f.close() - - -def compose_format(fmt): - return 'format_' + fmt.strip() - - -def get_format(project, case): - testcases = testcases_yaml.get(project) - if isinstance(testcases, list): - for case_dict in testcases: - if case_dict['name'] == case: - return compose_format(case_dict['format']) - return None - - -if __name__ == '__main__': - fmt = get_format('functest', 'vping_ssh') - print(fmt) |