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
ISC Open Source Projects
Kea
Commits
ab31e2fb
Commit
ab31e2fb
authored
Jun 27, 2011
by
JINMEI Tatuya
Browse files
[trac999] in the defaultQueryACL test, make sure the spec default isn't loaded.
parent
21a333f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/resolver/tests/resolver_config_unittest.cc
View file @
ab31e2fb
...
...
@@ -256,6 +256,12 @@ TEST_F(ResolverConfig, defaultQueryACL) {
EXPECT_EQ
(
REJECT
,
server
.
getQueryACL
().
execute
(
createClient
(
"192.0.2.1"
)));
EXPECT_EQ
(
REJECT
,
server
.
getQueryACL
().
execute
(
createClient
(
"2001:db8::1"
)));
// The following would be allowed if the server had loaded the default
// configuration from the spec file. In this context it should not have
// happened, and they should be rejected just like the above cases.
EXPECT_EQ
(
REJECT
,
server
.
getQueryACL
().
execute
(
createClient
(
"127.0.0.1"
)));
EXPECT_EQ
(
REJECT
,
server
.
getQueryACL
().
execute
(
createClient
(
"::1"
)));
}
TEST_F
(
ResolverConfig
,
emptyQueryACL
)
{
...
...
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