mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
Galera MTR Tests: MW-305 , re-enable the test for ALTER USER
This commit is contained in:
parent
0a06347333
commit
395c420f0f
2 changed files with 13 additions and 8 deletions
|
@ -2,6 +2,13 @@ CREATE USER user1, user2 IDENTIFIED BY 'password';
|
|||
SELECT COUNT(*) = 2 FROM mysql.user WHERE user IN ('user1', 'user2');
|
||||
COUNT(*) = 2
|
||||
1
|
||||
ALTER USER user1 PASSWORD EXPIRE;
|
||||
SELECT password_expired = 'Y' FROM mysql.user WHERE user = 'user1';
|
||||
password_expired = 'Y'
|
||||
1
|
||||
SELECT password_expired = 'Y' FROM mysql.user WHERE user = 'user1';
|
||||
password_expired = 'Y'
|
||||
1
|
||||
RENAME USER user2 TO user3;
|
||||
SELECT COUNT(*) = 0 FROM mysql.user WHERE user = 'user2';
|
||||
COUNT(*) = 0
|
||||
|
|
|
@ -18,14 +18,12 @@ SELECT COUNT(*) = 2 FROM mysql.user WHERE user IN ('user1', 'user2');
|
|||
# ALTER USER
|
||||
#
|
||||
|
||||
# LP bug 1376269
|
||||
#
|
||||
#--connection node_1
|
||||
#ALTER USER user1 PASSWORD EXPIRE;
|
||||
#SELECT password_expired = 'Y' FROM mysql.user WHERE user = 'user1';
|
||||
#
|
||||
#--connection node_2
|
||||
#SELECT password_expired = 'Y' FROM mysql.user WHERE user = 'user1';
|
||||
--connection node_1
|
||||
ALTER USER user1 PASSWORD EXPIRE;
|
||||
SELECT password_expired = 'Y' FROM mysql.user WHERE user = 'user1';
|
||||
|
||||
--connection node_2
|
||||
SELECT password_expired = 'Y' FROM mysql.user WHERE user = 'user1';
|
||||
|
||||
#
|
||||
# RENAME USER
|
||||
|
|
Loading…
Reference in a new issue