Parcourir la source

[2431] Check exception message in tests

Mukund Sivaraman il y a 12 ans
Parent
commit
7400eee5cb
1 fichiers modifiés avec 12 ajouts et 8 suppressions
  1. 12 8
      src/lib/dns/tests/master_loader_unittest.cc

+ 12 - 8
src/lib/dns/tests/master_loader_unittest.cc

@@ -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" },