Skip to content

Commit

Permalink
[#3268] Post rebase updates 2
Browse files Browse the repository at this point in the history
  • Loading branch information
fxdupont committed Nov 6, 2024
1 parent bb7625b commit 3747220
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/bin/dhcp4/tests/config_parser_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5621,23 +5621,13 @@ 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());

// 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());
Expand Down

0 comments on commit 3747220

Please sign in to comment.