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,43 @@
/**
* @file bug495.cpp regression case for bug 495 ( Referring to a nonexisting server in servers=... doesn't even raise a warning )
*
* - Maxscale.cnf with "servers= server1, server2,server3 ,server4,server5"
* but 'server5' is not defined. Test checks error log for proper error message.
* - check if Maxscale is alive
*/
/*
Description Hartmut Holzgraefe 2014-08-31 21:32:09 UTC
Only [server1] and [server2] are defined,
service [test_service] and monitor [MySQL monitor]
refer to a third server "server3" in their servers=...
list though ...
Nothing in the err or msg log hints towards a problem ...
(which originally was caused by a copy/paste error that
also lead to the "duplicate section name" error reported
earlier ... and which would have been easy to track down
if either of these problems would at least have raised a
warning - took me almost an hour to track down the actual
problem ... :(
*/
#include <iostream>
#include <unistd.h>
#include "testconnections.h"
using namespace std;
int main(int argc, char *argv[])
{
TestConnections * Test = new TestConnections(argc, argv);
Test->set_timeout(10);
Test->check_log_err((char *) "Unable to find server", true);
Test->check_log_err((char *) "errors were encountered while processing the configuration", true);
int rval = Test->global_result;
delete Test;
return rval;
}