summaryrefslogtreecommitdiffstats
path: root/testsuites/posca/testcase_dashboard/system_bandwidth.py
diff options
context:
space:
mode:
authorliyin <liyin11@huawei.com>2017-08-04 17:09:00 +0800
committerYu Yang (Gabriel) <Gabriel.yuyang@huawei.com>2017-08-11 01:32:28 +0000
commitcc65377fffd2397a8770521cfef3aaae8c07b3e3 (patch)
tree0cf5df8eaa1f04bb097dfb91a26ad7068246f7f7 /testsuites/posca/testcase_dashboard/system_bandwidth.py
parent2e0a52eefb6b0cd0e66f42764600afe81fe29e86 (diff)
system bandwidth testcase frame rebuildstable/danube
JIRA: BOTTLENECK-177 This patch will debug some error in system bandwidth testcase. use the new docker way to test this testcase. Bug fix about dashboard and test framework. Change-Id: I7167ffd75efab9a7780407aa5b9a4337ebb9b4c7 Signed-off-by: liyin <liyin11@huawei.com> (cherry picked from commit 205156554daf981d01c4f43c6a79f6519525916e)
Diffstat (limited to 'testsuites/posca/testcase_dashboard/system_bandwidth.py')
-rwxr-xr-xtestsuites/posca/testcase_dashboard/system_bandwidth.py15
1 files changed, 14 insertions, 1 deletions
diff --git a/testsuites/posca/testcase_dashboard/system_bandwidth.py b/testsuites/posca/testcase_dashboard/system_bandwidth.py
index 155ca2df..4501dee7 100755
--- a/testsuites/posca/testcase_dashboard/system_bandwidth.py
+++ b/testsuites/posca/testcase_dashboard/system_bandwidth.py
@@ -76,7 +76,6 @@ def dashboard_system_bandwidth(runner_config):
LOG.info("system_bandwidth search has existed")
# Create testing data in line graph
- # Create testing data in line graph
with open(dashboard_dir + 'posca_system_bandwidth_line_data.json')\
as line_data:
doc = json.load(line_data)
@@ -104,6 +103,20 @@ def dashboard_system_bandwidth(runner_config):
else:
LOG.info("system_bandwidth_line-char visualization has existed")
+ # Create local cpu results in line chart
+ with open(dashboard_dir + 'posca_system_bandwidth_local_cpu.json')\
+ as line_cpu:
+ doc = json.load(line_cpu)
+ res = es.index(
+ index=".kibana",
+ doc_type="visualization",
+ id="system_bandwidth_local_cpu",
+ body=doc)
+ if res['created'] == "True":
+ LOG.info("system_bandwidth_local_cpu visualization has created")
+ else:
+ LOG.info("system_bandwidth_local_cpu visualization has existed")
+
# Create monitoring data in table
with open(dashboard_dir + 'posca_system_bandwidth_terms_data.json')\
as terms_char: