From: Thomas Markwalder Date: Thu, 22 Sep 2022 15:47:44 +0000 (-0400) Subject: [#2571] Fixed test lease manager X-Git-Tag: Kea-2.3.1~28 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=305b8d8846d6df71083c6ba522efd66bdeb8cc6c;p=thirdparty%2Fkea.git [#2571] Fixed test lease manager dhcpsrv/tests/lease_mgr_unittest.cc Added stubbed query functions to ConcreteLeaseMgr --- diff --git a/src/lib/dhcpsrv/tests/lease_mgr_unittest.cc b/src/lib/dhcpsrv/tests/lease_mgr_unittest.cc index 00675ecc32..3329ab8fba 100644 --- a/src/lib/dhcpsrv/tests/lease_mgr_unittest.cc +++ b/src/lib/dhcpsrv/tests/lease_mgr_unittest.cc @@ -396,6 +396,48 @@ public: isc_throw(NotImplemented, "ConcreteLeaseMgr::clearClassLeaseCounts() not implemented"); } + + /// @brief Stub implementation. + Lease4Collection getLeases4ByRelayId(const OptionBuffer& /* relay_id */, + const IOAddress& /* lower_bound_address */, + const LeasePageSize& /* page_size */, + const time_t& /* qry_start_time = 0 */, + const time_t& /* qry_end_time = 0 */) override { + isc_throw(NotImplemented, "ConcreteLeaseMgr::getLeases4ByRelayId not implemented"); + } + + /// @brief Stub implementation. + Lease4Collection getLeases4ByRemoteId(const OptionBuffer& /* remote_id */, + const IOAddress& /* lower_bound_address */, + const LeasePageSize& /* page_size */, + const time_t& /* qry_start_time = 0 */, + const time_t& /* qry_end_time = 0 */) { + isc_throw(NotImplemented, "ConcreteLeaseMgr::getLeases4ByRemoteId not implemented"); + } + + /// @brief Stub implementation. + Lease6Collection getLeases6ByRelayId(const DUID& /* relay_id */, + const IOAddress& /* link_addr */, + const IOAddress& /* lower_bound_address */, + const LeasePageSize& /* page_size */) { + isc_throw(NotImplemented, "ConcreteLeaseMgr::getLeases6ByRelayId not implemented"); + } + + /// @brief Stub implementation. + Lease6Collection getLeases6ByRemoteId(const OptionBuffer& /* remote_id */, + const IOAddress& /* link_addr */, + const IOAddress& /* lower_bound_address */, + const LeasePageSize& /* page_size*/) { + isc_throw(NotImplemented, "ConcreteLeaseMgr::getLeases6ByRemoteId not implemented"); + } + + /// @brief Stub implementation. + Lease6Collection getLeases6ByLink(const IOAddress& /* link_addr */, + const IOAddress& /* lower_bound_address */, + const LeasePageSize& /* page_size */) { + isc_throw(NotImplemented, "ConcreteLeaseMgr::getLeases6ByLink not implemented"); + } + /// @brief Returns backend type. /// /// Returns the type of the backend (e.g. "mysql", "memfile" etc.)