Update bug673 to expect new behavior

Since whitespace in object names is now disallowed, the test must be
adjusted accordingly.
This commit is contained in:
Markus Mäkelä
2019-03-25 08:40:55 +02:00
parent c70dc23211
commit 382ddf3ea1

View File

@ -18,13 +18,11 @@ int main(int argc, char* argv[])
test.set_timeout(60); test.set_timeout(60);
for (int i = 0; i < 2; i++) for (int i = 0; i < 2; i++)
{ {
test.add_result(test.maxscales->ssh_node_f(0, constexpr const char* old_cmd = "maxadmin show dbusers \"RW Split Router\"|grep 'User names'";
true, constexpr const char* new_cmd = "maxadmin show dbusers RW-Split-Router|grep 'User names'";
"maxadmin show dbusers \"RW Split Router\"|grep 'User names'"), test.expect(test.maxscales->ssh_node_f(0, true, old_cmd) != 0,
"Old style objects in maxadmin commands should succeed"); "Old style objects in maxadmin commands should fail");
test.add_result(test.maxscales->ssh_node_f(0, test.expect(test.maxscales->ssh_node_f(0, true, new_cmd) == 0,
true,
"maxadmin show dbusers RW-Split-Router|grep 'User names'"),
"New style objects in maxadmin commands should succeed"); "New style objects in maxadmin commands should succeed");
} }