Debian Codegraph @

mysql-test/suite/auth_sec/t/fips_persisted_option.test

raw
1 --source include/no_valgrind_without_big.inc
2 --source include/have_fips.inc
3
4 # Data directory location
5 --let CURRENT_DATADIR = `SELECT @@datadir`
6 --let CURRENT_PERSISTED_FILE = `SELECT CONCAT('$CURRENT_DATADIR', '/mysqld-auto.cnf')`
7
8 --error 0,1
9 --remove_file $CURRENT_PERSISTED_FILE
10
11 # Pre-8.0.34 format persisted variables filie
12 --let PRE8034_PERSISTED_VARIABLES_FILE = `SELECT CONCAT('$MYSQL_TEST_DIR', '/std_data/pre8034_mysqld-auto.cnf')`
13
14 --echo # Copy Pre-8.0.34 format persisted variables file to data directory
15 --copy_file $PRE8034_PERSISTED_VARIABLES_FILE $CURRENT_PERSISTED_FILE
16
17 --echo # Restart the server
18 --source include/restart_mysqld_no_echo.inc
19
20 --echo # Verify that persisted variable file was read properly: Should show 1 entry
21 SELECT * FROM performance_schema.persisted_variables ORDER BY variable_name ASC;
22
23 --echo # Check the actual values
24 SELECT @@global.ssl_fips_mode;
25
26 --echo # Modify persisted variables
27 SET PERSIST_ONLY ssl_fips_mode=ON;
28
29 --echo # Restart the server
30 --source include/restart_mysqld_no_echo.inc
31
32 --echo # Verify that persisted variable file was read properly: Should show 1 entry
33 SELECT * FROM performance_schema.persisted_variables ORDER BY variable_name ASC;
34
35 --echo # Check the actual values
36 SELECT @@global.ssl_fips_mode;
37
38 RESET PERSIST;
39 --echo # Remove old format persisted variables file
40 --remove_file $CURRENT_PERSISTED_FILE
41
42 --echo # Cleanup: Restart with default options.
43 --source include/force_restart.inc