Clean up mxs548_short_session_change_user
The test unnecessarily did an unconditional drop of the user resulting in errors. Also prevented stopping of MaxScale if it wasn't started in the first place.
This commit is contained in:
@ -86,7 +86,7 @@ int main(int argc, char *argv[])
|
|||||||
Test->repl->sync_slaves();
|
Test->repl->sync_slaves();
|
||||||
|
|
||||||
Test->tprintf("Creating user 'user' \n");
|
Test->tprintf("Creating user 'user' \n");
|
||||||
execute_query(Test->maxscales->conn_rwsplit[0], (char *) "DROP USER user@'%%'");
|
execute_query(Test->maxscales->conn_rwsplit[0], (char *) "DROP USER IF EXISTS user@'%%'");
|
||||||
execute_query(Test->maxscales->conn_rwsplit[0], (char *) "CREATE USER user@'%%' IDENTIFIED BY 'pass2'");
|
execute_query(Test->maxscales->conn_rwsplit[0], (char *) "CREATE USER user@'%%' IDENTIFIED BY 'pass2'");
|
||||||
execute_query(Test->maxscales->conn_rwsplit[0], (char *) "GRANT SELECT ON test.* TO user@'%%'");
|
execute_query(Test->maxscales->conn_rwsplit[0], (char *) "GRANT SELECT ON test.* TO user@'%%'");
|
||||||
execute_query(Test->maxscales->conn_rwsplit[0], (char *) "DROP TABLE IF EXISTS test.t1");
|
execute_query(Test->maxscales->conn_rwsplit[0], (char *) "DROP TABLE IF EXISTS test.t1");
|
||||||
|
|||||||
@ -641,7 +641,10 @@ void TestConnections::init_maxscale(int m)
|
|||||||
{
|
{
|
||||||
const char * template_name = get_template_name(test_name);
|
const char * template_name = get_template_name(test_name);
|
||||||
|
|
||||||
|
if (maxscale::start)
|
||||||
|
{
|
||||||
stop_maxscale(m);
|
stop_maxscale(m);
|
||||||
|
}
|
||||||
|
|
||||||
process_template(m, template_name, maxscales->access_homedir[m]);
|
process_template(m, template_name, maxscales->access_homedir[m]);
|
||||||
maxscales->ssh_node_f(m, true,
|
maxscales->ssh_node_f(m, true,
|
||||||
|
|||||||
Reference in New Issue
Block a user