From: JINMEI Tatuya Date: Wed, 19 Sep 2012 00:28:57 +0000 (-0700) Subject: [2267] enabled the commented RRSIG test data, with which it now passes. X-Git-Tag: trac2351_base~51^2~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a65bda660f985ff422b1528b1f7654ac254c6a79;p=thirdparty%2Fkea.git [2267] enabled the commented RRSIG test data, with which it now passes. --- diff --git a/src/lib/datasrc/memory/tests/memory_client_unittest.cc b/src/lib/datasrc/memory/tests/memory_client_unittest.cc index 733810fb78..804008d978 100644 --- a/src/lib/datasrc/memory/tests/memory_client_unittest.cc +++ b/src/lib/datasrc/memory/tests/memory_client_unittest.cc @@ -53,9 +53,8 @@ const char* rrset_data[] = { "68 3600 300 3600000 3600", "a.example.org. 3600 IN A 192.168.0.1\n" // RRset containing 2 RRs "a.example.org. 3600 IN A 192.168.0.2", -// This will trigger a bug in the implementation -// "a.example.org. 3600 IN RRSIG A 5 3 3600 20150420235959 20051021000000 " -// "40430 example.org. FAKEFAKE", + "a.example.org. 3600 IN RRSIG A 5 3 3600 20150420235959 20051021000000 " + "40430 example.org. FAKEFAKE", "a.example.org. 3600 IN MX 10 mail.example.org.", "a.example.org. 3600 IN RRSIG MX 5 3 3600 20150420235959 20051021000000 " "40430 example.org. FAKEFAKEFAKE", @@ -206,7 +205,7 @@ TEST_F(MemoryClientTest, loadFromIterator) { rrset = iterator->getNextRRset(); EXPECT_TRUE(rrset); EXPECT_EQ(RRType::A(), rrset->getType()); - EXPECT_EQ(0, rrset->getRRsigDataCount()); // this is unsigned (for now) + EXPECT_EQ(1, rrset->getRRsigDataCount()); // also signed // There's nothing else in this iterator EXPECT_EQ(ConstRRsetPtr(), iterator->getNextRRset());