#include <dhcp6/tests/dhcp6_test_utils.h>
#include <dhcp6/tests/dhcp6_client.h>
+#include <dhcp/tests/iface_mgr_test_config.h>
#include <dhcp/tests/pkt_captures.h>
#include <cc/command_interpreter.h>
#include <boost/scoped_ptr.hpp>
// 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(
// 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));
// 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));