File tree 1 file changed +2
-1
lines changed
test/cookbooks/test/recipes
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 91
91
code <<-EOF
92
92
MYSQL_PWD=#{ Shellwords . escape ( root_pass_master ) } /usr/bin/mysql -u root -h 127.0.0.1 -P 3306 -D mysql -e "CREATE USER 'repl'@'127.0.0.1' IDENTIFIED BY 'REPLICAAATE';"
93
93
MYSQL_PWD=#{ Shellwords . escape ( root_pass_master ) } /usr/bin/mysql -u root -h 127.0.0.1 -P 3306 -D mysql -e "GRANT REPLICATION SLAVE ON *.* TO 'repl'@'127.0.0.1';"
94
- /usr/bin/mysql -u root -h 127.0.0.1 -P 3306 -p#{ Shellwords . escape ( root_pass_master ) } -e 'show grants'
94
+ /usr/bin/mysql -u root -h 127.0.0.1 -P 3306 -pilikerandompasswords -e 'show grants' # testing default password
95
+ /usr/bin/mysql -u root -h 127.0.0.1 -P 3306 -e 'show grants' # testing no password
95
96
EOF
96
97
not_if "/usr/bin/mysql -u root -h 127.0.0.1 -P 3306 -p#{ Shellwords . escape ( root_pass_master ) } -e 'select User,Host from mysql.user' | grep repl"
97
98
action :run
You can’t perform that action at this time.
0 commit comments