summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcpsrv/tests/client_class_def_unittest.cc
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2017-03-06 16:12:37 +0100
committerTomek Mrugalski <tomasz@isc.org>2017-03-07 13:42:58 +0100
commit406bb64b2086f5fab96a0aca1a5fb5db2c4a5205 (patch)
treed88320d2ecc0c1afcb52650badf86a19a411ed32 /src/lib/dhcpsrv/tests/client_class_def_unittest.cc
parent[fdunparse2] Snapshot for 4o6-subnet fix (diff)
downloadkea-406bb64b2086f5fab96a0aca1a5fb5db2c4a5205.tar.xz
kea-406bb64b2086f5fab96a0aca1a5fb5db2c4a5205.zip
[fdunparse2] Some fixes, did D2, began CA
Diffstat (limited to 'src/lib/dhcpsrv/tests/client_class_def_unittest.cc')
-rw-r--r--src/lib/dhcpsrv/tests/client_class_def_unittest.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/dhcpsrv/tests/client_class_def_unittest.cc b/src/lib/dhcpsrv/tests/client_class_def_unittest.cc
index e3a8a55c24..ffd716cab6 100644
--- a/src/lib/dhcpsrv/tests/client_class_def_unittest.cc
+++ b/src/lib/dhcpsrv/tests/client_class_def_unittest.cc
@@ -6,6 +6,7 @@
#include <config.h>
#include <dhcpsrv/client_class_def.h>
+#include <dhcpsrv/cfgmgr.h>
#include <dhcp/option_space.h>
#include <testutils/test_to_element.h>
#include <exceptions/exceptions.h>
@@ -357,6 +358,7 @@ TEST(ClientClassDef, fixedFieldsBasics) {
// Verifies the unparse method of option class definitions
TEST(ClientClassDef, unparseDef) {
+ CfgMgr::instance().setFamily(AF_INET);
boost::scoped_ptr<ClientClassDef> cclass;
// Get a client class definition and fill it
@@ -385,6 +387,7 @@ TEST(ClientClassDef, unparseDef) {
// Verifies the unparse method of client class dictionaries
TEST(ClientClassDictionary, unparseDict) {
+ CfgMgr::instance().setFamily(AF_INET);
ClientClassDictionaryPtr dictionary;
ExpressionPtr expr;
CfgOptionPtr options;
@@ -400,7 +403,6 @@ TEST(ClientClassDictionary, unparseDict) {
[](std::string name) {
return ("{\n"
"\"name\": \"" + name + "\",\n"
- "\"test\": \"\",\n"
"\"next-server\": \"0.0.0.0\",\n"
"\"server-hostname\": \"\",\n"
"\"boot-file-name\": \"\",\n"