## UNIX Socket connections ## Preamble --source include/not_windows.inc --source include/xplugin_preamble.inc --source include/xplugin_create_user.inc --write_file $MYSQL_TMP_DIR/check_plain_connection.tmp -->import connection.macro -->callmacro Verify_its_xprotocol_connection Mysqlx.Session.AuthenticateStart { mech_name: "PLAIN" auth_data: "\0x_root\0" } -->recvuntil Mysqlx.Session.AuthenticateOk do_not_show_intermediate EOF --write_file $MYSQL_TMP_DIR/check_connection.tmp EOF --write_file $MYSQL_TMP_DIR/check_ssl_plain_connection.tmp -->import connection.macro -->callmacro Verify_its_xprotocol_connection -->callmacro Enable_ssl_on_xprotocol_and_transmision_layer Mysqlx.Session.AuthenticateStart { mech_name: "PLAIN" auth_data: "\0x_root\0" } -->recvuntil Mysqlx.Session.AuthenticateOk do_not_show_intermediate EOF --echo Wait for the X Plugin before restarting the server --exec $MYSQLXTEST -q -ux_root --password='' --file=$MYSQL_TMP_DIR/check_connection.tmp 2>&1 --echo Test different connection types while secure transport when the server was started with this flag set to ON # Cases when the flag is dynamicly changes is tests in related x test file (for example connection_ssl.test) let $restart_parameters = restart: --require_secure_transport=ON; --source include/restart_mysqld.inc --exec $MYSQLXTEST -n --socket=$MASTER_X_MYSOCK -ux_root --password='' --file=$MYSQL_TMP_DIR/check_plain_connection.tmp 2>&1 --exec $MYSQLXTEST -n -ux_root --password='' --ssl-ca=$MYSQL_TEST_DIR/std_data/cacert.pem --ssl-key=$MYSQL_TEST_DIR/std_data/client-key.pem --ssl-cert=$MYSQL_TEST_DIR/std_data/client-cert.pem --file=$MYSQL_TMP_DIR/check_ssl_plain_connection.tmp 2>&1 --error 1 --exec $MYSQLXTEST -n -ux_root --password='' --file=$MYSQL_TMP_DIR/check_plain_connection.tmp 2>&1 --exec $MYSQLXTEST --expect-error ER_SECURE_TRANSPORT_REQUIRED -ux_root --password='' --file=$MYSQL_TMP_DIR/check_connection.tmp 2>&1 SET GLOBAL require_secure_transport=OFF; --error 1 --exec $MYSQLXTEST -n -ux_root --password='' --file=$MYSQL_TMP_DIR/check_plain_connection.tmp 2>&1 --exec $MYSQLXTEST -n --socket=$MASTER_X_MYSOCK -ux_root --password='' --file=$MYSQL_TMP_DIR/check_plain_connection.tmp 2>&1 --exec $MYSQLXTEST -ux_root --password='' --file=$MYSQL_TMP_DIR/check_connection.tmp 2>&1 ## Cleanup --remove_file $MYSQL_TMP_DIR/check_plain_connection.tmp --remove_file $MYSQL_TMP_DIR/check_connection.tmp --remove_file $MYSQL_TMP_DIR/check_ssl_plain_connection.tmp --source include/xplugin_drop_user.inc