Commit 2ca96761 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[2310] added a test case where the original TTL is smaller than SOA minttl.

parent b122fa56
......@@ -739,6 +739,14 @@ TEST_F(InMemoryZoneFinderTest, findAtOriginWithMinTTL) {
ZoneFinder::RESULT_DEFAULT, NULL,
ZoneFinder::FIND_DEFAULT, false);
// If the found RRset has a smaller TTL than SOA, the original TTL should
// win.
rr_a_->setTTL(RRTTL(10));
addToZoneData(rr_a_);
findAtOriginTest(RRType::A(), ZoneFinder::SUCCESS, true, rr_a_,
ZoneFinder::RESULT_DEFAULT, NULL,
ZoneFinder::FIND_DEFAULT, true);
// If no RRset is returned, use_minttl doesn't matter (it shouldn't cause
// disruption)
findAtOriginTest(RRType::TXT(), ZoneFinder::NXRRSET, true, ConstRRsetPtr(),
......
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