diff --git a/elasticsearch/templates/bin/_helm-tests.sh.tpl b/elasticsearch/templates/bin/_helm-tests.sh.tpl index 7036df8e6..166114ae8 100644 --- a/elasticsearch/templates/bin/_helm-tests.sh.tpl +++ b/elasticsearch/templates/bin/_helm-tests.sh.tpl @@ -97,6 +97,7 @@ function remove_test_index () { -XDELETE "${ELASTICSEARCH_ENDPOINT}/test_index" } +remove_test_index || true create_test_index insert_data_into_test_index check_hits_on_test_data