From 165db3dbc632275f49261a69760867b811b0520b Mon Sep 17 00:00:00 2001 From: liyin Date: Fri, 2 Dec 2016 22:52:55 +0800 Subject: dashboard log info check JIRA: BOTTLENECK-115 This patch change an error that last patch haven't covered. so i need to correct it. Change-Id: I1ab1fbe4e60463482728ec3ab58ec71c4e1d7049 Signed-off-by: liyin --- testsuites/posca/testcase_dashboard/system_bandwidth.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'testsuites/posca') diff --git a/testsuites/posca/testcase_dashboard/system_bandwidth.py b/testsuites/posca/testcase_dashboard/system_bandwidth.py index 69020c04..92dc0b5c 100755 --- a/testsuites/posca/testcase_dashboard/system_bandwidth.py +++ b/testsuites/posca/testcase_dashboard/system_bandwidth.py @@ -42,7 +42,12 @@ doc={ "defaultIndex": "bottlenecks" } res = es.index(index=".kibana",doc_type="config",id="4.6.1",body=doc) -print(res['created']) + +if res['created']=="True": + print("bottlenecks config has created") +else: + print("bottlenecks config has existed") + doc={ "title": "system_bandwidth", "description": "", -- cgit 1.2.3-korg