]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2431] Check exception message in tests
authorMukund Sivaraman <muks@isc.org>
Mon, 17 Dec 2012 05:28:39 +0000 (10:58 +0530)
committerMukund Sivaraman <muks@isc.org>
Mon, 17 Dec 2012 05:28:39 +0000 (10:58 +0530)
src/lib/dns/tests/master_loader_unittest.cc

index a449a97184f616c65efce8bcb0aeb7da8423ef32..544dae53bf82e58cfd18475d7a9658efa2282821 100644 (file)
@@ -280,14 +280,18 @@ struct ErrorCase {
     { "www      FORTNIGHT   IN  A   192.0.2.1", NULL, "Invalid TTL" },
     { "www      3600    XX  A   192.0.2.1", NULL, "Invalid class" },
     { "www      3600    IN  A   bad_ip", NULL, "Invalid Rdata" },
-    { "www      IN      A   3600 192.168.2.7", NULL,
-      "Invalid Rdata (incorrect order of class, TTL and type)" },
-    { "www      A       IN  3600 192.168.2.8", NULL,
-      "Invalid Rdata (incorrect order of class, TTL and type)" },
-    { "www      3600    A   IN   192.168.2.7", NULL,
-      "Invalid Rdata (incorrect order of class, TTL and type)" },
-    { "www      A       3600 IN  192.168.2.8", NULL,
-      "Invalid Rdata (incorrect order of class, TTL and type)" },
+    { "www      IN      A   3600 192.168.2.7",
+      "createRdata from text failed: IN/A RDATA construction from text failed",
+      "Incorrect order of class, TTL and type" },
+    { "www      A       IN  3600 192.168.2.8",
+      "createRdata from text failed: IN/A RDATA construction from text failed",
+      "Incorrect order of class, TTL and type" },
+    { "www      3600    A   IN   192.168.2.7",
+      "createRdata from text failed: IN/A RDATA construction from text failed",
+      "Incorrect order of class, TTL and type" },
+    { "www      A       3600 IN  192.168.2.8",
+      "createRdata from text failed: IN/A RDATA construction from text failed",
+      "Incorrect order of class, TTL and type" },
     { "www      3600    IN", NULL, "Unexpected EOLN" },
     { "www      3600    CH  TXT nothing", NULL, "Class mismatch" },
     { "www      \"3600\"  IN  A   192.0.2.1", NULL, "Quoted TTL" },