From f45911caf81a852d3e9fa8df4994a3de9ec40034 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Mon, 22 Jan 2018 20:25:14 +0200 Subject: [PATCH] Extend galera_priority test case The test now verifies that the node priorities are in effect even after MaxScale is restarted. --- maxscale-system-test/galera_priority.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/maxscale-system-test/galera_priority.cpp b/maxscale-system-test/galera_priority.cpp index 80f4026c3..a4570a963 100644 --- a/maxscale-system-test/galera_priority.cpp +++ b/maxscale-system-test/galera_priority.cpp @@ -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);