File: gr_change_master_hidden_ps_protocol.test

package info (click to toggle)
mysql-8.0 8.0.43-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,273,924 kB
  • sloc: cpp: 4,684,605; ansic: 412,450; pascal: 108,398; java: 83,641; perl: 30,221; cs: 27,067; sql: 26,594; sh: 24,181; python: 21,816; yacc: 17,169; php: 11,522; xml: 7,388; javascript: 7,076; makefile: 2,194; lex: 1,075; awk: 670; asm: 520; objc: 183; ruby: 97; lisp: 86
file content (27 lines) | stat: -rw-r--r-- 1,351 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
################################################################################
# Check inc/gr_change_master_hidden.inc for test details.
# This test enables the binary protocol between client and server.
#
# Test:
# 0. The test requires one server: M1.
# 1. With ps_protocol enabled, verify that CHANGE MASTER FOR recovery channel
#    command is logged in the slow log, query_log and error log, but the
#    password value is either masked with '<secret>' or is not logged.
# 2. Grep for pattern 'master_password' in error log. Expect 0 count.
# 3. Grep for pattern 'unique_password' in error log. Expect 0 count.
################################################################################
--enable_ps_protocol
--source ../include/gr_change_master_hidden.inc
--disable_ps_protocol

--echo # MASTER_PASSWORD value for the CHANGE MASTER command will not be logged in the error log.
--let $grep_file=$MYSQLTEST_VARDIR/tmp/no_change_master_password_logging_ps_protocol.err
--let $grep_pattern= source_password
--let $grep_output= print_count
--source include/grep_pattern.inc

--echo # The password value 'unique_password' is not logged in the error log.
--let $grep_file=$MYSQLTEST_VARDIR/tmp/no_change_master_password_logging_ps_protocol.err
--let $grep_pattern= unique_password
--let $grep_output= print_count
--source include/grep_pattern.inc