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

@ -28,8 +28,8 @@ int main(int argc, char *argv[])
sprintf(cmd, "%s/utf64.cnf", test_dir);
for (int i = 0; i < Test->repl->N; i++)
{
Test->repl->copy_to_node(cmd, "./", i);
Test->repl->ssh_node(i, true, "cp ./utf64.cnf /etc/my.cnf.d/");
Test->repl->copy_to_node_legacy(cmd, (char *) "./", i);
Test->repl->ssh_node(i, (char *) "cp ./utf64.cnf /etc/my.cnf.d/", true);
}
Test->repl->start_replication();
@ -44,15 +44,15 @@ int main(int argc, char *argv[])
Test->set_timeout(120);
Test->tprintf("Restart Maxscale");
Test->restart_maxscale();
Test->maxscales->restart_maxscale(0);
Test->check_maxscale_alive();
Test->check_maxscale_alive(0);
Test->stop_timeout();
Test->tprintf("Restore backend configuration\n");
for (int i = 0; i < Test->repl->N; i++)
{
Test->repl->ssh_node(i, true, "rm /etc/my.cnf.d/utf64.cnf");
Test->repl->ssh_node(i, (char *) "rm /etc/my.cnf.d/utf64.cnf", true);
}
Test->repl->start_replication();