mariadb/mysql-test/suite/galera/t/galera_var_node_address.test
2015-09-09 22:31:06 -04:00

22 lines
615 B
Text

#
# Test wsrep_node_address . The galera_var_node_address.cnf contains various settings for
# wsrep_node_address, so in this test we simply confirm that the cluster has started up correctly.
#
--source include/galera_cluster.inc
--source include/have_innodb.inc
SELECT VARIABLE_VALUE = 4 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
--connection node_1
CREATE TABLE t1 (f1 INTEGER);
--connection node_2
INSERT INTO t1 VALUES (1);
--connect node_3, 127.0.0.1, root, , test, $NODE_MYPORT_3
--connection node_3
SELECT COUNT(*) = 1 FROM t1;
--connection node_1
DROP TABLE t1;