]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2571] Fixed test lease manager
authorThomas Markwalder <tmark@isc.org>
Thu, 22 Sep 2022 15:47:44 +0000 (11:47 -0400)
committerThomas Markwalder <tmark@isc.org>
Fri, 23 Sep 2022 09:52:44 +0000 (05:52 -0400)
dhcpsrv/tests/lease_mgr_unittest.cc
    Added stubbed query functions to ConcreteLeaseMgr

src/lib/dhcpsrv/tests/lease_mgr_unittest.cc

index 00675ecc327f072ecb8e862beea2126d3aca5fcb..3329ab8fbaaa94f0353f3aad7ce5dd9cf81dfbc9 100644 (file)
@@ -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.)