MXS-3031 Add function for resetting users

With this function, a test that changes the default test users
on a node can reset the situation.
This commit is contained in:
Johan Wikman
2020-06-24 10:21:52 +03:00
parent c9badcb09c
commit 9955f00bf5
2 changed files with 23 additions and 0 deletions

View File

@ -379,6 +379,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;