From: Francis Dupont Date: Sun, 9 Jul 2017 08:27:09 +0000 (+0200) Subject: [5227] Updated overrideStdOptionDef test X-Git-Tag: trac5226_base~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=341220932b2ff5855c4294877e6bac69958559fa;p=thirdparty%2Fkea.git [5227] Updated overrideStdOptionDef test --- diff --git a/src/lib/dhcpsrv/tests/cfg_option_def_unittest.cc b/src/lib/dhcpsrv/tests/cfg_option_def_unittest.cc index 3abcdd2d27..818e3ee0be 100644 --- a/src/lib/dhcpsrv/tests/cfg_option_def_unittest.cc +++ b/src/lib/dhcpsrv/tests/cfg_option_def_unittest.cc @@ -211,10 +211,8 @@ TEST(CfgOptionDefTest, overrideStdOptionDef) { def.reset(new OptionDefinition("routers", DHO_ROUTERS, "uint32")); EXPECT_THROW(cfg.add(def, DHCP4_OPTION_SPACE), isc::BadValue); - /// There is no definition for the Access Network Domain Name Option - /// (RFC5986, option code 213) in libdhcp++. Once it is implemented it - /// should be not allowed to add a custom definition for it. - def.reset(new OptionDefinition("access-network-domain-name", 213, "string")); + /// There is no definition for unassigned option 170. + def.reset(new OptionDefinition("unassigned-option-170", 170, "string")); EXPECT_NO_THROW(cfg.add(def, DHCP4_OPTION_SPACE)); // It is not allowed to override the definition of the option which @@ -222,9 +220,9 @@ TEST(CfgOptionDefTest, overrideStdOptionDef) { def.reset(new OptionDefinition("sntp-servers", D6O_SNTP_SERVERS, "ipv4-address")); EXPECT_THROW(cfg.add(def, DHCP6_OPTION_SPACE), isc::BadValue); - // There is no definition for option 63 in libdhcp++ yet, so it should + // There is no definition for option 163 in libdhcp++ yet, so it should // be possible provide a custom definition. - def.reset(new OptionDefinition("geolocation", 63, "uint32")); + def.reset(new OptionDefinition("geolocation", 163, "uint32")); EXPECT_NO_THROW(cfg.add(def, DHCP6_OPTION_SPACE)); }