Debian Codegraph @

mysql-test/suite/group_replication/t/gr_uninstall_while_disabled.test

raw
1 ################################################################################
2 # Validate that when Group Replication is disabled command INSTALL and UNINSTALL
3 # plugin do behave properly.
4 #
5 # Test:
6 # 0. The test requires one server.
7 # 1. Uninstall plugin while it is disabled.
8 # 2. Try install plugin while it is disabled.
9 # Then uninstall it again twice.
10 ################################################################################
11 --source include/force_restart.inc
12 --source include/have_group_replication_plugin_base.inc
13
14
15 --echo
16 --echo ############################################################
17 --echo # 1. Uninstall plugin while it is disabled.
18 --echo # See group_replication_uninstall_while_disabled-master.opt
19 --echo # file.
20 --source include/uninstall_group_replication_plugin.inc
21
22 --echo
23 --echo ############################################################
24 --echo # 2. Try install plugin while it is disabled.
25 --echo # Then uninstall it again twice.
26 --replace_result $GROUP_REPLICATION GROUP_REPLICATION
27 --eval INSTALL PLUGIN group_replication SONAME '$GROUP_REPLICATION'
28 --source include/clean_group_replication_install_entry.inc
29 --source include/uninstall_group_replication_plugin.inc
30
31 --error ER_SP_DOES_NOT_EXIST
32 UNINSTALL PLUGIN group_replication;