| 1 |
## Tests for checking xplugin behaviour when server is using expired ssl certificates. |
| 2 |
|
| 3 |
## Preamble |
| 4 |
--source include/xplugin_preamble.inc |
| 5 |
--source include/xplugin_create_user.inc |
| 6 |
|
| 7 |
# OpenSSL >= 1.1.1 also fail early |
| 8 |
call mtr.add_suppression('Failed to initialize TLS for channel: mysql_main'); |
| 9 |
call mtr.add_suppression("SSL error: Unable to get certificate from"); |
| 10 |
call mtr.add_suppression("Failed to set up SSL because of the following SSL library error: Unable to get certificate"); |
| 11 |
|
| 12 |
#echo Suppress expiration warning by the server check |
| 13 |
call mtr.add_suppression("Server SSL certificate doesn't verify"); |
| 14 |
|
| 15 |
# Tests |
| 16 |
--write_file $MYSQL_TMP_DIR/expired_ssl_certs.xpl |
| 17 |
-->quiet |
| 18 |
|
| 19 |
-->stmtsql show global status like 'Mysqlx_ssl_server_not%'; |
| 20 |
-->recvresult |
| 21 |
|
| 22 |
EOF |
| 23 |
|
| 24 |
--replace_regex /Mysqlx_ssl_server_not_after([[:space:]]*)[-a-zA-Z0-9: ]*/Mysqlx_ssl_server_not_after\1/ /Mysqlx_ssl_server_not_before([[:space:]]*)[a-zA-Z0-9: ]*/Mysqlx_ssl_server_not_before\1/ |
| 25 |
--exec $MYSQLXTEST -ux_root --password='' --file=$MYSQL_TMP_DIR/expired_ssl_certs.xpl 2>&1 |
| 26 |
|
| 27 |
## Cleanup |
| 28 |
--source ../include/xplugin_cleanup.inc |