Debian Codegraph @

mysql-test/suite/x/t/connection_invalid.test

raw
1 ## Preamble
2
3 --source include/xplugin_preamble.inc
4 --source include/xplugin_create_user.inc
5
6 #
7 ## Test start here
8 --echo
9 --echo ## Test verifies invalid cross connections
10 --echo #
11 --echo # 1. Verify failure at cross connecting classic-client to x-server
12 --echo # 2. Verify failure at cross connecting x-client to classic-server
13 --echo #
14 --echo # Where classic server is old mysql protocol that usually resides
15 --echo # on tcp port 3306.
16 --echo #
17 --echo # Where x-server is the x-protocol that usually resides on tcp port
18 --echo # 33060.
19 --echo #
20
21 --echo
22 --echo #
23 --echo # 1. Verify failure at cross connecting classic-client to x-server
24 --error 1
25 exec $MYSQL
26 --host=127.0.0.1 -P $MASTER_X_MYPORT
27 -ux_root
28 --ssl-mode=DISABLED
29 -e "SELECT USER(), CURRENT_USER()" 2>&1;
30
31 --echo
32 --echo #
33 --echo # 2. Verify failure at cross connecting x-client to classic-server
34 exec $MYSQLXTEST
35 --host=127.0.0.1 -P $MASTER_MYPORT
36 -ux_root --expect-error 2006
37 --no-connect-attrs --ssl-mode=DISABLED
38 -e "SELECT USER(), CURRENT_USER()" 2>&1;
39
40 #
41 ## Cleanup
42 --source ../include/xplugin_cleanup.inc