]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[4501] Fixed outsideSubnetPool tests where error location was moved
authorFrancis Dupont <fdupont@isc.org>
Tue, 18 Apr 2017 05:21:47 +0000 (07:21 +0200)
committerFrancis Dupont <fdupont@isc.org>
Tue, 18 Apr 2017 05:21:47 +0000 (07:21 +0200)
src/bin/dhcp4/tests/config_parser_unittest.cc
src/bin/dhcp6/tests/config_parser_unittest.cc

index ba780be6db978bb8df7d6e959cc9a978234355d3..675685f4327fde9fec5e065d6550697acba3927f 100644 (file)
@@ -4746,10 +4746,10 @@ TEST_F(Dhcp4ParserTest, outsideSubnetPool) {
     ASSERT_NO_THROW(text = comment->stringValue());
 
     EXPECT_EQ(1, rcode);
-    string expected = "subnet configuration failed: "
+    string expected = "subnet configuration failed (<string>:5:14): "
        "a pool of type V4, with the following address range: "
        "192.0.2.1-192.0.2.100 does not match the prefix of a subnet: "
-       "10.0.2.0/24 to which it is being added (<string>:5:14)";
+       "10.0.2.0/24 to which it is being added";
     EXPECT_EQ(expected, text);
 }
 
index c066e8a93b23ed4438a37d18a7fe192f75f58535..0a80a735240592a4a75233a33604896f387d0584 100644 (file)
@@ -5219,10 +5219,10 @@ TEST_F(Dhcp6ParserTest, outsideSubnetPool) {
     ASSERT_NO_THROW(text = comment->stringValue());
 
     EXPECT_EQ(1, rcode);
-    string expected = "subnet configuration failed: "
+    string expected = "subnet configuration failed (<string>:6:14): "
         "a pool of type IA_NA, with the following address range: "
         "2001:db8::-2001:db8::ffff does not match the prefix of a subnet: "
-        "2001:dc8::/32 to which it is being added (<string>:6:14)";
+        "2001:dc8::/32 to which it is being added";
     EXPECT_EQ(expected, text);
 }