]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1428] Set unique hosts in backend tests
authorMarcin Siodelski <marcin@isc.org>
Fri, 2 Oct 2020 17:34:11 +0000 (19:34 +0200)
committerMarcin Siodelski <marcin@isc.org>
Mon, 5 Oct 2020 13:14:58 +0000 (13:14 +0000)
Per review comments.

src/lib/dhcpsrv/tests/cql_host_data_source_unittest.cc
src/lib/dhcpsrv/tests/mysql_host_data_source_unittest.cc
src/lib/dhcpsrv/tests/pgsql_host_data_source_unittest.cc

index 05a9401ba72e220e3f699263e71f1c3e7c37c085..1ac07352e4e4679ed362d5097afe55da6fbeac76 100644 (file)
@@ -70,6 +70,7 @@ public:
         }
 
         hdsptr_ = HostMgr::instance().getHostDataSource();
+        hdsptr_->setIPReservationUnique(true);
     }
 
     /// @brief Destroys the HDS and the schema.
index 4e7ece4fd45c51840ada13141575a6d86a8be72a..f6334e2dc504526cdeac394e586ff9bda54d22bf 100644 (file)
@@ -62,6 +62,8 @@ public:
         }
 
         hdsptr_ = HostMgr::instance().getHostDataSource();
+        hdsptr_->setIPReservationUnique(true);
+
 
         MultiThreadingMgr::instance().setMode(false);
     }
index 9e490cbe911e2f0c83c5d4c494f60bea18c1f77d..2baac370a998988eb2a1ae874887158d295b4e65 100644 (file)
@@ -62,6 +62,7 @@ public:
         }
 
         hdsptr_ = HostMgr::instance().getHostDataSource();
+        hdsptr_->setIPReservationUnique(true);
 
         MultiThreadingMgr::instance().setMode(false);
     }