diff options
author | Francis Dupont <fdupont@isc.org> | 2021-12-22 14:08:18 +0100 |
---|---|---|
committer | Francis Dupont <fdupont@isc.org> | 2022-01-06 13:12:40 +0100 |
commit | bd39cad27d3257b75c5344f792451f72a20522da (patch) | |
tree | 68872916ed3a3907650590db6e0b9449c433aa6f /src/lib/mysql | |
parent | [#34] Addressed some comments (diff) | |
download | kea-bd39cad27d3257b75c5344f792451f72a20522da.tar.xz kea-bd39cad27d3257b75c5344f792451f72a20522da.zip |
[#34] Added VALID_HOST_TCP
Diffstat (limited to 'src/lib/mysql')
-rw-r--r-- | src/lib/mysql/tests/mysql_connection_unittest.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/mysql/tests/mysql_connection_unittest.cc b/src/lib/mysql/tests/mysql_connection_unittest.cc index c8106fe5ff..972f5f683b 100644 --- a/src/lib/mysql/tests/mysql_connection_unittest.cc +++ b/src/lib/mysql/tests/mysql_connection_unittest.cc @@ -699,7 +699,7 @@ TEST_F(MySqlSecureConnectionTest, Tls) { return; } std::string conn_str = connectionString(MYSQL_VALID_TYPE, VALID_NAME, - VALID_HOST, VALID_SECURE_USER, + VALID_HOST_TCP, VALID_SECURE_USER, VALID_PASSWORD, 0, 0, VALID_CERT, VALID_KEY, VALID_CA, VALID_CIPHER); @@ -719,7 +719,7 @@ TEST_F(MySqlSecureConnectionTest, TlsInvalidPassword) { return; } std::string conn_str = connectionString(MYSQL_VALID_TYPE, VALID_NAME, - VALID_HOST, VALID_SECURE_USER, + VALID_HOST_TCP, VALID_SECURE_USER, INVALID_PASSWORD, 0, 0, VALID_CERT, VALID_KEY, VALID_CA, VALID_CIPHER); @@ -735,7 +735,7 @@ TEST_F(MySqlSecureConnectionTest, TlsNoCrypto) { return; } std::string conn_str = connectionString(MYSQL_VALID_TYPE, VALID_NAME, - VALID_HOST, VALID_SECURE_USER, + VALID_HOST_TCP, VALID_SECURE_USER, VALID_PASSWORD); MySqlConnection conn(DatabaseConnection::parse(conn_str)); EXPECT_THROW(conn.openDatabase(), DbOpenError); @@ -749,7 +749,7 @@ TEST_F(MySqlSecureConnectionTest, TlsInvalidKey) { return; } std::string conn_str = connectionString(MYSQL_VALID_TYPE, VALID_NAME, - VALID_HOST, VALID_SECURE_USER, + VALID_HOST_TCP, VALID_SECURE_USER, VALID_PASSWORD, 0, 0, VALID_CERT, INVALID_KEY, VALID_CA, VALID_CIPHER); @@ -765,7 +765,7 @@ TEST_F(MySqlSecureConnectionTest, TlsNoKey) { return; } std::string conn_str = connectionString(MYSQL_VALID_TYPE, VALID_NAME, - VALID_HOST, VALID_SECURE_USER, + VALID_HOST_TCP, VALID_SECURE_USER, VALID_PASSWORD, 0, 0, VALID_CERT, 0, VALID_CA, VALID_CIPHER); |