Debian Codegraph @

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

raw
1 --source include/have_fips.inc
2 --source include/xplugin_preamble.inc
3
4 --disable_query_log
5 call mtr.add_suppression("Error during SSL handshake");
6 --enable_query_log
7
8 --write_file $MYSQL_TMP_DIR/mysqlx_fips_test.xpl
9 -->sql
10 SHOW STATUS LIKE 'ssl_cipher';
11 -->endsql
12 EOF
13
14 --echo ##Test: Restart server and provide weak ssl-cipher at server startup
15 --exec echo "wait" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
16 --shutdown_server
17 --source include/wait_until_disconnected.inc
18 --exec echo "restart:--ssl-cipher=CAMELLIA256-SHA" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
19 --enable_reconnect
20 --source include/wait_until_connected_again.inc
21
22 let $wait_condition=SELECT 1 FROM performance_schema.global_status WHERE variable_name='mysqlx_port' AND variable_value!='';
23 --source include/wait_condition_or_abort.inc
24
25 exec $MYSQLXTEST
26 -u root
27 --file=$MYSQL_TMP_DIR/mysqlx_fips_test.xpl
28 --ssl-mode=required --ssl-fips-mode=on --ssl-cipher=CAMELLIA256-SHA
29 --expect-error 2026 2>&1;
30 --exec $MYSQLXTEST -u root --file=$MYSQL_TMP_DIR/mysqlx_fips_test.xpl --ssl-mode=required --ssl-fips-mode=off --ssl-cipher=CAMELLIA256-SHA 2>&1
31
32 --echo ##Cleanup: Restore ssl-cipher to default
33 --exec echo "wait" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
34 --shutdown_server
35 --source include/wait_until_disconnected.inc
36 --exec echo "restart:" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
37 --enable_reconnect
38 --source include/wait_until_connected_again.inc
39 --source ../include/xplugin_cleanup.inc