Add tests from develop

Added tests from develop. The test results need to be modified for 2.0.
This commit is contained in:
Markus Mäkelä
2017-05-26 15:40:40 +03:00
parent ad109408b5
commit d7d4ec29bb
596 changed files with 48543 additions and 0 deletions

View 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;
}