Add BACKEND_SSL VM type

This is needed by tests that use add_test_executable_ex and require
backend SSL. Also fixed a problem in disable_ssl where an empty query was
executed instead of the query itself.
This commit is contained in:
Markus Mäkelä
2020-05-27 14:06:51 +03:00
parent c211bf1a21
commit 0907e0f0e5
2 changed files with 5 additions and 11 deletions

View File

@ -1175,16 +1175,10 @@ int Mariadb_nodes::configure_ssl(bool require)
int Mariadb_nodes::disable_ssl()
{
int local_result = 0;
char str[1024];
local_result += connect();
sprintf(str,
"DROP USER %s; grant all privileges on *.* to '%s'@'%%' identified by '%s';",
user_name,
user_name,
password);
local_result += execute_query(nodes[0], "%s", "");
int local_result = connect();
local_result += execute_query(
nodes[0], "DROP USER %s; grant all privileges on *.* to '%s'@'%%' identified by '%s';",
user_name, user_name, password);
close_connections();
for (int i = 0; i < N; i++)