Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Adam Osuchowski
Kea
Commits
2ca96761
Commit
2ca96761
authored
Jan 28, 2013
by
JINMEI Tatuya
Browse files
[2310] added a test case where the original TTL is smaller than SOA minttl.
parent
b122fa56
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/datasrc/tests/memory/zone_finder_unittest.cc
View file @
2ca96761
...
...
@@ -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
(),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment