Parcourir la source

[2165] Add the attached RRSIG when dumping RRsets

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.
Mukund Sivaraman il y a 12 ans
Parent
commit
d057be8fd1
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5 0
      src/lib/testutils/dnsmessage_test.h

+ 5 - 0
src/lib/testutils/dnsmessage_test.h

@@ -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();
         }
     }