MXS-2900 Rename maxscale-system-test directory to system-test

A link with the old directory name is provided.
This commit is contained in:
Esa Korhonen
2020-07-28 13:36:36 +03:00
parent a253ec8117
commit 08f5174915
893 changed files with 12 additions and 11 deletions

View File

@ -0,0 +1,31 @@
/**
* Check that old-style passwords are detected
*/
#include "testconnections.h"
int main(int argc, char* argv[])
{
TestConnections test(argc, argv);
test.repl->connect();
execute_query(test.repl->nodes[0], "CREATE USER 'old'@'%%' IDENTIFIED BY 'old';");
execute_query(test.repl->nodes[0], "SET PASSWORD FOR 'old'@'%%' = OLD_PASSWORD('old')");
execute_query(test.repl->nodes[0], "FLUSH PRIVILEGES");
test.repl->sync_slaves();
test.set_timeout(20);
test.tprintf("Trying to connect using user with old style password");
MYSQL* conn = open_conn(test.maxscales->rwsplit_port[0],
test.maxscales->IP[0],
(char*) "old",
(char*) "old",
test.ssl);
test.add_result(mysql_errno(conn) == 0, "Connections is open for the user with old style password.\n");
mysql_close(conn);
execute_query(test.repl->nodes[0], "DROP USER 'old'@'%%'");
return test.global_result;
}