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:
parent
c211bf1a21
commit
0907e0f0e5
@ -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++)
|
||||
|
@ -166,7 +166,7 @@ function(add_test_executable_ex)
|
||||
message(FATAL_ERROR "VMS is not set.")
|
||||
else()
|
||||
# Check that the vms setup is recognized.
|
||||
set(known_vms_setups none repl_backend galera_backend big_repl_backend columnstore_backend second_maxscale)
|
||||
set(known_vms_setups none repl_backend galera_backend big_repl_backend columnstore_backend second_maxscale backend_ssl)
|
||||
foreach(elem ${vms_setup})
|
||||
list(FIND known_vms_setups ${elem} vms_ind)
|
||||
if (vms_ind GREATER -1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user