From: Francis Dupont Date: Fri, 9 Oct 2015 22:16:23 +0000 (+0200) Subject: [3987] Fixed missing interface config X-Git-Tag: trac3874_base~13^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6849afebb29c774c95c430461659734f602e85d;p=thirdparty%2Fkea.git [3987] Fixed missing interface config --- diff --git a/src/bin/dhcp6/tests/hooks_unittest.cc b/src/bin/dhcp6/tests/hooks_unittest.cc index 6bc491eaf5..92f595e61e 100644 --- a/src/bin/dhcp6/tests/hooks_unittest.cc +++ b/src/bin/dhcp6/tests/hooks_unittest.cc @@ -29,6 +29,7 @@ #include #include +#include #include #include #include @@ -1493,6 +1494,7 @@ TEST_F(HooksDhcpv6SrvTest, skip_lease6_release) { // This test checks that the basic decline hook (lease6_decline) is // triggered properly. TEST_F(HooksDhcpv6SrvTest, declineBasic) { + IfaceMgrTestConfig test_config(true); // Install lease6_decline callout EXPECT_NO_THROW(HooksManager::preCalloutsLibraryHandle().registerCallout( @@ -1536,6 +1538,8 @@ TEST_F(HooksDhcpv6SrvTest, declineBasic) { // Test that the lease6_decline hook point can handle SKIP status. TEST_F(HooksDhcpv6SrvTest, declineSkip) { + IfaceMgrTestConfig test_config(true); + // Install lease6_decline callout. It will set the status to skip EXPECT_NO_THROW(HooksManager::preCalloutsLibraryHandle().registerCallout( "lease6_decline", lease6_decline_skip_callout)); @@ -1578,6 +1582,8 @@ TEST_F(HooksDhcpv6SrvTest, declineSkip) { // Test that the lease6_decline hook point can handle DROP status. TEST_F(HooksDhcpv6SrvTest, declineDrop) { + IfaceMgrTestConfig test_config(true); + // Install lease6_decline callout. It will set the status to skip EXPECT_NO_THROW(HooksManager::preCalloutsLibraryHandle().registerCallout( "lease6_decline", lease6_decline_drop_callout));