commit 92988c4f7618b714f18e04c4b601a5cb0fde495c Author: Laurynas Biveinis Date: Mon Jun 19 05:55:53 2017 +0300 Bug 75311 (Error for SSL cipher is unhelpful) follow-up for X plugin In x.connection_tls_version testcase, expect different OpenSSL and YaSSL diagnostics due to bug 75311 fix. diff --git a/rapid/plugin/x/tests/mtr/r/connection_tls_version.result b/rapid/plugin/x/tests/mtr/r/connection_tls_version.result index 7359306ea95..af3ca44c817 100644 --- a/rapid/plugin/x/tests/mtr/r/connection_tls_version.result +++ b/rapid/plugin/x/tests/mtr/r/connection_tls_version.result @@ -167,7 +167,7 @@ Mysqlx.Ok { msg: "bye!" } ok -Application terminated with expected error: protocol version mismatch (code 2026) +Application terminated with expected error: unsupported protocol (code 2026) not ok CONNECTION_TYPE SSL/TLS @@ -182,7 +182,7 @@ Mysqlx.Ok { msg: "bye!" } ok -Application terminated with expected error: protocol version mismatch (code 2026) +Application terminated with expected error: unsupported protocol (code 2026) not ok Application terminated with expected error: TLS version is invalid (code 2026) not ok diff --git a/rapid/plugin/x/tests/mtr/t/connection_tls_version.test b/rapid/plugin/x/tests/mtr/t/connection_tls_version.test index 187affffc00..ce46f24c2e9 100644 --- a/rapid/plugin/x/tests/mtr/t/connection_tls_version.test +++ b/rapid/plugin/x/tests/mtr/t/connection_tls_version.test @@ -30,8 +30,12 @@ EOF --exec $MYSQLXTEST -uroot --file=$xtest_file 2>&1 --let $XTESTPARAMS= -u user5_mysqlx --password='auth_string' --file=$xtest_file --ssl-cipher='DHE-RSA-AES256-SHA' ---let $ERROR1= /in main, line 0:ERROR: error:00000001:lib\(0\):func\(0\):reason\(1\)/Application terminated with expected error: protocol version mismatch/ ---let $ERROR5= /in main, line 0:ERROR: error:00000005:lib\(0\):func\(0\):DH lib/Application terminated with expected error: socket layer receive error/ + +# In ERROR1 and ERROR5, the first regex handles OpenSSL, the second one YaSSL + +--let $ERROR1= /in main, line 0:ERROR: error:14077102:SSL routines:SSL23_GET_SERVER_HELLO:/Application terminated with expected error: / /in main, line 0:ERROR: not in error state /Application terminated with expected error: unsupported protocol / + +--let $ERROR5= /in main, line 0:ERROR: error:00000000:lib\(0\):func\(0\):reason\(0\)/Application terminated with expected error: socket layer receive error/ /in main, line 0:ERROR: not in error state /Application terminated with expected error: socket layer receive error / --exec $MYSQLXTEST $XTESTPARAMS 2>&1 --exec $MYSQLXTEST --tls-version=TLSv1,TLSv1.1,TLSv1.2 $XTESTPARAMS 2>&1 @@ -55,14 +59,14 @@ EOF --exec $MYSQLXTEST --tls-version=TLSv1,TLSv1.2 $XTESTPARAMS 2>&1 --let $expected_error_extra= $ERROR1 ---let $expected_error_msg= protocol version mismatch \(code 2026\) +--let $expected_error_msg= unsupported protocol \(code 2026\) --source ../include/mysqlxtest_expected_error.inc --exec $MYSQLXTEST --tls-version=TLSv1.1,TLSv1.2 $XTESTPARAMS 2>&1 --exec $MYSQLXTEST --tls-version=TLSv1 $XTESTPARAMS 2>&1 --let $expected_error_extra= $ERROR1 ---let $expected_error_msg= protocol version mismatch \(code 2026\) +--let $expected_error_msg= unsupported protocol \(code 2026\) --source ../include/mysqlxtest_expected_error.inc --exec $MYSQLXTEST --tls-version=TLSv1.1 $XTESTPARAMS 2>&1