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

@ -75,19 +75,19 @@ int main(int argc, char *argv[])
Test->tprintf("Trying to connect to all Maxscale services\n");
fflush(stdout);
Test->connect_maxscale();
Test->maxscales->connect_maxscale(0);
Test->tprintf("Trying to send query to RWSplit\n");
fflush(stdout);
execute_query(Test->conn_rwsplit, (char *) "show processlist");
execute_query(Test->maxscales->conn_rwsplit[0], (char *) "show processlist");
Test->tprintf("Trying to send query to ReadConn master\n");
fflush(stdout);
execute_query(Test->conn_master, (char *) "show processlist");
execute_query(Test->maxscales->conn_master[0], (char *) "show processlist");
Test->tprintf("Trying to send query to ReadConn slave\n");
fflush(stdout);
execute_query(Test->conn_slave, (char *) "show processlist");
Test->close_maxscale_connections();
execute_query(Test->maxscales->conn_slave[0], (char *) "show processlist");
Test->maxscales->close_maxscale_connections(0);
Test->check_log_err((char *) "Unable to find filter 'tests' for service 'RW Split2'", true);
Test->check_log_err(0, (char *) "Unable to find filter 'tests' for service 'RW Split2'", true);
int rval = Test->global_result;
delete Test;