]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3268] Post rebase updates 2
authorFrancis Dupont <fdupont@isc.org>
Wed, 6 Nov 2024 14:05:32 +0000 (15:05 +0100)
committerFrancis Dupont <fdupont@isc.org>
Wed, 6 Nov 2024 14:05:32 +0000 (15:05 +0100)
src/bin/dhcp4/tests/config_parser_unittest.cc

index f7f8563556daf62e02db8cb71b62d284e3cf0313..e2f90d74257f36d00962b3054f7a485592a4ec41 100644 (file)
@@ -5621,11 +5621,6 @@ TEST_F(Dhcp4ParserTest, hostReservationGlobal) {
     ConstSubnet4Ptr subnet;
     subnet = subnets->selectSubnet(IOAddress("192.0.2.1"));
     ASSERT_TRUE(subnet);
-    // Reset the fetch global function to staging (vs current) config.
-    Subnet4Ptr mutable_subnet = boost::const_pointer_cast<Subnet4>(subnet);
-    mutable_subnet->setFetchGlobalsFn([]() -> ConstCfgGlobalsPtr {
-        return (CfgMgr::instance().getStagingCfg()->getConfiguredGlobals());
-    });
     EXPECT_FALSE(subnet->getReservationsGlobal());
     EXPECT_TRUE(subnet->getReservationsInSubnet());
     EXPECT_FALSE(subnet->getReservationsOutOfPool());
@@ -5633,11 +5628,6 @@ TEST_F(Dhcp4ParserTest, hostReservationGlobal) {
     // Subnet 2
     subnet = subnets->selectSubnet(IOAddress("192.0.3.1"));
     ASSERT_TRUE(subnet);
-    // Reset the fetch global function to staging (vs current) config.
-    mutable_subnet = boost::const_pointer_cast<Subnet4>(subnet);
-    mutable_subnet->setFetchGlobalsFn([]() -> ConstCfgGlobalsPtr {
-        return (CfgMgr::instance().getStagingCfg()->getConfiguredGlobals());
-    });
     EXPECT_FALSE(subnet->getReservationsGlobal());
     EXPECT_TRUE(subnet->getReservationsInSubnet());
     EXPECT_TRUE(subnet->getReservationsOutOfPool());