Fix mysqlmon_failover_auto and mysqlmon_failover_manual

The tests now reset the replication state using queries and switchover instead of
calling fix_replication(). The results are checked so these tests now test
switchover as well.

Also, reduce printing when verbose is on for any test using the get_output()-function
in fail_switch_rejoin_common.cpp.
This commit is contained in:
Esa Korhonen
2017-12-20 11:19:17 +02:00
parent 8ef681d8cd
commit 6b2133d6a6
6 changed files with 219 additions and 71 deletions

View File

@ -18,11 +18,17 @@ void get_output(TestConnections& test)
test.tprintf("%s", output);
free(output);
test.tprintf("MaxScale output:");
if (test.verbose)
{
test.tprintf("MaxScale output:");
}
output = test.maxscales->ssh_node_output(0, "cat /var/log/maxscale/maxscale.log && "
"sudo truncate -s 0 /var/log/maxscale/maxscale.log",
true, &ec);
test.tprintf("%s", output);
if (test.verbose)
{
test.tprintf("%s", output);
}
free(output);
}