From: liyin Date: Fri, 2 Dec 2016 14:52:55 +0000 (+0800) Subject: dashboard log info check X-Git-Tag: danube.1.RC1~42 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?p=bottlenecks.git;a=commitdiff_plain;h=165db3dbc632275f49261a69760867b811b0520b 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 --- 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": "",