| 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: |
| 100 |
|
| 101 |
############################################################ |
| 102 |
## Test starts MySQL Server without configured SSL |
| 103 |
## |
| 104 |
## * Verify client ssl-mode vs MySQL Server without SSL |
| 105 |
[Verify that SSL_cert and SSL_mode=disabled, makes 'mysqlx_ssl_active' status variable set to OFF] |
| 106 |
Mysqlx.Ok { |
| 107 |
msg: "bye!" |
| 108 |
} |
| 109 |
ok |
| 110 |
[Verify that SSL_cert and SSL_mode=preferred, makes 'mysqlx_ssl_active' status variable set to OFF] |
| 111 |
Mysqlx.Ok { |
| 112 |
msg: "bye!" |
| 113 |
} |
| 114 |
ok |
| 115 |
Application terminated with expected error: Capability prepare failed for 'tls' (code 5001) |
| 116 |
ok |
| 117 |
Application terminated with expected error: Capability prepare failed for 'tls' (code 5001) |
| 118 |
ok |
| 119 |
Application terminated with expected error: Capability prepare failed for 'tls' (code 5001) |
| 120 |
ok |
| 121 |
|
| 122 |
############################################################ |
| 123 |
## Restart MySQL Server with configured SSL and certificate |
| 124 |
## that can be verified |
| 125 |
## |
| 126 |
## * Verify client ssl-mode vs MySQL Server with SSL |
| 127 |
# $SSL_VERIFICABLE$ |
| 128 |
[Verify that SSL_cert and SSL_mode=disabled, makes 'mysqlx_ssl_active' status variable set to OFF] |
| 129 |
Mysqlx.Ok { |
| 130 |
msg: "bye!" |
| 131 |
} |
| 132 |
ok |
| 133 |
[Verify that SSL_cert and SSL_mode=preferred, makes 'mysqlx_ssl_active' status variable set to ON] |
| 134 |
Mysqlx.Ok { |
| 135 |
msg: "bye!" |
| 136 |
} |
| 137 |
ok |
| 138 |
[Verify that SSL_cert and SSL_mode=required, makes 'mysqlx_ssl_active' status variable set to ON] |
| 139 |
Mysqlx.Ok { |
| 140 |
msg: "bye!" |
| 141 |
} |
| 142 |
ok |
| 143 |
[Verify that SSL_cert and SSL_mode=verify_ca, makes 'mysqlx_ssl_active' status variable set to ON] |
| 144 |
Mysqlx.Ok { |
| 145 |
msg: "bye!" |
| 146 |
} |
| 147 |
ok |
| 148 |
[Verify that SSL_cert and SSL_mode=verify_identity, makes 'mysqlx_ssl_active' status variable set to ON] |
| 149 |
Mysqlx.Ok { |
| 150 |
msg: "bye!" |
| 151 |
} |
| 152 |
ok |
| 153 |
[Verify that SSL_cert and SSL_mode=required, makes 'mysqlx_ssl_active' status variable set to ON] |
| 154 |
Mysqlx.Ok { |
| 155 |
msg: "bye!" |
| 156 |
} |
| 157 |
ok |
| 158 |
Application terminated with expected error: TLS was marked that requires "CA", but it was not configured (code 2503) |
| 159 |
ok |
| 160 |
|
| 161 |
############################################################ |
| 162 |
## Restart MySQL Server with configured SSL and certificate |
| 163 |
## that can't be verified |
| 164 |
## |
| 165 |
## * Verify client ssl-mode vs MySQL Server with SSL |
| 166 |
# $SSL_NOT_VERIFICABLE$ |
| 167 |
[Verify that SSL_cert and SSL_mode=disabled, makes 'mysqlx_ssl_active' status variable set to OFF] |
| 168 |
Mysqlx.Ok { |
| 169 |
msg: "bye!" |
| 170 |
} |
| 171 |
ok |
| 172 |
[Verify that SSL_cert and SSL_mode=preferred, makes 'mysqlx_ssl_active' status variable set to ON] |
| 173 |
Mysqlx.Ok { |
| 174 |
msg: "bye!" |
| 175 |
} |
| 176 |
ok |
| 177 |
[Verify that SSL_cert and SSL_mode=required, makes 'mysqlx_ssl_active' status variable set to ON] |
| 178 |
Mysqlx.Ok { |
| 179 |
msg: "bye!" |
| 180 |
} |
| 181 |
ok |
| 182 |
[Verify that SSL_cert and SSL_mode=verify_ca, makes 'mysqlx_ssl_active' status variable set to ON] |
| 183 |
Mysqlx.Ok { |
| 184 |
msg: "bye!" |
| 185 |
} |
| 186 |
ok |
| 187 |
Application terminated with expected error: SSL certificate validation failure (code 2026) |
| 188 |
ok |
| 189 |
[Verify that SSL_cert and SSL_mode=required, makes 'mysqlx_ssl_active' status variable set to ON] |
| 190 |
Mysqlx.Ok { |
| 191 |
msg: "bye!" |
| 192 |
} |
| 193 |
ok |
| 194 |
Application terminated with expected error: TLS was marked that requires "CA", but it was not configured (code 2503) |
| 195 |
ok |
| 196 |
# restart: |