1include/group_replication.inc
2Warnings:
3Note	####	Sending passwords in plain text without SSL/TLS is extremely insecure.
4Note	####	Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
5[connection server1]
6
7#####################################################################
8# 1. Assert MEMBER_ROLE and MEMBER_VERSION after start of GR
9#####################################################################
10include/start_and_bootstrap_group_replication.inc
11include/assert.inc ['MEMBER_VERSION is not empty']
12include/assert.inc ['Server1 MEMBER_ROLE should be PRIMARY']
13include/assert.inc ['Server1 MEMBER_VERSION should match with SELECT @@server_version']
14
15#####################################################################
16# 2.  Assert MEMBER_ROLE and MEMBER_VERSION before start of GR
17#####################################################################
18[connection server2]
19include/assert.inc ['Server2 MEMBER_ROLE should not be set when GR is starting']
20include/assert.inc ['Server2 MEMBER_VERSION should not be set when GR is starting']
21include/start_group_replication.inc
22
23##############################################################################
24# 3.  Assert MEMBER_ROLE and MEMBER_VERSION are correct on server1 and server2
25##############################################################################
26[connection server1]
27include/assert.inc ['Server1 MEMBER_ROLE should be PRIMARY']
28include/assert.inc ['Server2 MEMBER_ROLE should be SECONDARY']
29include/assert.inc ['Server1 MEMBER_VERSION should match with SELECT @@server_version']
30include/assert.inc ['Server2 MEMBER_VERSION should match with SELECT @@server_version']
31[connection server2]
32include/assert.inc ['Server1 MEMBER_ROLE should be PRIMARY']
33include/assert.inc ['Server2 MEMBER_ROLE should be SECONDARY']
34include/assert.inc ['Server1 MEMBER_VERSION should match with SELECT @@server_version']
35include/assert.inc ['Server2 MEMBER_VERSION should match with SELECT @@server_version']
36
37##########################################################################
38# 4.  Shutdown GR
39##########################################################################
40include/group_replication_end.inc
41