Debian Codegraph @

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

raw
1 ################################################################################
2 # BUG#20693364 - MAKE GROUP REPLICATION PLUGIN SYSTEM VARIABLES ALWAYS GO
3 # THROUGH CHECK FUNCTION
4 #
5 # Test:
6 # 0. The test requires one server: M1.
7 # 1. This test verifies that a group_replication_recovery_ssl_ca variable is
8 # validated when passed through a configuration file. The validation is done
9 # during the start of group_replication. Other recovery ssl option also go
10 # through the same check function. So they will also fail with the value
11 # being passed exceeds the length of the field.
12 ################################################################################
13
14 --let $group_replication_group_name= 8a94f357-ee93-11df-8654-c80aa9821323
15 --source include/have_group_replication_plugin.inc
16
17 SET SESSION sql_log_bin= 0;
18 call mtr.add_suppression("The given value for recovery ssl option*");
19 SET SESSION sql_log_bin= 1;
20
21 # Setting the group name value to a valid UUID.
22 --eval SET GLOBAL group_replication_group_name="$group_replication_group_name"
23
24 # Starting the group. This should fail as the group_replication_recovery_user
25 # is set to a invalid value in the configuration file.
26 --error ER_GROUP_REPLICATION_CONFIGURATION
27 START GROUP_REPLICATION;
28
29 --source include/gr_clear_configuration.inc