From: Marcin Siodelski Date: Wed, 26 Mar 2014 12:12:46 +0000 (+0100) Subject: [3281] Fixed comments in the unit tests checking subnet ids. X-Git-Tag: bind10-1.2.0rc1-release~25^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ac941ce473d0d9cb922eec8f6352e1d80a02bd4a;p=thirdparty%2Fkea.git [3281] Fixed comments in the unit tests checking subnet ids. --- diff --git a/src/bin/dhcp4/tests/config_parser_unittest.cc b/src/bin/dhcp4/tests/config_parser_unittest.cc index 05ae616b96..7d9a3e2340 100644 --- a/src/bin/dhcp4/tests/config_parser_unittest.cc +++ b/src/bin/dhcp4/tests/config_parser_unittest.cc @@ -611,8 +611,7 @@ TEST_F(Dhcp4ParserTest, multipleSubnets) { // This test checks that it is possible to assign arbitrary ids for subnets. TEST_F(Dhcp4ParserTest, multipleSubnetsExplicitIDs) { ConstElementPtr x; - // Collection of four subnets for which subnet ids should be - // autogenerated - ids are unspecified or set to 0. + // Four subnets with arbitrary subnet ids. string config = "{ \"interfaces\": [ \"*\" ]," "\"rebind-timer\": 2000, " "\"renew-timer\": 1000, " @@ -673,8 +672,7 @@ TEST_F(Dhcp4ParserTest, multipleSubnetsExplicitIDs) { // Check that the configuration with two subnets having the same id is rejected. TEST_F(Dhcp4ParserTest, multipleSubnetsOverlapingIDs) { ConstElementPtr x; - // Collection of four subnets for which subnet ids should be - // autogenerated - ids are unspecified or set to 0. + // Four subnets, two of them having the same id. string config = "{ \"interfaces\": [ \"*\" ]," "\"rebind-timer\": 2000, " "\"renew-timer\": 1000, " diff --git a/src/bin/dhcp6/tests/config_parser_unittest.cc b/src/bin/dhcp6/tests/config_parser_unittest.cc index 0476c88748..e1d70b15b7 100644 --- a/src/bin/dhcp6/tests/config_parser_unittest.cc +++ b/src/bin/dhcp6/tests/config_parser_unittest.cc @@ -626,8 +626,7 @@ TEST_F(Dhcp6ParserTest, multipleSubnets) { // This checks that it is possible to assign arbitrary ids for subnets. TEST_F(Dhcp6ParserTest, multipleSubnetsExplicitIDs) { ConstElementPtr x; - // Collection of four subnets for which ids should be autogenerated - // - ids are unspecified or set to 0. + // Four subnets with arbitrary subnet ids. string config = "{ \"interfaces\": [ \"*\" ]," "\"preferred-lifetime\": 3000," "\"rebind-timer\": 2000, "