MXS-2313: Add rank test case

The test checks that the behavior of readwritesplit is as it should
be. The test still needs to be extended to cover readconnroute.
This commit is contained in:
Markus Mäkelä
2019-03-11 09:51:27 +02:00
parent 6befc7f7d4
commit 6ca89b4d27
5 changed files with 184 additions and 0 deletions

View File

@ -939,6 +939,18 @@ std::string Mariadb_nodes::get_server_id_str(int index)
return ss.str();
}
std::vector<std::string> Mariadb_nodes::get_all_server_ids_str()
{
std::vector<std::string> rval;
for (int i = 0; i < N; i++)
{
rval.push_back(get_server_id_str(i));
}
return rval;
}
std::vector<int> Mariadb_nodes::get_all_server_ids()
{
std::vector<int> rval;