diff options
author | 2016-05-25 15:32:54 +0200 | |
---|---|---|
committer | 2016-05-25 17:39:12 +0200 | |
commit | b140bd0f8055af4f1624a2c9a6291f7923003122 (patch) | |
tree | ff9a80f638dcaae053d512f9c2f384091d6a3aab /result_collection_api/dashboard/vsperf2Dashboard.py | |
parent | f204fed9d8519f994b085a1139f036bc40fcddbc (diff) |
Test API add start_date, stop_date parameters in results
Change-Id: I8c8c5b1d82e447fb7a7413368a919b3d3c7b99a6
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
Diffstat (limited to 'result_collection_api/dashboard/vsperf2Dashboard.py')
-rwxr-xr-x | result_collection_api/dashboard/vsperf2Dashboard.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/result_collection_api/dashboard/vsperf2Dashboard.py b/result_collection_api/dashboard/vsperf2Dashboard.py index 323d391..5a6882d 100755 --- a/result_collection_api/dashboard/vsperf2Dashboard.py +++ b/result_collection_api/dashboard/vsperf2Dashboard.py @@ -79,7 +79,7 @@ def format_common_for_dashboard(case, results): # ******************************** new_element = [] for data in results: - new_element.append({'x': data['creation_date'], + new_element.append({'x': data['start_date'], 'y1': data['details']['64'], 'y2': data['details']['128'], 'y3': data['details']['512'], @@ -105,8 +105,8 @@ def format_common_for_dashboard(case, results): import os def _test(): - ans = [{'creation_date': '2015-09-12', 'project_name': 'vsperf', 'version': 'ovs_master', 'pod_name': 'pod1-vsperf', 'case_name': 'tput_ovsdpdk', 'installer': 'build_sie', 'details': {'64': '26.804', '1024': '1097.284', '512': '178.137', '1518': '12635.860', '128': '100.564'}}, - {'creation_date': '2015-09-33', 'project_name': 'vsperf', 'version': 'ovs_master', 'pod_name': 'pod1-vsperf', 'case_name': 'tput_ovsdpdk', 'installer': 'build_sie', 'details': {'64': '16.804', '1024': '1087.284', '512': '168.137', '1518': '12625.860', '128': '99.564'}}] + ans = [{'start_date': '2015-09-12', 'project_name': 'vsperf', 'version': 'ovs_master', 'pod_name': 'pod1-vsperf', 'case_name': 'tput_ovsdpdk', 'installer': 'build_sie', 'details': {'64': '26.804', '1024': '1097.284', '512': '178.137', '1518': '12635.860', '128': '100.564'}}, + {'start_date': '2015-09-33', 'project_name': 'vsperf', 'version': 'ovs_master', 'pod_name': 'pod1-vsperf', 'case_name': 'tput_ovsdpdk', 'installer': 'build_sie', 'details': {'64': '16.804', '1024': '1087.284', '512': '168.137', '1518': '12625.860', '128': '99.564'}}] result = format_vsperf_for_dashboard("pvp_cont_ovsdpdkcuse", ans) print result |