From d3e046d80382a3bed933d55d3379ef2dc31f2781 Mon Sep 17 00:00:00 2001 From: Steve Wilkerson Date: Wed, 12 Dec 2018 12:43:13 -0600 Subject: [PATCH] Elasticsearch: Update helm test This updates the Elasticsearch helm test to execute a clean on the test index before attempting to create it, in cases where a stranded test index may exist Change-Id: I87533f94f6ea55b0b2f929543f8d3e75baa81bed --- elasticsearch/templates/bin/_helm-tests.sh.tpl | 1 + 1 file changed, 1 insertion(+) diff --git a/elasticsearch/templates/bin/_helm-tests.sh.tpl b/elasticsearch/templates/bin/_helm-tests.sh.tpl index 7036df8e6a..166114ae8e 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