]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1004] werror compilation fixes 1004-werror-tests-fix
authorTomek Mrugalski <tomasz@isc.org>
Sat, 9 Nov 2019 17:26:04 +0000 (18:26 +0100)
committerTomek Mrugalski <tomasz@isc.org>
Sat, 9 Nov 2019 17:26:04 +0000 (18:26 +0100)
src/lib/dhcpsrv/tests/host_mgr_unittest.cc
src/lib/dhcpsrv/tests/lease_mgr_unittest.cc

index 4cd15159ddcd131b17ceeffb3c7a7958b1f584cb..c14de8a73d7b24ea3e48d6d66bdb5d57913186ea 100644 (file)
@@ -986,6 +986,13 @@ TEST_F(HostMgrTest, getAllbyHostnameSubnet4) {
     testGetAllbyHostnameSubnet4(*getCfgHosts(), *getCfgHosts());
 }
 
+// This test verifies that HostMgr returns all reservations for the specified
+// hostname and DHCPv6 subnet. The reservations are defined in the server's
+// configuration.
+TEST_F(HostMgrTest, getAllbyHostnameSubnet6) {
+    testGetAllbyHostnameSubnet6(*getCfgHosts(), *getCfgHosts());
+}
+
 // This test verifies that HostMgr returns all reservations for the specified
 // hostname and DHCPv6 subnet. The reservations are defined in the server's
 // configuration.
index 3bb71843684e76c5c78de1a4551d9f3a2be8f37f..5dda8934177ddaf360da518a1d0793d908105f44 100644 (file)
@@ -144,7 +144,7 @@ public:
     /// @param hostname hostname in lower case.
     ///
     /// @return Lease collection (may be empty if no IPv4 lease found).
-    virtual Lease4Collection getLeases4(const std::string& hostname) const {
+    virtual Lease4Collection getLeases4(const std::string&) const {
         return (Lease4Collection());
     }
 
@@ -240,7 +240,7 @@ public:
     /// @param hostname hostname in lower case.
     ///
     /// @return Lease collection (may be empty if no IPv6 lease found).
-    virtual Lease6Collection getLeases6(const std::string& hostname) const {
+    virtual Lease6Collection getLeases6(const std::string&) const {
         return (Lease6Collection());
     }