]> granicus.if.org Git - pdns/commitdiff
More tests (non-local SOA test broken)
authorAki Tuomi <cmouse@desteem.org>
Sun, 12 May 2013 07:55:54 +0000 (10:55 +0300)
committerAki Tuomi <cmouse@desteem.org>
Mon, 13 May 2013 19:05:05 +0000 (22:05 +0300)
pdns/test-dnsrecords_cc.cc

index eff1165e1a3db062f3ce6621d6fee5948ef0d70d..09fcc25995f95fa71bac3b7ad354bba7213683b8 100644 (file)
@@ -28,7 +28,11 @@ BOOST_AUTO_TEST_CASE(test_record_types) {
      (case_t(QType::CNAME, "name.rec.test.", LF("\x04name\xc0\x11")))
 // non-local alias
      (case_t(QType::CNAME, "name.example.com.", LF("\x04name\x07""example\x03""com\x00")))
-//     (case_t(QType::SOA, "zone format", LF("line format")))
+// local names
+     (case_t(QType::SOA, "ns.rec.test. hostmaster.test.rec. 2013051201 3600 3600 604800 120", LF("\x02ns\xc0\x11\x0ahostmaster\x04test\x03rec\x00\x77\xfc\xb9\x41\x00\x00\x0e\x10\x00\x00\x0e\x10\x00\x09\x3a\x80\x00\x00\x00\x78")))
+// non-local names
+     (case_t(QType::SOA, "ns.example.com. hostmaster.example.com. 2013051201 3600 3600 604800 120", LF("\x02ns\x07""example\x03""com\x00\x0ahostmaster\x07""example\x03""com\x00\x77\xfc\xb9\x41\x00\x00\x0e\x10\x00\x00\x0e\x10\x00\x09\x3a\x80\x00\x00\x00\x78")))
+
 //     (case_t(QType::MR, "zone format", LF("line format")))
 //     (case_t(QType::PTR, "zone format", LF("line format")))
 //     (case_t(QType::HINFO, "zone format", LF("line format")))