Fix 2.1 tests

Changed object names to pre-2.2 format. Added a workaround for the unicode
NULL character problem in cdc_datatypes.
This commit is contained in:
Markus Mäkelä
2017-06-02 18:33:06 +03:00
parent 2e15c3b204
commit 9c5114b593
3 changed files with 5 additions and 3 deletions

View File

@ -38,7 +38,9 @@ public:
bool operator ==(const TestOutput& output) const
{
return m_value == output.getValue();
return m_value == output.getValue() ||
(m_type.find("BLOB") != std::string::npos &&
output.getValue().length() == 0);
}
bool operator !=(const TestOutput& output) const

View File

@ -36,7 +36,7 @@ int main(int argc, char *argv[])
sprintf(str, "rules%d", i);
Test->set_timeout(180);
copy_rules(Test, str, rules_dir);
Test->ssh_maxscale(true, "maxadmin call command dbfwfilter rules/reload Database-Firewall");
Test->ssh_maxscale(true, "maxadmin call command dbfwfilter rules/reload \"Database Firewall\"");
int local_result = 0;
sprintf(pass_file, "%s/fw/pass%d", test_dir, i);

View File

@ -42,7 +42,7 @@ void check_status(TestConnections *Test, const char *server, const char *status)
void check_group(TestConnections *Test, const char *server, const char *group)
{
char *output = Test->ssh_maxscale_output(true, "maxadmin show monitor MySQL-Monitor");
char *output = Test->ssh_maxscale_output(true, "maxadmin show monitor \"MySQL Monitor\"");
if (output == NULL)
{