]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1428] Copied missing PgSQL host tests
authorMarcin Siodelski <marcin@isc.org>
Sun, 4 Oct 2020 18:50:55 +0000 (20:50 +0200)
committerMarcin Siodelski <marcin@isc.org>
Mon, 5 Oct 2020 13:14:58 +0000 (13:14 +0000)
src/lib/dhcpsrv/tests/pgsql_host_data_source_unittest.cc

index aa984171eb939b2d12d45fbe58be67f597fe8436..8d1244828957703a8eecbfef908ab988c15f2fb9 100644 (file)
@@ -1107,6 +1107,21 @@ TEST_F(PgSqlHostDataSourceTest, addDuplicate4MultiThreading) {
     testAddDuplicateIPv4();
 }
 
+/// @brief Test if the host reservation for the same IPv6 address can be inserted
+/// multiple times when allowed by the configuration and when the host identifier
+/// is different.
+TEST_F(PgSqlHostDataSourceTest, allowDuplicateIPv6) {
+    testAllowDuplicateIPv6();
+}
+
+/// @brief Test if the host reservation for the same IPv6 address can be inserted
+/// multiple times when allowed by the configuration and when the host identifier
+/// is different.
+TEST_F(PgSqlHostDataSourceTest, allowDuplicateIPv6MultiThreading) {
+    MultiThreadingTest mt(true);
+    testAllowDuplicateIPv6();
+}
+
 /// @brief Test if the host reservation for the same IPv4 address can be inserted
 /// multiple times when allowed by the configuration and when the host identifier
 /// is different.