summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2016-02-01 17:51:57 +0100
committerVladislav Vaintroub <wlad@mariadb.com>2016-02-01 17:51:57 +0100
commit52d695fef4f959daf12cc1e4b83907917dddfbe8 (patch)
tree645052e28d43f360e67d0a1bf1fef270fda2a2da /plugin
parente6dee57f1ae78326af9485170d232436fb49404f (diff)
downloadmariadb-git-52d695fef4f959daf12cc1e4b83907917dddfbe8.tar.gz
Fix authentication plugin's tests in case username contains non-alphanumeric character, e.g dash
Diffstat (limited to 'plugin')
-rw-r--r--plugin/auth_gssapi/mysql-test/auth_gssapi/basic.result4
-rw-r--r--plugin/auth_gssapi/mysql-test/auth_gssapi/basic.test4
2 files changed, 4 insertions, 4 deletions
diff --git a/plugin/auth_gssapi/mysql-test/auth_gssapi/basic.result b/plugin/auth_gssapi/mysql-test/auth_gssapi/basic.result
index a859ce563c7..dc5155fac8c 100644
--- a/plugin/auth_gssapi/mysql-test/auth_gssapi/basic.result
+++ b/plugin/auth_gssapi/mysql-test/auth_gssapi/basic.result
@@ -1,9 +1,9 @@
INSTALL SONAME 'auth_gssapi';
-CREATE USER GSSAPI_SHORTNAME IDENTIFIED WITH gssapi;
+CREATE USER 'GSSAPI_SHORTNAME' IDENTIFIED WITH gssapi;
SELECT USER(),CURRENT_USER();
USER() CURRENT_USER()
GSSAPI_SHORTNAME@localhost GSSAPI_SHORTNAME@%
-DROP USER GSSAPI_SHORTNAME;
+DROP USER 'GSSAPI_SHORTNAME';
CREATE USER nosuchuser IDENTIFIED WITH gssapi;
ERROR 28000: GSSAPI name mismatch, requested 'nosuchuser', actual name 'GSSAPI_SHORTNAME'
DROP USER nosuchuser;
diff --git a/plugin/auth_gssapi/mysql-test/auth_gssapi/basic.test b/plugin/auth_gssapi/mysql-test/auth_gssapi/basic.test
index cb49c2e145b..f47ad8c20e2 100644
--- a/plugin/auth_gssapi/mysql-test/auth_gssapi/basic.test
+++ b/plugin/auth_gssapi/mysql-test/auth_gssapi/basic.test
@@ -4,7 +4,7 @@ INSTALL SONAME 'auth_gssapi';
# CREATE USER without 'AS' clause
#
--replace_result $GSSAPI_SHORTNAME GSSAPI_SHORTNAME
-eval CREATE USER $GSSAPI_SHORTNAME IDENTIFIED WITH gssapi;
+eval CREATE USER '$GSSAPI_SHORTNAME' IDENTIFIED WITH gssapi;
connect (con1,localhost,$GSSAPI_SHORTNAME,,);
--replace_result $GSSAPI_SHORTNAME GSSAPI_SHORTNAME
SELECT USER(),CURRENT_USER();
@@ -12,7 +12,7 @@ disconnect con1;
connection default;
--replace_result $GSSAPI_SHORTNAME GSSAPI_SHORTNAME
-eval DROP USER $GSSAPI_SHORTNAME;
+eval DROP USER '$GSSAPI_SHORTNAME';
CREATE USER nosuchuser IDENTIFIED WITH gssapi;
--disable_query_log