Skip to content
GitLab
Menu
Projects
Groups
Snippets
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
967fe3d9
Commit
967fe3d9
authored
Feb 17, 2011
by
Michal 'vorner' Vaner
Browse files
[trac551] Small fix of tests
parent
310d15bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/datasrc/tests/memory_datasrc_unittest.cc
View file @
967fe3d9
...
@@ -821,9 +821,9 @@ TEST_F(MemoryZoneTest, emptyWildcard) {
...
@@ -821,9 +821,9 @@ TEST_F(MemoryZoneTest, emptyWildcard) {
}
}
{
{
SCOPED_TRACE
(
"Asking o
utside the wildcard
"
);
SCOPED_TRACE
(
"Asking o
n the non-terminal
"
);
findTest
(
Name
(
"wild.bar.foo.example.org"
),
RRType
::
A
(),
findTest
(
Name
(
"wild.bar.foo.example.org"
),
RRType
::
A
(),
Zone
::
NX
DOMAIN
);
Zone
::
NX
RRSET
);
}
}
}
}
...
@@ -838,21 +838,19 @@ TEST_F(MemoryZoneTest, nestedEmptyWildcard) {
...
@@ -838,21 +838,19 @@ TEST_F(MemoryZoneTest, nestedEmptyWildcard) {
}
}
{
{
SCOPED_TRACE
(
"Matching against lower wildcard"
);
SCOPED_TRACE
(
"Matching wildcard against empty nonterminal"
);
findTest
(
Name
(
"baz.foo.*.bar.example.org"
),
RRType
::
A
(),
Zone
::
NXRRSET
);
}
{
const
char
*
names
[]
=
{
SCOPED_TRACE
(
"Trying to match over both wildcards at once"
);
"baz.foo.*.bar.example.org"
,
findTest
(
Name
(
"baz.foo.baz.bar.example.org"
),
RRType
::
A
(),
"baz.foo.baz.bar.example.org"
,
Zone
::
NXDOMAIN
);
"*.foo.baz.bar.example.org"
,
}
NULL
};
{
for
(
const
char
**
name
(
names
);
*
name
!=
NULL
;
++
name
)
{
SCOPED_TRACE
(
"Trying to match over upper wildcard"
);
SCOPED_TRACE
(
string
(
"Node "
)
+
*
name
);
findTest
(
Name
(
"*.foo.baz.bar.example.org"
),
RRType
::
A
(),
findTest
(
Name
(
*
name
),
RRType
::
A
(),
Zone
::
NXRRSET
);
Zone
::
NXDOMAIN
);
}
}
}
// Domains to test
// Domains to test
...
...
Write
Preview
Supports
Markdown
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