Commit 967fe3d9 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[trac551] Small fix of tests

parent 310d15bf
...@@ -821,9 +821,9 @@ TEST_F(MemoryZoneTest, emptyWildcard) { ...@@ -821,9 +821,9 @@ TEST_F(MemoryZoneTest, emptyWildcard) {
} }
{ {
SCOPED_TRACE("Asking outside the wildcard"); SCOPED_TRACE("Asking on the non-terminal");
findTest(Name("wild.bar.foo.example.org"), RRType::A(), findTest(Name("wild.bar.foo.example.org"), RRType::A(),
Zone::NXDOMAIN); Zone::NXRRSET);
} }
} }
...@@ -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
......
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