Merge branch '2.3' into 2.4
This commit is contained in:
commit
6766114820
@ -241,6 +241,13 @@ public:
|
||||
// Create the default users used by all tests
|
||||
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`
|
||||
*/
|
||||
|
@ -386,6 +386,22 @@ void Mariadb_nodes::create_users(int node)
|
||||
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 local_result = 0;
|
||||
|
@ -554,6 +554,11 @@ TestConnections::~TestConnections()
|
||||
{
|
||||
repl->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
|
||||
|
Loading…
x
Reference in New Issue
Block a user