Merge branch '2.3' into 2.4

This commit is contained in:
Esa Korhonen
2020-07-28 16:00:02 +03:00
943 changed files with 12 additions and 11 deletions

View File

@ -0,0 +1,23 @@
/**
* MXS-1831: No error on invalid monitor parameter alteration
*
* https://jira.mariadb.org/browse/MXS-1831
*/
#include <maxtest/testconnections.hh>
int main(int argc, char** argv)
{
TestConnections test(argc, argv);
int rc = test.maxscales->ssh_node_f(0,
true,
"maxctrl alter monitor MySQL-Monitor not_a_parameter not_a_value|grep Error");
test.expect(rc == 0, "Altering unknown parameter should cause an error");
rc = test.maxscales->ssh_node_f(0,
true,
"maxctrl alter monitor MySQL-Monitor ignore_external_masters on_sunday_afternoons|grep Error");
test.expect(rc == 0, "Invalid parameter value should cause an error");
return test.global_result;
}