Files
MaxScale/system-test/mxs2417_ignore_persisted_cnf.cpp
2020-07-28 16:15:50 +03:00

25 lines
730 B
C++

/**
* MXS-2417: Ignore persisted configs with load_persisted_configs=false
* https://jira.mariadb.org/browse/MXS-2417
*/
#include <maxtest/testconnections.hh>
int main(int argc, char* argv[])
{
TestConnections test(argc, argv);
test.tprintf("Creating a server and verifying it exists");
test.check_maxctrl("create server server1234 127.0.0.1 3306");
test.check_maxctrl("show server server1234");
test.tprintf("Restarting MaxScale");
test.maxscales->restart_maxscale();
test.tprintf("Creating the server again and verifying it is successful");
test.check_maxctrl("create server server1234 127.0.0.1 3306");
test.check_maxctrl("show server server1234");
return test.global_result;
}