Skip to content

Commit 4a630ce

Browse files
philip-galeraNirbhay Choubey
authored andcommitted
Galera MTR Tests: A test for xtrabackup with key+cert encryption.
1 parent edd9bd3 commit 4a630ce

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
SELECT 1;
2+
1
3+
1
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
!include ../galera_2nodes.cnf
2+
3+
[mysqld]
4+
wsrep_sst_method=xtrabackup-v2
5+
wsrep_sst_auth="root:"
6+
wsrep_debug=ON
7+
8+
[SST]
9+
tkey=@ENV.MYSQL_TEST_DIR/std_data/galera-key.pem
10+
tcert=@ENV.MYSQL_TEST_DIR/std_data/galera-cert.pem
11+
encrypt=3
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#
2+
# This test checks that key and cert encryption options can be passed to xtrabackup via the my.cnf file
3+
# Initial SST happens via xtrabackup, so there is not much to do in the body of the test
4+
#
5+
6+
--source include/big_test.inc
7+
--source include/galera_cluster.inc
8+
--source include/have_innodb.inc
9+
10+
SELECT 1;
11+
12+
--let $wait_condition = SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
13+
--source include/wait_condition.inc

0 commit comments

Comments
 (0)