Update helm test for Elasticsearch

Removing the use of python during helm test script as it
is no longer in the image.

Change-Id: Id8feff1bee8c3f2dd277307d176f6a535c5f7ba6
This commit is contained in:
SPEARS, DUSTIN (ds443n) 2024-10-24 13:54:25 -04:00
parent aad6fc07d7
commit 42940f326a
3 changed files with 5 additions and 9 deletions

View File

@ -15,7 +15,7 @@ apiVersion: v1
appVersion: v8.9.0 appVersion: v8.9.0
description: OpenStack-Helm ElasticSearch description: OpenStack-Helm ElasticSearch
name: elasticsearch name: elasticsearch
version: 0.3.7 version: 0.3.8
home: https://www.elastic.co/ home: https://www.elastic.co/
sources: sources:
- https://github.com/elastic/elasticsearch - https://github.com/elastic/elasticsearch

View File

@ -15,11 +15,6 @@ limitations under the License.
set -ex set -ex
python='python'
if [[ $(which python3) ]]; then
python='python3'
fi
function create_test_index () { function create_test_index () {
index_result=$(curl ${CACERT_OPTION} -K- <<< "--user ${ELASTICSEARCH_USERNAME}:${ELASTICSEARCH_PASSWORD}" \ index_result=$(curl ${CACERT_OPTION} -K- <<< "--user ${ELASTICSEARCH_USERNAME}:${ELASTICSEARCH_PASSWORD}" \
-XPUT "${ELASTICSEARCH_ENDPOINT}/test_index?pretty" -H 'Content-Type: application/json' -d' -XPUT "${ELASTICSEARCH_ENDPOINT}/test_index?pretty" -H 'Content-Type: application/json' -d'
@ -31,9 +26,9 @@ function create_test_index () {
} }
} }
} }
' | $python -c "import sys, json; print(json.load(sys.stdin)['acknowledged'])") ' | grep -o '"acknowledged" *: *true')
if [ "$index_result" == "True" ];
then if [ -n "$index_result" ]; then
echo "PASS: Test index created!"; echo "PASS: Test index created!";
else else
echo "FAIL: Test index not created!"; echo "FAIL: Test index not created!";

View File

@ -48,4 +48,5 @@ elasticsearch:
- 0.3.5 Remove gateway node role - 0.3.5 Remove gateway node role
- 0.3.6 Add 2024.1 Ubuntu Jammy overrides - 0.3.6 Add 2024.1 Ubuntu Jammy overrides
- 0.3.7 Add 2024.2 overrides - 0.3.7 Add 2024.2 overrides
- 0.3.8 Remove use of python in helm tests
... ...