]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1899] Add another unittest to check that NSEC3 RRs are being returned
authorMukund Sivaraman <muks@isc.org>
Sun, 30 Sep 2012 19:53:58 +0000 (01:23 +0530)
committerJINMEI Tatuya <jinmei@isc.org>
Thu, 11 Oct 2012 17:04:28 +0000 (10:04 -0700)
src/lib/datasrc/tests/sqlite3_accessor_unittest.cc
src/lib/datasrc/tests/testdata/example.org.sqlite3

index e8a69a5f279549c945975546b98c6bb1d0f5b9a1..37c587414aefceb120f411c6ca7f6fc519ca7aea 100644 (file)
@@ -191,6 +191,8 @@ TEST_F(SQLite3AccessorTest, iterator) {
     checkRR(context, "sub.example.org.", "3600", "NS", "ns.sub.example.org.");
     checkRR(context, "ns.sub.example.org.", "3600", "A", "192.0.2.101");
     checkRR(context, "www.example.org.", "3600", "A", "192.0.2.1");
+    checkRR(context, "ns3.example.org.", "3600", "NSEC3",
+            "1 1 12 aabbccdd 2T7B4G4VSA5SMI47K61MV5BV1A22BOJR A RRSIG");
 
     // Check there's no other
     EXPECT_FALSE(context->getNext(data));
index c7388ff920f7aaf8724bc48e7afcb72b6ec7c8fd..939e5e4c85206d975102149f1e41c16e0812841a 100644 (file)
Binary files a/src/lib/datasrc/tests/testdata/example.org.sqlite3 and b/src/lib/datasrc/tests/testdata/example.org.sqlite3 differ