Debian Codegraph @

mysql-test/suite/group_replication/t/gr_change_master_hidden_ps_protocol.test

raw
1 ################################################################################
2 # Check inc/gr_change_master_hidden.inc for test details.
3 # This test enables the binary protocol between client and server.
4 #
5 # Test:
6 # 0. The test requires one server: M1.
7 # 1. With ps_protocol enabled, verify that CHANGE MASTER FOR recovery channel
8 # command is logged in the slow log, query_log and error log, but the
9 # password value is either masked with '<secret>' or is not logged.
10 # 2. Grep for pattern 'master_password' in error log. Expect 0 count.
11 # 3. Grep for pattern 'unique_password' in error log. Expect 0 count.
12 ################################################################################
13 --enable_ps_protocol
14 --source ../include/gr_change_master_hidden.inc
15 --disable_ps_protocol
16
17 --echo # MASTER_PASSWORD value for the CHANGE MASTER command will not be logged in the error log.
18 --let $grep_file=$MYSQLTEST_VARDIR/tmp/no_change_master_password_logging_ps_protocol.err
19 --let $grep_pattern= source_password
20 --let $grep_output= print_count
21 --source include/grep_pattern.inc
22
23 --echo # The password value 'unique_password' is not logged in the error log.
24 --let $grep_file=$MYSQLTEST_VARDIR/tmp/no_change_master_password_logging_ps_protocol.err
25 --let $grep_pattern= unique_password
26 --let $grep_output= print_count
27 --source include/grep_pattern.inc