From: Marcin Siodelski Date: Sun, 4 Oct 2020 18:50:55 +0000 (+0200) Subject: [#1428] Copied missing PgSQL host tests X-Git-Tag: Kea-1.9.1~121 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc1456a4879671f21015f593b2115f58acde2d89;p=thirdparty%2Fkea.git [#1428] Copied missing PgSQL host tests --- diff --git a/src/lib/dhcpsrv/tests/pgsql_host_data_source_unittest.cc b/src/lib/dhcpsrv/tests/pgsql_host_data_source_unittest.cc index aa984171eb..8d12448289 100644 --- a/src/lib/dhcpsrv/tests/pgsql_host_data_source_unittest.cc +++ b/src/lib/dhcpsrv/tests/pgsql_host_data_source_unittest.cc @@ -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.