File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,11 +19,12 @@ srcdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
1919
2020cd "$srcdir/..";
2121
22+ # shellcheck disable=SC1091
2223. ./tests/utils.sh
2324
2425section "E l a s t i c s e a r c h"
2526
26- export ELASTICSEARCH_VERSIONS="${@ :-${ELASTICSEARCH_VERSIONS:-latest 1.3 1.4 1.5 1.6 1.7 2.0 2.1 2.2 2.3 2.4 5.0 5.1 5.2 5.3 5.4 5.5 5.6 6.0.1 6.1.1}}"
27+ export ELASTICSEARCH_VERSIONS="${* :-${ELASTICSEARCH_VERSIONS:-latest 1.3 1.4 1.5 1.6 1.7 2.0 2.1 2.2 2.3 2.4 5.0 5.1 5.2 5.3 5.4 5.5 5.6 6.0.1 6.1.1}}"
2728
2829ELASTICSEARCH_HOST="${DOCKER_HOST:-${ELASTICSEARCH_HOST:-${HOST:-localhost}}}"
2930ELASTICSEARCH_HOST="${ELASTICSEARCH_HOST##*/}"
@@ -43,7 +44,7 @@ test_elasticsearch(){
4344 local version="$1"
4445 section2 "Setting up Elasticsearch $version test container"
4546 if [ "$version" != "latest" ] && [ "${version:0:1}" -ge 6 ]; then
46- local export COMPOSE_FILE="$srcdir/docker/$DOCKER_SERVICE-elastic.co-docker-compose.yml"
47+ export COMPOSE_FILE="$srcdir/docker/$DOCKER_SERVICE-elastic.co-docker-compose.yml"
4748 fi
4849 docker_compose_pull
4950 VERSION="$version" docker-compose up -d
@@ -63,6 +64,7 @@ test_elasticsearch(){
6364 ELASTICSEARCH_PORT="$ELASTICSEARCH_PORT_DEFAULT" \
6465 ERRCODE=1 run_grep "^NO_AVAILABLE_SERVER$" ./find_active_elasticsearch.py $non_es_node1 $non_es_node2
6566
67+ # shellcheck disable=SC2097,SC2098
6668 ELASTICSEARCH_PORT="$ELASTICSEARCH_PORT_DEFAULT" \
6769 run_grep "^$ELASTICSEARCH_HOST:$ELASTICSEARCH_PORT$" ./find_active_elasticsearch.py $non_es_node1 $non_es_node2 "$ELASTICSEARCH_HOST:$ELASTICSEARCH_PORT"
6870
You can’t perform that action at this time.
0 commit comments