MXS-2252: Add test case

Added a test case that verifies the correct user is used.
This commit is contained in:
Markus Mäkelä
2019-01-15 08:50:04 +02:00
parent db98ecbaa1
commit 511f01a28d
2 changed files with 22 additions and 0 deletions

View File

@ -153,6 +153,14 @@ public:
int connect(int i, const std::string& db = "test");
int connect(const std::string& db = "test");
/**
* Get a Connection to a node
*/
Connection get_connection(int i, const std::string& db = "test")
{
return Connection(IP[i], port[i], user_name, password, db, ssl);
}
/**
* Repeatedly try to connect with one second sleep in between attempts
*