2.2 fix restore (#152)

* refactor test backend fixing

* return comatibility with 5.5 for backend restore

* remove backend configuration scripts

* adopt test backed restore function for 2.2 test fw
This commit is contained in:
Timofey Turenko
2017-12-18 23:47:07 +02:00
committed by GitHub
parent b9e7eaf3aa
commit 1006ec506a
11 changed files with 453 additions and 180 deletions

View File

@ -139,6 +139,18 @@ public:
* @brief Open connctions to all backend nodes (to 'test' DB)
* @return 0 in case of success
*/
/**
* @brief make_snapshot_command Command line to create a snapshot of all VMs
*/
char * take_snapshot_command;
/**
* @brief revert_snapshot_command Command line to revert a snapshot of all VMs
*/
char * revert_snapshot_command;
int connect(int i);
int connect();
/**
@ -295,7 +307,14 @@ public:
int execute_query_all_nodes(const char* sql);
/**
* @brief execute 'SELECT @@version' against all nodes and store result in 'version' fied
* @brief execute 'SELECT @@version' against one node and store result in 'version' field
* @param i Node index
* @return 0 in case of success
*/
int get_version(int i);
/**
* @brief execute 'SELECT @@version' against all nodes and store result in 'version' field
* @return 0 in case of success
*/
int get_versions();
@ -377,6 +396,21 @@ public:
*/
void add_server_setting(int node, const char* setting);
/**
* @brief revert_nodes_snapshot Execute MDBCI snapshot revert command for all nodes
* @return true in case of success
*/
bool revert_nodes_snapshot();
/**
* @brief prepare_server Initialize MariaDB setup (run mysql_install_db) and create test users
* Tries to detect Mysql 5.7 installation and disable 'validate_password' pluging
* @param i Node index
* @return 0 in case of success
*/
virtual int prepare_server(int i);
int prepare_servers();
private:
@ -403,6 +437,13 @@ public:
{
return check_galera();
}
//int prepare_galera_server(int i);
//virtual int prepare_server(int i)
//{
// return prepare_galera_server(i);
//}
};
#endif // MARIADB_NODES_H