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

33 lines
1.3 KiB
Plaintext

################################################################################
# Validate that when Group Replication is disabled command INSTALL and UNINSTALL
# plugin do behave properly.
#
# Test:
# 0. The test requires one server.
# 1. Uninstall plugin while it is disabled.
# 2. Try install plugin while it is disabled.
# Then uninstall it again twice.
################################################################################
--source include/force_restart.inc
--source include/have_group_replication_plugin_base.inc
--echo
--echo ############################################################
--echo # 1. Uninstall plugin while it is disabled.
--echo # See group_replication_uninstall_while_disabled-master.opt
--echo # file.
--source include/uninstall_group_replication_plugin.inc
--echo
--echo ############################################################
--echo # 2. Try install plugin while it is disabled.
--echo # Then uninstall it again twice.
--replace_result $GROUP_REPLICATION GROUP_REPLICATION
--eval INSTALL PLUGIN group_replication SONAME '$GROUP_REPLICATION'
--source include/clean_group_replication_install_entry.inc
--source include/uninstall_group_replication_plugin.inc
--error ER_SP_DOES_NOT_EXIST
UNINSTALL PLUGIN group_replication;