Skip to content

Commit

Permalink
changed logic to delete all test indexes
Browse files Browse the repository at this point in the history
Signed-off-by: Nitish Gupta <imnitish.ng@gmail.com>
  • Loading branch information
imnitishng authored and valeriocos committed Apr 10, 2020
1 parent 94f52c6 commit 48486d0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,8 @@ def setUp(self):
self.enrich_aliases = []

def tearDown(self):
delete_raw = self.es_con + "/" + self.ocean_index
requests.delete(delete_raw, verify=False)

delete_enrich = self.es_con + "/" + self.enrich_index
requests.delete(delete_enrich, verify=False)
delete_test_idx = self.es_con + "/" + 'test*'
requests.delete(delete_test_idx, verify=False)

def _test_items_to_raw(self):
"""Test whether fetched items are properly loaded to ES"""
Expand Down

0 comments on commit 48486d0

Please sign in to comment.