Extend galera_priority test case

The test now verifies that the node priorities are in effect even after
MaxScale is restarted.
This commit is contained in:
Markus Mäkelä 2018-01-22 20:25:14 +02:00
parent 257034bf3e
commit f45911caf8

View File

@ -137,6 +137,19 @@ int simple_failover(TestConnections* test)
}
test->maxscales->close_rwsplit(0);
test->tprintf("OK\n");
/** Restart MaxScale check that states are the same */
test->maxscales->restart();
sleep(15);
test->tprintf("Expecting '%s'...", server_id[2]);
if (test->maxscales->connect_rwsplit(0) || check_server_id(test, server_id[2]))
{
test->tprintf("Test failed after restarting MaxScale.");
rval = 1;
break;
}
test->maxscales->close_rwsplit(0);
test->tprintf("OK\n");
}
while (false);