From: Mukund Sivaraman Date: Thu, 25 Oct 2012 05:16:28 +0000 (+0530) Subject: [2360] Test that RRset::toText() returns any associated RRSIG too X-Git-Tag: trac2487_base~21^2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42c8b84a3fc7c45bfb3df671b5c4a7f7a9b3d376;p=thirdparty%2Fkea.git [2360] Test that RRset::toText() returns any associated RRSIG too --- diff --git a/src/lib/dns/tests/rrset_unittest.cc b/src/lib/dns/tests/rrset_unittest.cc index 5596bcbcba..725eea799d 100644 --- a/src/lib/dns/tests/rrset_unittest.cc +++ b/src/lib/dns/tests/rrset_unittest.cc @@ -359,4 +359,12 @@ TEST_F(RRsetRRSIGTest, getRRsigDataCount) { rrset_a->removeRRsig(); EXPECT_EQ(0, rrset_a->getRRsigDataCount()); } + +TEST_F(RRsetRRSIGTest, toText) { + // toText() should also return the associated RRSIG. + EXPECT_EQ("test.example.com. 3600 IN AAAA 2001:db8::1234\n" + "test.example.com. 3600 IN RRSIG AAAA 5 3 7200 " + "20100322084538 20100220084538 1 example.com. FAKEFAKEFAKEFAKE\n", + rrset_aaaa->toText()); +} }