Files
MaxScale/system-test/mxs2037_namedserver_wildcards.cpp
Esa Korhonen 08f5174915 MXS-2900 Rename maxscale-system-test directory to system-test
A link with the old directory name is provided.
2020-07-28 15:24:27 +03:00

24 lines
782 B
C++

/**
* MXS-2037: Wildcards not working with source in NamedServerFilter
*
* https://jira.mariadb.org/browse/MXS-2037
*
* This test only tests that ip addresses with wildcards are accepted by
* NamedServerFilter. The actual matching functionality is not tested
* because the client IPs can change with the different test environments
* and that would make it complicated to check if the matching is correct.
*/
#include "testconnections.h"
int main(int argc, char** argv)
{
TestConnections test(argc, argv);
test.set_timeout(10);
test.maxscales->connect_maxscale(0);
test.add_result(execute_query(test.maxscales->conn_rwsplit[0], "select 1"), "Can't connect to backend");
test.maxscales->close_maxscale_connections(0);
return test.global_result;
}