Debian Codegraph @

mysql-test/suite/test_services/r/test_services.result

raw
1 # restart: --log-error=MYSQLTEST_VARDIR/log/test_services.err
2 call mtr.add_suppression("This is a warning from test plugin");
3 call mtr.add_suppression("This is an error from test plugin");
4 SET @orig_log_error_verbosity= @@global.log_error_verbosity;
5 SET @@global.log_error_verbosity= 3;
6 ------ Run plugin ------------------------------------------------
7 INSTALL PLUGIN test_services SONAME 'TESTSERVICES';
8 ------ Show variables of plugin to control test execution --------
9 SHOW VARIABLES LIKE 'test_service%';
10 Variable_name Value
11 test_services_non_default_variable 0
12 test_services_with_log_message 1
13 ------ Show status of plugin -------------------------------------
14 SHOW STATUS LIKE 'test_services_status';
15 Variable_name Value
16 test_services_status 1
17 test status: 1
18 #
19 # Bug #GR VARS ARE ABLE TO SET TO 'DEFAULT' INSTEAD OF ERROR ER3093
20 # WHEN GR IS RUNNING
21 #
22 # Should not work
23 SET @@global.test_services_non_default_variable= DEFAULT;
24 ERROR 42000: Variable 'test_services_non_default_variable' can't be set to the value of 'DEFAULT'
25 ------ Stop plugin -----------------------------------------------
26 UNINSTALL PLUGIN test_services;
27 SET @@global.log_error_verbosity= @orig_log_error_verbosity;
28 ------ Service: LogPluginErr ----------------------------
29 CREATE TABLE t1 (c1 varchar(30), c2 TEXT, c3 TEXT, c4 TEXT);
30 LOAD DATA LOCAL INFILE 'MYSQLTEST_VARDIR/log/test_services.err' INTO TABLE t1
31 FIELDS TERMINATED BY ' [';
32 SELECT replace(concat('[',c2,' [',c3,' [',c4),'\r','') AS msg FROM t1 WHERE c4 LIKE '%test_services %';
33 msg
34 [Note] [MY-011071] [Server] Plugin test_services reported: 'Test_services with_log_message_val: 1'
35 [Note] [MY-011071] [Server] Plugin test_services reported: 'This is the test plugin for services testing info report output'
36 [Warning] [MY-011071] [Server] Plugin test_services reported: 'This is a warning from test plugin for services testing warning report output'
37 [ERROR] [MY-011071] [Server] Plugin test_services reported: 'This is an error from test plugin for services testing error report output'
38 DROP TABLE IF EXISTS t1;
39 # restart: