Debian Codegraph @

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

raw
1 call mtr.add_suppression("Failed to initialize TLS for channel: mysql_main");
2 call mtr.add_suppression(".*Failed to set up SSL.*");
3
4 ############################################################
5 ## Test starts MySQL Server without configured SSL
6 ##
7 ## * Verify client ssl-mode vs MySQL Server without SSL
8 [Verify that SSL_cert and SSL_mode=disabled, makes 'mysqlx_ssl_active' status variable set to OFF]
9 Mysqlx.Ok {
10 msg: "bye!"
11 }
12 ok
13 [Verify that SSL_cert and SSL_mode=preferred, makes 'mysqlx_ssl_active' status variable set to OFF]
14 Mysqlx.Ok {
15 msg: "bye!"
16 }
17 ok
18 Application terminated with expected error: Capability prepare failed for 'tls' (code 5001)
19 ok
20 Application terminated with expected error: Capability prepare failed for 'tls' (code 5001)
21 ok
22 Application terminated with expected error: Capability prepare failed for 'tls' (code 5001)
23 ok
24
25 ############################################################
26 ## Restart MySQL Server with configured SSL and certificate
27 ## that can be verified
28 ##
29 ## * Verify client ssl-mode vs MySQL Server with SSL
30 # $SSL_VERIFICABLE$
31 [Verify that SSL_cert and SSL_mode=disabled, makes 'mysqlx_ssl_active' status variable set to OFF]
32 Mysqlx.Ok {
33 msg: "bye!"
34 }
35 ok
36 [Verify that SSL_cert and SSL_mode=preferred, makes 'mysqlx_ssl_active' status variable set to ON]
37 Mysqlx.Ok {
38 msg: "bye!"
39 }
40 ok
41 [Verify that SSL_cert and SSL_mode=required, makes 'mysqlx_ssl_active' status variable set to ON]
42 Mysqlx.Ok {
43 msg: "bye!"
44 }
45 ok
46 [Verify that SSL_cert and SSL_mode=verify_ca, makes 'mysqlx_ssl_active' status variable set to ON]
47 Mysqlx.Ok {
48 msg: "bye!"
49 }
50 ok
51 [Verify that SSL_cert and SSL_mode=verify_identity, makes 'mysqlx_ssl_active' status variable set to ON]
52 Mysqlx.Ok {
53 msg: "bye!"
54 }
55 ok
56 [Verify that SSL_cert and SSL_mode=required, makes 'mysqlx_ssl_active' status variable set to ON]
57 Mysqlx.Ok {
58 msg: "bye!"
59 }
60 ok
61 Application terminated with expected error: TLS was marked that requires "CA", but it was not configured (code 2503)
62 ok
63
64 ############################################################
65 ## Restart MySQL Server with configured SSL and certificate
66 ## that can't be verified
67 ##
68 ## * Verify client ssl-mode vs MySQL Server with SSL
69 # $SSL_NOT_VERIFICABLE$
70 [Verify that SSL_cert and SSL_mode=disabled, makes 'mysqlx_ssl_active' status variable set to OFF]
71 Mysqlx.Ok {
72 msg: "bye!"
73 }
74 ok
75 [Verify that SSL_cert and SSL_mode=preferred, makes 'mysqlx_ssl_active' status variable set to ON]
76 Mysqlx.Ok {
77 msg: "bye!"
78 }
79 ok
80 [Verify that SSL_cert and SSL_mode=required, makes 'mysqlx_ssl_active' status variable set to ON]
81 Mysqlx.Ok {
82 msg: "bye!"
83 }
84 ok
85 [Verify that SSL_cert and SSL_mode=verify_ca, makes 'mysqlx_ssl_active' status variable set to ON]
86 Mysqlx.Ok {
87 msg: "bye!"
88 }
89 ok
90 Application terminated with expected error: SSL certificate validation failure (code 2026)
91 ok
92 [Verify that SSL_cert and SSL_mode=required, makes 'mysqlx_ssl_active' status variable set to ON]
93 Mysqlx.Ok {
94 msg: "bye!"
95 }
96 ok
97 Application terminated with expected error: TLS was marked that requires "CA", but it was not configured (code 2503)
98 ok
99 # restart: