Commit c6c8a84b authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[1571] added a couple of new tests to confirm additional cases regarding DS.

(they should have succeeded in the original version of implementation)
parent 6570e46b
......@@ -666,8 +666,17 @@ TEST_F(InMemoryZoneFinderTest, delegationWithDS) {
EXPECT_EQ(SUCCESS, zone_finder_.add(rr_child_ns_));
EXPECT_EQ(SUCCESS, zone_finder_.add(rr_child_ds_));
// Normal types of query should result in delegation, but DS query
// should be considered in-zone.
findTest(Name(""), RRType::A(), ZoneFinder::DELEGATION,
true, rr_child_ns_);
findTest(Name(""), RRType::DS(), ZoneFinder::SUCCESS,
true, rr_child_ds_);
// There's nothing special for DS query at the zone apex. It would
// normally result in NXRRSET.
findTest(Name(""), RRType::DS(), ZoneFinder::NXRRSET,
true, ConstRRsetPtr());
TEST_F(InMemoryZoneFinderTest, findAny) {
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