MXS-1899: Test that generated [maxscale] sections work

The test alters the configuration at runtime and restarts MaxScale.
This commit is contained in:
Markus Mäkelä 2018-06-04 19:38:42 +03:00
parent 1857252033
commit e6a9b83269
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19
2 changed files with 22 additions and 0 deletions

View File

@ -662,6 +662,10 @@ add_test_executable(mxs1873_large_sescmd.cpp mxs1873_large_sescmd replication LA
# https://jira.mariadb.org/browse/MXS-1896
add_test_executable(mxs1896_load_data_infile.cpp mxs1896_load_data_infile replication LABELS readwritesplit REPL_BACKEND)
# MXS-1899: generated [maxscale] section causes errors
# https://jira.mariadb.org/browse/MXS-1899
add_test_executable(mxs1899_generated_cnf.cpp mxs1899_generated_cnf replication LABELS REPL_BACKEND)
# 'namedserverfilter' test
add_test_executable(namedserverfilter.cpp namedserverfilter namedserverfilter LABELS namedserverfilter LIGHT REPL_BACKEND)

View File

@ -0,0 +1,18 @@
/**
* MXS-1889: generated [maxscale] section causes errors
*
* https://jira.mariadb.org/browse/MXS-1899
*/
#include "testconnections.h"
int main(int argc, char** argv)
{
TestConnections test(argc, argv);
test.maxscales->ssh_node_f(0, true, "maxctrl alter maxscale auth_connect_timeout 10");
test.assert(test.maxscales->restart() == 0, "Restarting MaxScale after modification "
"of global parameters should work");
return test.global_result;
}