MXS-2414: Add test case

Added a test that checks the host blocking is triggered and it blocks even
successful authentication attemps.
This commit is contained in:
Markus Mäkelä
2019-04-29 11:28:35 +03:00
parent 59be841939
commit 9e85389b80
3 changed files with 56 additions and 0 deletions

View File

@ -342,6 +342,12 @@ public:
return change_user(m_user, m_pw, m_db);
}
void set_credentials(const std::string& user, const std::string pw)
{
m_user = user;
m_pw = pw;
}
private:
std::string m_host;
int m_port;