1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-25884 Tests use environment $USER variable without quotes

This commit is contained in:
Elena Stepanova
2021-06-09 15:28:35 +03:00
parent c872125a66
commit 7a1eff0a9d
4 changed files with 10 additions and 10 deletions

View File

@ -1,5 +1,5 @@
INSTALL SONAME 'auth_named_pipe'; INSTALL SONAME 'auth_named_pipe';
CREATE USER 'USERNAME' IDENTIFIED WITH named_pipe; CREATE USER 'USERNAME' IDENTIFIED WITH named_pipe;
GRANT ALL PRIVILEGES ON *.* to USERNAME; GRANT ALL PRIVILEGES ON *.* to 'USERNAME';
DROP USER 'USERNAME'; DROP USER 'USERNAME';
UNINSTALL SONAME 'auth_named_pipe'; UNINSTALL SONAME 'auth_named_pipe';

View File

@ -18,7 +18,7 @@ INSTALL SONAME 'auth_named_pipe';
--replace_result $USERNAME USERNAME --replace_result $USERNAME USERNAME
eval CREATE USER '$USERNAME' IDENTIFIED WITH named_pipe; eval CREATE USER '$USERNAME' IDENTIFIED WITH named_pipe;
--replace_result $USERNAME USERNAME --replace_result $USERNAME USERNAME
eval GRANT ALL PRIVILEGES ON *.* to $USERNAME; eval GRANT ALL PRIVILEGES ON *.* to '$USERNAME';
let $targetdir=$MYSQLTEST_VARDIR/tmp/backup; let $targetdir=$MYSQLTEST_VARDIR/tmp/backup;
--disable_result_log --disable_result_log

View File

@ -2,7 +2,7 @@ install plugin unix_socket soname 'auth_socket.so';
# #
# with named user # with named user
# #
create user USER identified via unix_socket; create user 'USER' identified via unix_socket;
# #
# name match = ok # name match = ok
# #
@ -12,7 +12,7 @@ USER@localhost USER@% test
# #
# name does not match = failure # name does not match = failure
# #
drop user USER; drop user 'USER';
# #
# and now with anonymous user # and now with anonymous user
# #

View File

@ -12,9 +12,9 @@ eval install plugin unix_socket soname '$AUTH_SOCKET_SO';
--echo # with named user --echo # with named user
--echo # --echo #
--let $replace=create user $USER --let $replace=create user '$USER'
--replace_result $replace "create user USER" --replace_result $replace "create user 'USER'"
eval create user $USER identified via unix_socket; eval create user '$USER' identified via unix_socket;
--write_file $MYSQLTEST_VARDIR/tmp/peercred_test.txt --write_file $MYSQLTEST_VARDIR/tmp/peercred_test.txt
--let $replace1=$USER@localhost --let $replace1=$USER@localhost
@ -34,9 +34,9 @@ EOF
--error 1 --error 1
--exec $MYSQL_TEST -u foobar --plugin-dir=$plugindir < $MYSQLTEST_VARDIR/tmp/peercred_test.txt --exec $MYSQL_TEST -u foobar --plugin-dir=$plugindir < $MYSQLTEST_VARDIR/tmp/peercred_test.txt
--let $replace=drop user $USER --let $replace=drop user '$USER'
--replace_result $replace "drop user USER" --replace_result $replace "drop user 'USER'"
eval drop user $USER; eval drop user '$USER';
--echo # --echo #
--echo # and now with anonymous user --echo # and now with anonymous user