diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2016-06-04 16:58:33 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-06-04 16:58:33 +0000 |
commit | f61173ebe98f1c746f7cb7eef439d56590a4b78e (patch) | |
tree | be9963bd4ddaa9d7668f3a03e912860c14f53784 /utils/test/result_collection_api/opnfv_testapi/dashboard | |
parent | a1034f88ad3bb6a89d25283ae05ff003af90866f (diff) | |
parent | 67ce8e57e4400f6734a999b40ccd8c3f6a489094 (diff) |
Merge "support 'GET /dashboard/v1/projects' REST api in testAPI"
Diffstat (limited to 'utils/test/result_collection_api/opnfv_testapi/dashboard')
-rw-r--r-- | utils/test/result_collection_api/opnfv_testapi/dashboard/dashboard_utils.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/utils/test/result_collection_api/opnfv_testapi/dashboard/dashboard_utils.py b/utils/test/result_collection_api/opnfv_testapi/dashboard/dashboard_utils.py index 090aaa5b4..f331e28cd 100644 --- a/utils/test/result_collection_api/opnfv_testapi/dashboard/dashboard_utils.py +++ b/utils/test/result_collection_api/opnfv_testapi/dashboard/dashboard_utils.py @@ -67,6 +67,22 @@ def get_dashboard_cases(): return modules +def get_dashboard_projects(): + # Retrieve all the projects that could provide + # Dashboard ready graphs + # look in the releng repo + # search all the project2Dashboard.py files + # we assume that dashboard processing of project <Project> + # is performed in the <Project>2Dashboard.py file + projects = [] + cp = re.compile('opnfv_testapi\.dashboard\.(.+?)2Dashboard') + for module in sys.modules: + project = re.findall(cp, module) + if project: + projects.extend(project) + return projects + + def get_dashboard_result(project, case, results=None): # get the dashboard ready results # paramters are: |