From 76f3c250d47601169aab64d6e5276bf4e66bbeba Mon Sep 17 00:00:00 2001 From: Rafal Somla Date: Fri, 16 Sep 2011 14:35:25 +0200 Subject: [PATCH] Update of auth_rpl test. For some reason the test authentication plugin accepted connection with arbitrary password. But the intention of the plugin is that password should equal to the authentication string and in the later versions of the server connection fails if password is wrong. So I have updated auth_rpl test to specify the correct password. --- mysql-test/r/auth_rpl.result | 4 +++- mysql-test/t/auth_rpl.test | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/mysql-test/r/auth_rpl.result b/mysql-test/r/auth_rpl.result index 1c03461df9b..70626b02b2b 100644 --- a/mysql-test/r/auth_rpl.result +++ b/mysql-test/r/auth_rpl.result @@ -7,7 +7,9 @@ CREATE USER 'plug_user' IDENTIFIED WITH 'test_plugin_server' AS 'plug_user'; GRANT REPLICATION SLAVE ON *.* TO plug_user; FLUSH PRIVILEGES; [connection slave] -CHANGE MASTER TO MASTER_USER= 'plug_user'; +CHANGE MASTER TO +MASTER_USER= 'plug_user', +MASTER_PASSWORD= 'plug_user'; include/start_slave.inc # Slave in-sync with master now. SELECT user, plugin, authentication_string FROM mysql.user WHERE user LIKE 'plug_user'; diff --git a/mysql-test/t/auth_rpl.test b/mysql-test/t/auth_rpl.test index 9947d463acd..c413a84b53c 100644 --- a/mysql-test/t/auth_rpl.test +++ b/mysql-test/t/auth_rpl.test @@ -27,7 +27,9 @@ FLUSH PRIVILEGES; --connection slave --echo [connection slave] --let $master_user= query_get_value(SHOW SLAVE STATUS, Master_User, 1) -CHANGE MASTER TO MASTER_USER= 'plug_user'; +CHANGE MASTER TO + MASTER_USER= 'plug_user', + MASTER_PASSWORD= 'plug_user'; # # Start slave with new replication account - this should trigger connection