refactored tests (#147)

This commit is contained in:
Timofey Turenko
2017-12-08 12:23:04 +02:00
committed by GitHub
parent c6daf8c26b
commit 3c88bf1ec6
253 changed files with 5265 additions and 3649 deletions

View File

@ -1,7 +1,7 @@
/**
* @file bug711.cpp bug711 regression case (Some MySQL Workbench Management actions hang with R/W split router)
* - configure rwsplit with use_sql_variables_in=all
* - try SHOW GLOBAL STATUS with all routers
* - try SHOW GLOBAL STATUS with all maxscales->routers[0]
* - check if Maxscale is still alive
*/
@ -43,15 +43,15 @@ using namespace std;
int main(int argc, char *argv[])
{
TestConnections * Test = new TestConnections(argc, argv);
Test->connect_maxscale();
Test->maxscales->connect_maxscale(0);
Test->set_timeout(10);
Test->tprintf("Trying SHOW GLOBAL STATUS against RWSplit\n");
Test->try_query(Test->conn_rwsplit, (char *) "SHOW GLOBAL STATUS;");
Test->try_query(Test->maxscales->conn_rwsplit[0], (char *) "SHOW GLOBAL STATUS;");
Test->tprintf("Trying SHOW GLOBAL STATUS against ReadConn master\n");
Test->try_query(Test->conn_master, (char *) "SHOW GLOBAL STATUS;");
Test->try_query(Test->maxscales->conn_master[0], (char *) "SHOW GLOBAL STATUS;");
Test->tprintf("Trying SHOW GLOBAL STATUS against ReadConn slave\n");
Test->try_query(Test->conn_slave, (char *) "SHOW GLOBAL STATUS;");
Test->check_maxscale_alive();
Test->try_query(Test->maxscales->conn_slave[0], (char *) "SHOW GLOBAL STATUS;");
Test->check_maxscale_alive(0);
int rval = Test->global_result;
delete Test;
return rval;