add tests
This commit is contained in:

committed by
Markus Mäkelä

parent
dbfd631fed
commit
8c6ca38a8a
35
maxscale-system-test/bug479.cpp
Normal file
35
maxscale-system-test/bug479.cpp
Normal file
@ -0,0 +1,35 @@
|
||||
/**
|
||||
* @file bug479.cpp regression case for bug 479 ( Undefined filter reference in MaxScale.cnf causes a crash)
|
||||
*
|
||||
* - Maxscale.cnf with "filters=non existing filter | не существуюший фильтер", cheks error log for warnings and
|
||||
* - check if Maxscale is alive
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
Markus Mäkelä 2014-08-15 17:38:06 UTC
|
||||
Undefined filters in services cause a crash when the service is accessed.
|
||||
|
||||
How to reproduce:
|
||||
Define a service with a filter not defined in the MaxScale.cnf file, start MaxScale and access the service.
|
||||
*/
|
||||
|
||||
|
||||
#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 filter 'non existing filter", true);
|
||||
//global_result =Test->check_log_err((char *) "не существуюший фильтер", true);
|
||||
//global_result +=Test->check_maxscale_alive();
|
||||
int rval = Test->global_result;
|
||||
delete Test;
|
||||
return rval;
|
||||
}
|
||||
|
Reference in New Issue
Block a user