Commit 170556d8 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[1570] added a new test, dsAboveDelegationNoData, to check "no data" at parent

parent 42b7d6a5
......@@ -1729,6 +1729,30 @@ TEST_F(QueryTest, dsAboveDelegation) {
TEST_F(QueryTest, dsAboveDelegationNoData) {
// Similar to the previous case, but the query is for an unsigned zone
// (which doesn't have a DS at the parent). The response should be a
// "no data" error. The query should still be handled at the parent.
new AlternateZoneFinder(
// The following will succeed only if the search goes to the parent
// zone, not the child one we added above.
RRType::DS(), response, true).process());
responseCheck(response, Rcode::NOERROR(), AA_FLAG, 0, 4, 0, NULL,
(string(soa_txt) +
string(" 3600 IN RRSIG ") +
getCommonRRSIGText("SOA") + "\n" +
string(unsigned_delegation_nsec_txt) +
" 3600 IN RRSIG " +
NULL, mock_finder->getOrigin());
// This one checks that type-DS query results in a "no data" response
// when it happens to be sent to the child zone, as described in RFC 4035,
// section The example is inspired by the B.8. example from the RFC.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment