Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
d127560b
Commit
d127560b
authored
Apr 12, 2012
by
JINMEI Tatuya
Browse files
[1579] suggested addition: a missing test case for an empty wildcard name.
parent
793772f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/datasrc/tests/database_unittest.cc
View file @
d127560b
...
...
@@ -2390,6 +2390,19 @@ dnssecFlagCheck(ZoneFinder& finder, ZoneFinder::FindResultFlags sec_flag) {
expected_rdatas
,
expected_sig_rdatas
,
(
ZoneFinder
::
RESULT_WILDCARD
|
sec_flag
),
Name
(
"*.wild.example.org"
),
ZoneFinder
::
FIND_DNSSEC
);
// Empty wildcard (this NSEC doesn't have RRSIG in our test data)
expected_rdatas
.
clear
();
expected_sig_rdatas
.
clear
();
if
((
sec_flag
&
ZoneFinder
::
RESULT_NSEC_SIGNED
)
!=
0
)
{
expected_rdatas
.
push_back
(
"wild.*.foo.*.bar.example.org. NSEC"
);
}
doFindTest
(
finder
,
Name
(
"foo.wild.bar.example.org"
),
RRType
::
TXT
(),
RRType
::
NSEC
(),
RRTTL
(
3600
),
ZoneFinder
::
NXRRSET
,
expected_rdatas
,
expected_sig_rdatas
,
(
ZoneFinder
::
RESULT_WILDCARD
|
sec_flag
),
Name
(
"bao.example.org"
),
ZoneFinder
::
FIND_DNSSEC
);
dnssecFlagCheckForAny
(
finder
,
Name
(
"foo.wild.bar.example.org"
),
sec_flag
);
}
TYPED_TEST
(
DatabaseClientTest
,
dnssecResultFlags
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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