Add tests from develop
Added tests from develop. The test results need to be modified for 2.0.
This commit is contained in:
28
maxscale-system-test/false_monitor_state_change.cpp
Normal file
28
maxscale-system-test/false_monitor_state_change.cpp
Normal file
@ -0,0 +1,28 @@
|
||||
/**
|
||||
* Test false server state changes when manually clearing master bit
|
||||
*/
|
||||
|
||||
#include "testconnections.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
TestConnections test(argc, argv);
|
||||
|
||||
test.tprintf("Block master");
|
||||
test.repl->block_node(0);
|
||||
|
||||
test.tprintf("Wait for monitor to see it");
|
||||
sleep(10);
|
||||
|
||||
test.tprintf("Clear master status");
|
||||
test.ssh_maxscale(true, "maxadmin clear server server1 master");
|
||||
sleep(5);
|
||||
|
||||
test.repl->unblock_node(0);
|
||||
sleep(5);
|
||||
|
||||
test.check_maxscale_alive();
|
||||
test.check_log_err("debug assert", false);
|
||||
|
||||
return test.global_result;
|
||||
}
|
Reference in New Issue
Block a user