]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3281] Fixed comments in the unit tests checking subnet ids.
authorMarcin Siodelski <marcin@isc.org>
Wed, 26 Mar 2014 12:12:46 +0000 (13:12 +0100)
committerMarcin Siodelski <marcin@isc.org>
Wed, 26 Mar 2014 12:12:46 +0000 (13:12 +0100)
src/bin/dhcp4/tests/config_parser_unittest.cc
src/bin/dhcp6/tests/config_parser_unittest.cc

index 05ae616b963a335d3654c681fdd990b856555784..7d9a3e234022b8226e91411aaf0711b7203c03a0 100644 (file)
@@ -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, "
index 0476c8874822c3e14900f667fd056bdc036e0c02..e1d70b15b70bfbd47a28e6a94a03c9f32a280d30 100644 (file)
@@ -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, "