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
7f570522
Commit
7f570522
authored
Feb 10, 2011
by
Michal 'vorner' Vaner
Browse files
[trac551] Test searching at grandchild
parent
a463f3d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/datasrc/tests/memory_datasrc_unittest.cc
View file @
7f570522
...
...
@@ -630,15 +630,33 @@ TEST_F(MemoryZoneTest, wildcard) {
* *
*/
EXPECT_EQ
(
SUCCESS
,
zone_
.
add
(
rr_wild_
));
// Search at the parent. The parent will not have the A, but it will be here
findTest
(
Name
(
"wild.example.org"
),
RRType
::
A
(),
Zone
::
NXRRSET
);
{
SCOPED_TRACE
(
"Search at parrent"
);
findTest
(
Name
(
"wild.example.org"
),
RRType
::
A
(),
Zone
::
NXRRSET
);
}
// Search the original name of wildcard
findTest
(
Name
(
"*.wild.example.org"
),
RRType
::
A
(),
Zone
::
SUCCESS
,
true
,
rr_wild_
);
// Search „created“ name.
{
SCOPED_TRACE
(
"Search directly at *"
);
findTest
(
Name
(
"*.wild.example.org"
),
RRType
::
A
(),
Zone
::
SUCCESS
,
true
,
rr_wild_
);
}
// Search "created" name.
// TODO We need to synthetize the name correctly, there'll be different rrset
findTest
(
Name
(
"a.wild.example.org"
),
RRType
::
A
(),
Zone
::
SUCCESS
,
true
,
rr_wild_
);
{
SCOPED_TRACE
(
"Search at created child"
);
findTest
(
Name
(
"a.wild.example.org"
),
RRType
::
A
(),
Zone
::
SUCCESS
,
true
,
rr_wild_
);
}
// Search another created name, this time little bit lower
{
SCOPED_TRACE
(
"Search at created grand-child"
);
findTest
(
Name
(
"a.b.wild.example.org"
),
RRType
::
A
(),
Zone
::
SUCCESS
,
true
,
rr_wild_
);
}
}
// Note: once #507 is merged, findTest() would succeed whether or not
...
...
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