mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 01:04:19 +01:00
0b9a59bbc4
These are only 10.4+ tests. 10.2+ tests are pushed into 10.2 and will be merged into 10.4+ independently
24 lines
584 B
Text
24 lines
584 B
Text
#
|
|
# Test password expiration
|
|
#
|
|
|
|
--source include/not_embedded.inc
|
|
--source include/have_unix_socket.inc
|
|
|
|
--echo #
|
|
--echo # A password cannot expire, if there is no password
|
|
--echo #
|
|
|
|
--let $replace=create user '$USER'
|
|
--replace_result $replace "create user 'USER'"
|
|
--eval create user '$USER' identified via unix_socket
|
|
|
|
--let $replace=alter user '$USER'
|
|
--replace_result $replace "alter user 'USER'"
|
|
--eval alter user '$USER' password expire
|
|
|
|
--exec $MYSQL -u $USER -e 'select 1'
|
|
|
|
--let $replace=drop user '$USER'
|
|
--replace_result $replace "drop user 'USER'"
|
|
--eval drop user '$USER'
|