Current Path : /usr/opt/mysql57/mysql-test/suite/x/t/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/opt/mysql57/mysql-test/suite/x/t/connection_require_secure_transport.test |
## UNIX Socket connections ## Preamble --source include/not_windows.inc --source ../include/xplugin_preamble.inc --write_file $MYSQL_TMP_DIR/check_plain_connection.tmp Mysqlx.Session.AuthenticateStart { mech_name: "PLAIN" auth_data: "\0root\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 Mysqlx.Connection.CapabilitiesSet { capabilities { capabilities { name: "tls" value { type: SCALAR scalar { type:V_BOOL v_bool: 1 } } } } } -->recvtype Mysqlx.Ok -->enablessl Mysqlx.Session.AuthenticateStart { mech_name: "PLAIN" auth_data: "\0root\0" } -->recvuntil Mysqlx.Session.AuthenticateOk do_not_show_intermediate EOF call mtr.add_suppression("Plugin mysqlx reported: ....: Unsuccessful login attempt: Secure transport required. To log in you must use TCP.SSL or UNIX socket connection"); --echo Wait for the X Plugin before restarting the server --exec $MYSQLXTEST -q -uroot --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_and_wait_for_xplugin.inc --exec $MYSQLXTEST -n --socket=$MASTER_X_MYSOCK -uroot --password='' --file=$MYSQL_TMP_DIR/check_plain_connection.tmp 2>&1 --exec $MYSQLXTEST -n -uroot --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 -uroot --password='' --file=$MYSQL_TMP_DIR/check_plain_connection.tmp 2>&1 --let $expected_error_msg= Secure transport required. To log in you must use TCP\+SSL or UNIX socket connection. \(code 1045\) --source ../include/mysqlxtest_expected_error.inc --exec $MYSQLXTEST -uroot --password='' --file=$MYSQL_TMP_DIR/check_connection.tmp 2>&1 SET GLOBAL require_secure_transport=OFF; --error 1 --exec $MYSQLXTEST -n -uroot --password='' --file=$MYSQL_TMP_DIR/check_plain_connection.tmp 2>&1 --exec $MYSQLXTEST -n --socket=$MASTER_X_MYSOCK -uroot --password='' --file=$MYSQL_TMP_DIR/check_plain_connection.tmp 2>&1 --exec $MYSQLXTEST -uroot --password='' --file=$MYSQL_TMP_DIR/check_connection.tmp 2>&1 ## Postamble --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 UNINSTALL PLUGIN mysqlx;