Debian Codegraph @

mysql-test/suite/plugins/t/rpl_auth.test

raw
1 if ($MTR_COMBINATION_ED25519) {
2 let $AUTH_PLUGIN = ed25519;
3 let $CLIENT_PLUGIN=client_ed25519;
4 }
5
6 if ($MTR_COMBINATION_PARSEC) {
7 let $AUTH_PLUGIN = parsec;
8 let $CLIENT_PLUGIN=parsec;
9 }
10
11 if (`select count(*) = 0 from information_schema.plugins where plugin_name = '$AUTH_PLUGIN'`)
12 {
13 --skip Needs $AUTH_PLUGIN plugin
14 }
15
16 --replace_result $CLIENT_PLUGIN CLIENT_PLUGIN
17 --error ER_CANT_OPEN_LIBRARY,ER_CANT_FIND_DL_ENTRY
18 eval install soname '$CLIENT_PLUGIN';
19 if ($errno == 1126) {
20 # this happens in bintars when C/C is linked with gnutls
21 skip $CLIENT_PLUGIN is not found or contains unresolved symbols;
22 }
23
24 # create a user for replication with auth plugin
25 --replace_result $AUTH_PLUGIN PLUGIN
26 eval create user rpluser@'%' identified via $AUTH_PLUGIN using PASSWORD('rpl_pass');
27 grant replication slave on *.* to rpluser@'%';
28
29 source include/master-slave.inc;
30 connection slave;
31
32 # Set the slave to connect using the user created with the auth plugin for replication
33 source include/stop_slave.inc;
34 --replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
35 change master to master_user='rpluser', master_password='rpl_pass';
36 source include/start_slave.inc;
37 source include/stop_slave.inc;
38 change master to master_user='root', master_password='';
39 source include/start_slave.inc;
40
41 source include/rpl_end.inc;
42 drop user rpluser@'%';