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:
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());
} 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());
}
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).
// 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)),