Debian Codegraph @

mysql-test/suite/x/t/connection_auth_mechanism_memory_no_pass.test

raw
1 ## Test cases for authorization plugins
2
3 --source include/xplugin_preamble.inc
4
5
6 #
7 ## Setup
8 #
9
10 --write_file $MYSQL_TMP_DIR/try_login_using_memory.xpl
11 -->import connection_auth_mechanism_memory_helpers.macro
12
13 callmacro Login_ok REQUIRED plain xuser_native ;
14 callmacro Login_ok REQUIRED plain xuser_sha256 ;
15 callmacro Login_ok REQUIRED plain xuser_cache2 ;
16
17 callmacro Login_ok DISABLED memory xuser_native ;
18 callmacro Login_ok DISABLED memory xuser_sha256 ;
19 callmacro Login_ok DISABLED memory xuser_cache2 ;
20 EOF
21
22 --let $MYSQLXTEST=$MYSQLXTEST -uroot --ssl-cipher='ECDHE-RSA-AES128-GCM-SHA256'
23 --let $login_with_no_pass= --file=$MYSQL_TMP_DIR/try_login_using_memory.xpl
24
25
26 # Create and configure xuser_* accounts that use native, sha256 and
27 # cache_sha2 authentication plugins.
28
29 --let $pass_native=''
30 --let $pass_sha256=''
31 --let $pass_cache2=''
32 --source ../include/create_mysql_accounts_for_xplugin_tests.inc
33
34 GRANT ALL ON *.* TO xuser_native@localhost;
35 GRANT ALL ON *.* TO xuser_sha256@localhost;
36 GRANT ALL ON *.* TO xuser_cache2@localhost;
37
38
39 #
40 ## Test starts here
41 #
42
43 exec $MYSQLXTEST $login_with_no_pass 2>&1;
44
45
46 #
47 # Postamble
48 #
49 --source ../include/xplugin_cleanup.inc
50 --source ../include/remove_mysql_accounts_for_xplugin_tests.inc