File tree 5 files changed +8
-9
lines changed
5 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ if [[ -z $es_node_name ]]; then
43
43
44
44
fi
45
45
46
- export script_path=$( dirname $( realpath -s $0 ) )
46
+ export script_path=$( dirname $( realpath $0 ) )
47
47
source $script_path /functions/cleanup.sh
48
48
source $script_path /functions/wait-for-container.sh
49
49
trap " cleanup_trap ${network_name} " EXIT
Original file line number Diff line number Diff line change 21
21
# - Moved ELASTIC_PASSWORD and xpack.security.enabled to the base arguments for "Security On by default"
22
22
# - Use https only when TEST_SUITE is "platinum", when "free" use http
23
23
24
- script_path=$( dirname $( realpath -s $0 ) )
24
+ script_path=$( dirname $( realpath $0 ) )
25
25
source $script_path /functions/imports.sh
26
26
set -euo pipefail
27
27
Original file line number Diff line number Diff line change @@ -28,8 +28,6 @@ docker build \
28
28
--file .buildkite/Dockerfile \
29
29
--tag elastic/elasticsearch-py \
30
30
--build-arg " PYTHON_VERSION=${PYTHON_VERSION} " \
31
- --build-arg " BUILDER_UID=$( id -u) " \
32
- --build-arg " BUILDER_GID=$( id -g) " \
33
31
.
34
32
35
33
echo -e " \033[1m>>>>> Run [elastic/elasticsearch-py container] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>\033[0m"
Original file line number Diff line number Diff line change 5
5
# - Add `$RUNSCRIPTS` env var for running Elasticsearch dependent products
6
6
7
7
# Default environment variables
8
- export STACK_VERSION=" ${STACK_VERSION:= 8.0 .0-SNAPSHOT} "
8
+ export STACK_VERSION=" ${STACK_VERSION:= 8.16 .0-SNAPSHOT} "
9
9
export TEST_SUITE=" ${TEST_SUITE:= platinum} "
10
- export PYTHON_VERSION=" ${PYTHON_VERSION:= 3.9 } "
10
+ export PYTHON_VERSION=" ${PYTHON_VERSION:= 3.12 } "
11
11
export PYTHON_CONNECTION_CLASS=" ${PYTHON_CONNECTION_CLASS:= urllib3} "
12
12
13
- script_path=$( dirname $( realpath -s $0 ) )
13
+ script_path=$( dirname $( realpath $0 ) )
14
14
source $script_path /functions/imports.sh
15
15
set -euo pipefail
16
16
Original file line number Diff line number Diff line change 22
22
from typing import Optional , Tuple
23
23
24
24
from elasticsearch import (
25
+ ApiError ,
25
26
AuthorizationException ,
26
27
ConnectionError ,
27
28
Elasticsearch ,
@@ -55,7 +56,7 @@ def es_url() -> str:
55
56
error = None
56
57
for url in urls_to_try :
57
58
if url .startswith ("https://" ):
58
- client = Elasticsearch (url , ca_certs = CA_CERTS , verify_certs = False )
59
+ client = Elasticsearch (url , ca_certs = CA_CERTS , verify_certs = True )
59
60
else :
60
61
client = Elasticsearch (url )
61
62
try :
@@ -72,7 +73,7 @@ def es_url() -> str:
72
73
except ConnectionError :
73
74
time .sleep (0.1 )
74
75
75
- except ConnectionError as e :
76
+ except ConnectionError , ApiError as e :
76
77
if error is None :
77
78
error = str (e )
78
79
else :
You can’t perform that action at this time.
0 commit comments