Add tests with big backend
Basic tests can be executed with 15 machines Master/slave backend. Tests have label BIG_REPL_BACKEND Default template modified to support big backend. Tests temporaraly labeled as UNSTABLE to prevent their execution nightly
This commit is contained in:
@ -18,7 +18,7 @@ using namespace std;
|
||||
|
||||
void test_basic(TestConnections& test)
|
||||
{
|
||||
test.set_timeout(60);
|
||||
test.set_timeout(20 * test.repl->N);
|
||||
int N = 4;
|
||||
|
||||
test.repl->connect();
|
||||
@ -27,7 +27,7 @@ void test_basic(TestConnections& test)
|
||||
create_t1(test.maxscales->conn_rwsplit[0]);
|
||||
insert_into_t1(test.maxscales->conn_rwsplit[0], N);
|
||||
|
||||
test.set_timeout(20);
|
||||
test.set_timeout(10 * test.repl->N);
|
||||
test.try_query(test.maxscales->conn_rwsplit[0], "PREPARE stmt FROM 'SELECT * FROM t1 WHERE fl=@x;';");
|
||||
test.try_query(test.maxscales->conn_rwsplit[0], "SET @x = 3;");
|
||||
test.try_query(test.maxscales->conn_rwsplit[0], "EXECUTE stmt");
|
||||
@ -40,7 +40,7 @@ void test_basic(TestConnections& test)
|
||||
|
||||
void test_routing(TestConnections& test)
|
||||
{
|
||||
test.set_timeout(60);
|
||||
test.set_timeout(20 * test.repl->N);
|
||||
test.repl->connect();
|
||||
int server_id = test.repl->get_server_id(0);
|
||||
test.maxscales->connect_maxscale(0);
|
||||
@ -87,6 +87,7 @@ void test_routing(TestConnections& test)
|
||||
test.try_query(test.maxscales->conn_rwsplit[0], "PREPARE ps2 FROM 'INSERT INTO test.t1 VALUES (?)'");
|
||||
test.try_query(test.maxscales->conn_rwsplit[0], "SET @a = @@server_id");
|
||||
test.try_query(test.maxscales->conn_rwsplit[0], "EXECUTE ps2 USING @a");
|
||||
test.set_timeout(30 * test.repl->N);
|
||||
test.repl->sync_slaves();
|
||||
test.add_result(find_field(test.maxscales->conn_rwsplit[0], "SELECT id FROM test.t1", "id", buf),
|
||||
"Read should succeed");
|
||||
|
||||
Reference in New Issue
Block a user