7
7
# Export the TEST_SUITE variable, eg. 'free' or 'platinum' defaults to 'free'.
8
8
# Export the NUMBER_OF_NODES variable to start more than 1 node
9
9
10
- # Version 1.2 .0
10
+ # Version 1.3 .0
11
11
# - Initial version of the run-elasticsearch.sh script
12
12
# - Deleting the volume should not dependent on the container still running
13
13
# - Fixed `ES_JAVA_OPTS` config
14
14
# - Moved to STACK_VERSION and TEST_VERSION
15
15
# - Refactored into functions and imports
16
16
# - Support NUMBER_OF_NODES
17
17
# - 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
18
20
19
21
script_path=$( dirname $( realpath -s $0 ) )
20
22
source $script_path /functions/imports.sh
@@ -37,6 +39,7 @@ environment=($(cat <<-END
37
39
--env node.attr.testattr=test
38
40
--env path.repo=/tmp
39
41
--env repositories.url.allowed_urls=http://snapshot.test*
42
+ --env action.destructive_requires_name=false
40
43
END
41
44
) )
42
45
if [[ " $TEST_SUITE " == " platinum" ]]; then
@@ -50,6 +53,7 @@ if [[ "$TEST_SUITE" == "platinum" ]]; then
50
53
--env xpack.security.http.ssl.certificate=certs/testnode.crt
51
54
--env xpack.security.http.ssl.certificate_authorities=certs/ca.crt
52
55
--env xpack.security.transport.ssl.enabled=true
56
+ --env xpack.security.transport.ssl.verification_mode=certificate
53
57
--env xpack.security.transport.ssl.key=certs/testnode.key
54
58
--env xpack.security.transport.ssl.certificate=certs/testnode.crt
55
59
--env xpack.security.transport.ssl.certificate_authorities=certs/ca.crt
104
108
docker run \
105
109
--name " $node_name " \
106
110
--network " $network_name " \
107
- --env " ES_JAVA_OPTS=-Xms1g -Xmx1g" \
111
+ --env " ES_JAVA_OPTS=-Xms1g -Xmx1g -da:org.elasticsearch.xpack.ccr.index.engine.FollowingEngineAssertions " \
108
112
" ${environment[@]} " \
109
113
" ${volumes[@]} " \
110
114
--publish " $http_port " :9200 \
0 commit comments