mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
1. add --plugin-dir and --default-auth to mysqltest.
2. dialog plugin now always returns mysql->password if non-empty and the first question is of password type 3. split get_tty_password into get_tty_password_buff and strdup. 4. dialog plugin now uses get_tty_password by default 5. dialog.test 6. moved small tests of individual plugins into a dedicated suite
This commit is contained in:
26
mysql-test/suite/plugins/r/dialog.result
Normal file
26
mysql-test/suite/plugins/r/dialog.result
Normal file
@ -0,0 +1,26 @@
|
||||
install plugin three_attempts soname 'dialog.so';
|
||||
create user test_dialog identified via three_attempts using 'SECRET';
|
||||
#
|
||||
# -pSECRET is picked up, no questions asked.
|
||||
#
|
||||
select user(), current_user();
|
||||
user() current_user()
|
||||
test_dialog@localhost test_dialog@%
|
||||
#
|
||||
# without -p. up to three questions are asked on the stdin.
|
||||
# athentication is successful, the correct pasword is on the third line
|
||||
#
|
||||
Password, please: ***
|
||||
Password, please: ****
|
||||
Password, please: ******
|
||||
select user(), current_user();
|
||||
user() current_user()
|
||||
test_dialog@localhost test_dialog@%
|
||||
#
|
||||
# athentication is unsuccessful, first three lines are all wrong
|
||||
#
|
||||
Password, please: ***
|
||||
Password, please: ****
|
||||
Password, please: *****
|
||||
drop user test_dialog;
|
||||
uninstall plugin three_attempts;
|
13
mysql-test/suite/plugins/r/feedback_plugin_install.result
Normal file
13
mysql-test/suite/plugins/r/feedback_plugin_install.result
Normal file
@ -0,0 +1,13 @@
|
||||
install plugin feedback soname 'feedback.so';
|
||||
select plugin_status from information_schema.plugins where plugin_name='feedback';
|
||||
plugin_status
|
||||
ACTIVE
|
||||
select * from information_schema.feedback where variable_name like 'feed%'
|
||||
and variable_name not like '%_uid';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
FEEDBACK 1.1
|
||||
FEEDBACK_SEND_RETRY_WAIT 60
|
||||
FEEDBACK_SEND_TIMEOUT 60
|
||||
FEEDBACK_URL http://mariadb.org/feedback_plugin/post
|
||||
FEEDBACK_USER_INFO mysql-test
|
||||
uninstall plugin feedback;
|
11
mysql-test/suite/plugins/r/feedback_plugin_load.result
Normal file
11
mysql-test/suite/plugins/r/feedback_plugin_load.result
Normal file
@ -0,0 +1,11 @@
|
||||
select plugin_status from information_schema.plugins where plugin_name='feedback';
|
||||
plugin_status
|
||||
ACTIVE
|
||||
select * from information_schema.feedback where variable_name like 'feed%'
|
||||
and variable_name not like '%_uid';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
FEEDBACK 1.1
|
||||
FEEDBACK_SEND_RETRY_WAIT 60
|
||||
FEEDBACK_SEND_TIMEOUT 60
|
||||
FEEDBACK_URL http://mariadb.org/feedback_plugin/post
|
||||
FEEDBACK_USER_INFO mysql-test
|
15
mysql-test/suite/plugins/r/feedback_plugin_send.result
Normal file
15
mysql-test/suite/plugins/r/feedback_plugin_send.result
Normal file
@ -0,0 +1,15 @@
|
||||
select plugin_status from information_schema.plugins where plugin_name='feedback';
|
||||
plugin_status
|
||||
ACTIVE
|
||||
select * from information_schema.feedback where variable_name like 'feed%'
|
||||
and variable_name not like '%_uid';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
FEEDBACK 1.1
|
||||
FEEDBACK_SEND_RETRY_WAIT 60
|
||||
FEEDBACK_SEND_TIMEOUT 60
|
||||
FEEDBACK_URL http://mariadb.org/feedback_plugin/post
|
||||
FEEDBACK_USER_INFO mysql-test
|
||||
feedback plugin: report to 'http://mariadb.org/feedback_plugin/post' was sent
|
||||
feedback plugin: server replied 'ok'
|
||||
feedback plugin: report to 'http://mariadb.org/feedback_plugin/post' was sent
|
||||
feedback plugin: server replied 'ok'
|
5
mysql-test/suite/plugins/r/fulltext_plugin.result
Normal file
5
mysql-test/suite/plugins/r/fulltext_plugin.result
Normal file
@ -0,0 +1,5 @@
|
||||
INSTALL PLUGIN simple_parser SONAME 'mypluglib.so';
|
||||
CREATE TABLE t1(a TEXT, b TEXT, FULLTEXT(a) WITH PARSER simple_parser);
|
||||
ALTER TABLE t1 ADD FULLTEXT(b) WITH PARSER simple_parser;
|
||||
DROP TABLE t1;
|
||||
UNINSTALL PLUGIN simple_parser;
|
Reference in New Issue
Block a user