BIND 10 trac2165_2, updated. 4ecd5fbc083dfb1a7fed1f1f4e182a8dc2a59f7a [2165] Don't add another copy of RRSIGs to the actual rrsets
BIND 10 source code commits
bind10-changes at lists.isc.org
Mon Aug 20 20:18:41 UTC 2012
The branch, trac2165_2 has been updated
via 4ecd5fbc083dfb1a7fed1f1f4e182a8dc2a59f7a (commit)
from cdfbc3523e1b6c290ed56fea530276e1119f0d4d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 4ecd5fbc083dfb1a7fed1f1f4e182a8dc2a59f7a
Author: Mukund Sivaraman <muks at isc.org>
Date: Tue Aug 21 01:47:13 2012 +0530
[2165] Don't add another copy of RRSIGs to the actual rrsets
-----------------------------------------------------------------------
Summary of changes:
src/lib/datasrc/tests/faked_nsec3.cc | 9 +--------
src/lib/datasrc/tests/faked_nsec3.h | 3 +--
src/lib/datasrc/tests/memory_datasrc_unittest.cc | 2 +-
3 files changed, 3 insertions(+), 11 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/tests/faked_nsec3.cc b/src/lib/datasrc/tests/faked_nsec3.cc
index 1e37b8e..d0df394 100644
--- a/src/lib/datasrc/tests/faked_nsec3.cc
+++ b/src/lib/datasrc/tests/faked_nsec3.cc
@@ -93,8 +93,7 @@ void
findNSEC3Check(bool expected_matched, uint8_t expected_labels,
const string& expected_closest,
const string& expected_next,
- const ZoneFinder::FindNSEC3Result& result,
- bool expected_sig)
+ const ZoneFinder::FindNSEC3Result& result)
{
EXPECT_EQ(expected_matched, result.matched);
// Convert to int so the error messages would be more readable:
@@ -104,9 +103,6 @@ findNSEC3Check(bool expected_matched, uint8_t expected_labels,
vector<ConstRRsetPtr> actual_rrsets;
ASSERT_TRUE(result.closest_proof);
actual_rrsets.push_back(result.closest_proof);
- if (expected_sig) {
- actual_rrsets.push_back(result.closest_proof->getRRsig());
- }
rrsetsCheck(expected_closest, actual_rrsets.begin(),
actual_rrsets.end());
@@ -116,9 +112,6 @@ findNSEC3Check(bool expected_matched, uint8_t expected_labels,
} else {
ASSERT_TRUE(result.next_proof);
actual_rrsets.push_back(result.next_proof);
- if (expected_sig) {
- actual_rrsets.push_back(result.next_proof->getRRsig());
- }
rrsetsCheck(expected_next, actual_rrsets.begin(),
actual_rrsets.end());
}
diff --git a/src/lib/datasrc/tests/faked_nsec3.h b/src/lib/datasrc/tests/faked_nsec3.h
index 10d9444..d544909 100644
--- a/src/lib/datasrc/tests/faked_nsec3.h
+++ b/src/lib/datasrc/tests/faked_nsec3.h
@@ -69,8 +69,7 @@ void
findNSEC3Check(bool expected_matched, uint8_t expected_labels,
const std::string& expected_closest,
const std::string& expected_next,
- const isc::datasrc::ZoneFinder::FindNSEC3Result& result,
- bool expected_sig = false);
+ const isc::datasrc::ZoneFinder::FindNSEC3Result& result);
// Perform the shared part of NSEC3 test (shared between in-memory and database
// tests).
diff --git a/src/lib/datasrc/tests/memory_datasrc_unittest.cc b/src/lib/datasrc/tests/memory_datasrc_unittest.cc
index 64bd70e..5abe270 100644
--- a/src/lib/datasrc/tests/memory_datasrc_unittest.cc
+++ b/src/lib/datasrc/tests/memory_datasrc_unittest.cc
@@ -2067,7 +2067,7 @@ TEST_F(InMemoryZoneFinderTest, addNSEC3WithRRSIG) {
// Then look for it. The NSEC3 should have the RRSIG that was just added.
findNSEC3Check(true, origin_.getLabelCount(),
nsec3_text + "\n" + nsec3_rrsig_text, "",
- zone_finder_.findNSEC3(Name("example.org"), false), true);
+ zone_finder_.findNSEC3(Name("example.org"), false));
// Duplicate add of RRSIG for the same NSEC3 is prohibited.
EXPECT_THROW(zone_finder_.add(textToRRset(nsec3_rrsig_text)),
More information about the bind10-changes
mailing list