]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2165] Add the attached RRSIG when dumping RRsets
authorMukund Sivaraman <muks@isc.org>
Wed, 15 Aug 2012 19:44:36 +0000 (01:14 +0530)
committerMukund Sivaraman <muks@isc.org>
Wed, 15 Aug 2012 19:44:36 +0000 (01:14 +0530)
This realistically belongs in RRset::toText(), but I think current
code expects RRset::toText() to just return text for that RRset and
not any attached RRSIGs.

src/lib/testutils/dnsmessage_test.h

index 21a3f9ab525158c1a80c49897f67ed7559facea9..fbcb185b8812d7a748826b925288c77af7c83677 100644 (file)
@@ -168,6 +168,10 @@ public:
     {}
     void operator()(isc::dns::ConstRRsetPtr rrset) {
         output_ += "  " + rrset->toText();
+
+        if (rrset->getRRsig()) {
+            output_ += "  " + rrset->getRRsig()->toText();
+        }
     }
 private:
     std::string& output_;
@@ -256,6 +260,7 @@ rrsetsCheck(EXPECTED_ITERATOR expected_begin, EXPECTED_ITERATOR expected_end,
         if (found_rrset_it != expected_end) {
             rrsetCheck(*found_rrset_it, *it);
             ++rrset_matched;
+            rrset_matched += (*it)->getRRsigDataCount();
         }
     }