summaryrefslogtreecommitdiffstats
path: root/utils/test/scripts/shared_utils.py
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2016-09-12 18:09:01 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2016-09-12 18:11:28 +0800
commit259fa272643542afefde4415052313a01b110c7a (patch)
tree1fd199d7808654dd3b64df86c0cdd67c6b64643f /utils/test/scripts/shared_utils.py
parent9c2378d22524f96cd63454fa17ad8fc93ddf8bd9 (diff)
refactor modify_mongo_entry of kibana_dashboard
JIRA: FUNCTEST-469 Change-Id: Ifd6598232fb0a1615352e0f27aefd51beeedbcbc Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'utils/test/scripts/shared_utils.py')
-rw-r--r--utils/test/scripts/shared_utils.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/test/scripts/shared_utils.py b/utils/test/scripts/shared_utils.py
index 8bbbdbe07..15c1af8a5 100644
--- a/utils/test/scripts/shared_utils.py
+++ b/utils/test/scripts/shared_utils.py
@@ -1,5 +1,7 @@
-import urllib3
import json
+
+import urllib3
+
http = urllib3.PoolManager()
@@ -36,4 +38,3 @@ def get_elastic_data(elastic_url, creds, body, field='_source'):
for hit in elastic_json['hits']['hits']:
elastic_data.append(hit[field])
return elastic_data
-