File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,16 @@ test_dir="$(readlink -f $(dirname "${BASH_SOURCE[0]}"))"
3636s2i_args=" --pull-policy=never "
3737
3838function mysql_cmd() {
39+ # MariaDB 11.3+ enforces stricter SSL/TLS verification (certificate & hostname checks),
40+ # so tests may require this option for compatibility.
3941 local container_ip=" $1 " ; shift
4042 local login=" $1 " ; shift
4143 local password=" $1 " ; shift
42- docker run --rm ${CONTAINER_EXTRA_ARGS:- } " $IMAGE_NAME " mysql --host " $container_ip " -u" $login " -p" $password " " $@ " db
44+ local disable_verify_server=" "
45+ if [ " $VERSION " == " 11.8" ]; then
46+ disable_verify_server=" --disable-ssl-verify-server-cert"
47+ fi
48+ docker run --rm ${CONTAINER_EXTRA_ARGS:- } " $IMAGE_NAME " mysql --host " $container_ip " -u " $login " -p" $password " " $@ " $disable_verify_server db
4349}
4450
4551function test_connection() {
You can’t perform that action at this time.
0 commit comments