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:
@ -64,6 +64,7 @@ int main(int argc, char* argv[])
|
||||
for (i = 0; i < iterations; i++)
|
||||
{
|
||||
|
||||
Test->set_timeout(30);
|
||||
Test->tprintf("Connection to backend\n");
|
||||
Test->repl->connect();
|
||||
Test->tprintf("Connection to Maxscale\n");
|
||||
@ -80,8 +81,10 @@ int main(int argc, char* argv[])
|
||||
Test->try_query(Test->maxscales->conn_rwsplit[0], "DROP TABLE t1");
|
||||
Test->try_query(Test->maxscales->conn_rwsplit[0], "DROP DATABASE IF EXISTS test1;");
|
||||
Test->try_query(Test->maxscales->conn_rwsplit[0], "CREATE DATABASE test1;");
|
||||
Test->set_timeout(10 * Test->repl->N);
|
||||
Test->repl->sync_slaves();
|
||||
|
||||
Test->set_timeout(30);
|
||||
Test->tprintf("Testing with database 'test1'\n");
|
||||
Test->add_result(Test->use_db(0, (char*) "test1"), "use_db failed\n");
|
||||
Test->add_result(Test->insert_select(0, N), "insert-select check failed\n");
|
||||
|
||||
Reference in New Issue
Block a user