|
@@ -2444,14 +2444,13 @@ TYPED_TEST(DatabaseClientTest, NXDOMAIN_NSEC) {
|
|
|
if (!this->is_mock_) {
|
|
|
return; // We don't make the real DB to throw
|
|
|
}
|
|
|
- // If the zone is signed with NSEC, find function should throw an error
|
|
|
- // when no NSEC RRset for NXDOMAIN case.
|
|
|
- EXPECT_THROW(doFindTest(*finder, Name("notimplnsec.example.org."),
|
|
|
- RRType::TXT(), RRType::NSEC(), this->rrttl_,
|
|
|
- ZoneFinder::NXDOMAIN, this->empty_rdatas_,
|
|
|
- this->empty_rdatas_, ZoneFinder::RESULT_DEFAULT,
|
|
|
- Name::ROOT_NAME(), ZoneFinder::FIND_DNSSEC),
|
|
|
- DataSourceError);
|
|
|
+ // In this case the accessor doesn't support findPreviousName(), but the
|
|
|
+ // zone apex has NSEC, and the zone itself is considered NSEC-signed.
|
|
|
+ doFindTest(*finder, Name("notimplnsec.example.org."),
|
|
|
+ RRType::TXT(), RRType::NSEC(), this->rrttl_,
|
|
|
+ ZoneFinder::NXDOMAIN, this->empty_rdatas_,
|
|
|
+ this->empty_rdatas_, ZoneFinder::RESULT_NSEC_SIGNED,
|
|
|
+ Name::ROOT_NAME(), ZoneFinder::FIND_DNSSEC);
|
|
|
}
|
|
|
|
|
|
TYPED_TEST(DatabaseClientTest, emptyNonterminalNSEC) {
|
|
@@ -2471,8 +2470,7 @@ TYPED_TEST(DatabaseClientTest, emptyNonterminalNSEC) {
|
|
|
if (!this->is_mock_) {
|
|
|
return; // We don't make the real DB to throw
|
|
|
}
|
|
|
- // In this case the accessor doesn't support findPreviousName(), but the
|
|
|
- // zone apex has NSEC, and the zone itself is considered NSEC-signed.
|
|
|
+ // See the corresponding case of NXDOMAIN_NSEC.
|
|
|
doFindTest(*finder, Name("here.wild.example.org."),
|
|
|
RRType::TXT(), RRType::NSEC(), this->rrttl_,
|
|
|
ZoneFinder::NXRRSET, this->empty_rdatas_,
|