77# Export the TEST_SUITE variable, eg. 'free' or 'platinum' defaults to 'free'.
88# Export the NUMBER_OF_NODES variable to start more than 1 node
99
10- # Version 1.5.0
10+ # Version 1.6.1
1111# - Initial version of the run-elasticsearch.sh script
1212# - Deleting the volume should not dependent on the container still running
1313# - Fixed `ES_JAVA_OPTS` config
1818# - Added flags to make local CCR configurations work
1919# - Added action.destructive_requires_name=false as the default will be true in v8
2020# - Added ingest.geoip.downloader.enabled=false as it causes false positives in testing
21- # - Moved ELASTIC_PASSWORD to the base arguments for "Security On by default"
21+ # - Moved ELASTIC_PASSWORD and xpack.security.enabled to the base arguments for "Security On by default"
22+ # - Use https only when TEST_SUITE is "platinum", when "free" use http
23+ # - Set xpack.security.enabled=false for "free" and xpack.security.enabled=true for "platinum"
2224
2325script_path=$( dirname $( realpath -s $0 ) )
2426source $script_path /functions/imports.sh
@@ -44,12 +46,13 @@ environment=($(cat <<-END
4446 --env repositories.url.allowed_urls=http://snapshot.test*
4547 --env action.destructive_requires_name=false
4648 --env ingest.geoip.downloader.enabled=false
49+ --env cluster.deprecation_indexing.enabled=false
4750END
4851) )
4952if [[ " $TEST_SUITE " == " platinum" ]]; then
5053 environment+=($( cat << -END
51- --env xpack.license.self_generated.type=trial
5254 --env xpack.security.enabled=true
55+ --env xpack.license.self_generated.type=trial
5356 --env xpack.security.http.ssl.enabled=true
5457 --env xpack.security.http.ssl.verification_mode=certificate
5558 --env xpack.security.http.ssl.key=certs/testnode.key
6871 --volume $ssl_ca :/usr/share/elasticsearch/config/certs/ca.crt
6972END
7073) )
74+ else
75+ environment+=($( cat << -END
76+ --env xpack.security.enabled=false
77+ --env xpack.security.http.ssl.enabled=false
78+ END
79+ ) )
7180fi
7281
7382cert_validation_flags=" "
0 commit comments