summaryrefslogtreecommitdiffstats
path: root/utils/test/dashboard/kibana_cleanup.py
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2016-09-27 10:37:14 +0800
committerJose Lausuch <jose.lausuch@ericsson.com>2016-09-27 09:51:18 +0000
commit84df3462e1efd453ac3a1de6652cb8074da40502 (patch)
treea99ce7e251891b50e13373f68b611ba218a65425 /utils/test/dashboard/kibana_cleanup.py
parent7543f29ba2d783fd1fb1615fe23faf6decfdf9eb (diff)
refactor elastic_access.py
JIRA: FUNCTEST-495 Change-Id: I639c9b4838ba026cf48c01081810f663467163a8 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'utils/test/dashboard/kibana_cleanup.py')
-rw-r--r--utils/test/dashboard/kibana_cleanup.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/test/dashboard/kibana_cleanup.py b/utils/test/dashboard/kibana_cleanup.py
index 9ce4994f5..ee0190049 100644
--- a/utils/test/dashboard/kibana_cleanup.py
+++ b/utils/test/dashboard/kibana_cleanup.py
@@ -14,10 +14,10 @@ logger.addHandler(file_handler)
def delete_all(url, es_creds):
- ids = elastic_access.get_elastic_docs(url, es_creds, body=None, field='_id')
+ ids = elastic_access.get_docs(url, es_creds, body=None, field='_id')
for id in ids:
del_url = '/'.join([url, id])
- elastic_access.delete_request(del_url, es_creds)
+ elastic_access.delete_docs(del_url, es_creds)
if __name__ == '__main__':