Skip to content

Commit

Permalink
tests: fix sneaking in indices
Browse files Browse the repository at this point in the history
  • Loading branch information
utnapischtim committed Dec 9, 2024
1 parent a7cea33 commit b0d2fae
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,14 @@ def prefixed_search(app):
except (search_engine.RequestError, IndexAlreadyExistsError):
list(current_search.delete(ignore=[404]))
list(current_search.create(ignore=[400]))

try:
current_search_client.indices.delete(".opensearch-sap-log-types-config")
current_search_client.indices.delete(".opensearch-observability")
current_search_client.indices.delete(".plugins-ml-config")
except Exception:
pass

current_search_client.indices.refresh()
yield current_search_client
list(current_search.delete(ignore=[404]))
Expand Down

0 comments on commit b0d2fae

Please sign in to comment.