Merge branch '2.3' into 2.4

This commit is contained in:
Johan Wikman
2020-07-08 09:38:32 +03:00
3 changed files with 28 additions and 0 deletions

View File

@ -241,6 +241,13 @@ public:
// Create the default users used by all tests // Create the default users used by all tests
void create_users(int node); void create_users(int node);
/**
* Create the default users used by all tests on all nodes.
*
* @return 0 in case of success.
*/
int create_users();
/** /**
* Blocks `src` from communicating with `dest` * Blocks `src` from communicating with `dest`
*/ */

View File

@ -386,6 +386,22 @@ void Mariadb_nodes::create_users(int node)
user_name, password, access_homedir[0], socket_cmd[0]); user_name, password, access_homedir[0], socket_cmd[0]);
} }
int Mariadb_nodes::create_users()
{
for (int i = 0; i < N; i++)
{
if (start_node(i, (char*) ""))
{
printf("Start of node %d failed\n", i);
return 1;
}
create_users(i);
}
return 0;
}
int Mariadb_nodes::start_replication() int Mariadb_nodes::start_replication()
{ {
int local_result = 0; int local_result = 0;

View File

@ -554,6 +554,11 @@ TestConnections::~TestConnections()
{ {
repl->disable_ssl(); repl->disable_ssl();
// galera->disable_ssl(); // galera->disable_ssl();
// TODO: Presumably that repl->disable_ssl() call should remove the SSL requirement,
// TODO: but that it does not do as any non-SSL test folling will not work.
// TODO: Creating the users seems to fix it, so for the time being we do that.
repl->create_users();
} }
// stop all Maxscales to detect crashes on exit // stop all Maxscales to detect crashes on exit