diff options
author | Francis Dupont <fdupont@isc.org> | 2021-12-22 16:48:23 +0100 |
---|---|---|
committer | Francis Dupont <fdupont@isc.org> | 2022-01-06 13:12:40 +0100 |
commit | 684dfd4508e078abeb4c014e90056e1ac9c5c319 (patch) | |
tree | 13b985743f260235408c8a7477c127cee5fe6785 /src/lib/mysql | |
parent | [34] regen flex/bison (diff) | |
download | kea-684dfd4508e078abeb4c014e90056e1ac9c5c319.tar.xz kea-684dfd4508e078abeb4c014e90056e1ac9c5c319.zip |
[#34] Added a Tcp UT
Diffstat (limited to 'src/lib/mysql')
-rw-r--r-- | src/lib/mysql/tests/mysql_connection_unittest.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/mysql/tests/mysql_connection_unittest.cc b/src/lib/mysql/tests/mysql_connection_unittest.cc index 972f5f683b..db987d281e 100644 --- a/src/lib/mysql/tests/mysql_connection_unittest.cc +++ b/src/lib/mysql/tests/mysql_connection_unittest.cc @@ -691,6 +691,15 @@ TEST_F(MySqlSecureConnectionTest, getMySQLTls) { } } +/// @brief Check the enforced TCP connection. +TEST_F(MySqlSecureConnectionTest, Tcp) { + std::string conn_str = connectionString(MYSQL_VALID_TYPE, VALID_NAME, + VALID_HOST_TCP, VALID_USER, + VALID_PASSWORD); + MySqlConnection conn(DatabaseConnection::parse(conn_str)); + ASSERT_NO_THROW(conn.openDatabase()); +} + /// @brief Check the SSL/TLS protected connection. TEST_F(MySqlSecureConnectionTest, Tls) { if (!hasMySQLTls()) { |