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.2 .0
10+ # Version 1.3 .0
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
1414# - Moved to STACK_VERSION and TEST_VERSION
1515# - Refactored into functions and imports
1616# - Support NUMBER_OF_NODES
1717# - Added 5 retries on docker pull for fixing transient network errors
18+ # - Added flags to make local CCR configurations work
19+ # - Added action.destructive_requires_name=false as the default will be true in v8
1820
1921script_path=$( dirname $( realpath -s $0 ) )
2022source $script_path /functions/imports.sh
@@ -37,6 +39,7 @@ environment=($(cat <<-END
3739 --env node.attr.testattr=test
3840 --env path.repo=/tmp
3941 --env repositories.url.allowed_urls=http://snapshot.test*
42+ --env action.destructive_requires_name=false
4043END
4144) )
4245if [[ " $TEST_SUITE " == " platinum" ]]; then
@@ -45,11 +48,11 @@ if [[ "$TEST_SUITE" == "platinum" ]]; then
4548 --env xpack.license.self_generated.type=trial
4649 --env xpack.security.enabled=true
4750 --env xpack.security.http.ssl.enabled=true
48- --env xpack.security.http.ssl.verification_mode=certificate
4951 --env xpack.security.http.ssl.key=certs/testnode.key
5052 --env xpack.security.http.ssl.certificate=certs/testnode.crt
5153 --env xpack.security.http.ssl.certificate_authorities=certs/ca.crt
5254 --env xpack.security.transport.ssl.enabled=true
55+ --env xpack.security.transport.ssl.verification_mode=certificate
5356 --env xpack.security.transport.ssl.key=certs/testnode.key
5457 --env xpack.security.transport.ssl.certificate=certs/testnode.crt
5558 --env xpack.security.transport.ssl.certificate_authorities=certs/ca.crt
104107 docker run \
105108 --name " $node_name " \
106109 --network " $network_name " \
107- --env " ES_JAVA_OPTS=-Xms1g -Xmx1g" \
110+ --env " ES_JAVA_OPTS=-Xms1g -Xmx1g -da:org.elasticsearch.xpack.ccr.index.engine.FollowingEngineAssertions " \
108111 " ${environment[@]} " \
109112 " ${volumes[@]} " \
110113 --publish " $http_port " :9200 \
0 commit comments