Browse Source

[1899] Add another unittest to check that NSEC3 RRs are being returned

Mukund Sivaraman 12 years ago
parent
commit
13089ae122

+ 2 - 0
src/lib/datasrc/tests/sqlite3_accessor_unittest.cc

@@ -191,6 +191,8 @@ TEST_F(SQLite3AccessorTest, iterator) {
     checkRR(context, "sub.example.org.", "3600", "NS", "ns.sub.example.org.");
     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, "ns.sub.example.org.", "3600", "A", "192.0.2.101");
     checkRR(context, "www.example.org.", "3600", "A", "192.0.2.1");
     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
     // Check there's no other
     EXPECT_FALSE(context->getNext(data));
     EXPECT_FALSE(context->getNext(data));

BIN
src/lib/datasrc/tests/testdata/example.org.sqlite3