Debian Codegraph @

mysql-test/suite/x/r/connection_require_secure_transport.result

raw
1 Wait for the X Plugin before restarting the server
2 Mysqlx.Ok {
3 msg: "bye!"
4 }
5 ok
6 Test different connection types while secure transport when the server was started with this flag set to ON
7 # restart: --require_secure_transport=ON
8 send Mysqlx.Session.AuthenticateStart {
9 mech_name: "PLAIN"
10 auth_data: "\000x_root\000"
11 }
12
13 Mysqlx.Session.AuthenticateOk {
14 auth_data: ""
15 }
16
17 ok
18 send Mysqlx.Connection.CapabilitiesSet {
19 capabilities {
20 capabilities {
21 name: "tls"
22 value {
23 type: SCALAR
24 scalar {
25 type: V_BOOL
26 v_bool: true
27 }
28 }
29 }
30 }
31 }
32
33 Mysqlx.Ok {
34 }
35
36 send Mysqlx.Session.AuthenticateStart {
37 mech_name: "PLAIN"
38 auth_data: "\000x_root\000"
39 }
40
41 Mysqlx.Session.AuthenticateOk {
42 auth_data: ""
43 }
44
45 ok
46 send Mysqlx.Session.AuthenticateStart {
47 mech_name: "PLAIN"
48 auth_data: "\000x_root\000"
49 }
50
51 Mysqlx.Error {
52 severity: FATAL
53 code: 1251
54 msg: "Invalid authentication method PLAIN"
55 sql_state: "HY000"
56 }
57
58 not ok
59 Application terminated with expected error: Connections using insecure transport are prohibited while --require_secure_transport=ON. (code 3159)
60 ok
61 SET GLOBAL require_secure_transport=OFF;
62 send Mysqlx.Session.AuthenticateStart {
63 mech_name: "PLAIN"
64 auth_data: "\000x_root\000"
65 }
66
67 Mysqlx.Error {
68 severity: FATAL
69 code: 1251
70 msg: "Invalid authentication method PLAIN"
71 sql_state: "HY000"
72 }
73
74 not ok
75 send Mysqlx.Session.AuthenticateStart {
76 mech_name: "PLAIN"
77 auth_data: "\000x_root\000"
78 }
79
80 Mysqlx.Session.AuthenticateOk {
81 auth_data: ""
82 }
83
84 ok
85 Mysqlx.Ok {
86 msg: "bye!"
87 }
88 ok