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
Sebastian Schrader
Kea
Commits
65790420
Commit
65790420
authored
Jan 20, 2012
by
Jelte Jansen
Browse files
[1553] test basic ACL for resolver as well
parent
cf8e3900
Changes
4
Hide whitespace changes
Inline
Side-by-side
tests/lettuce/configurations/resolver/resolver_basic.config
deleted
100644 → 0
View file @
cf8e3900
{
"version"
:
2
,
"Resolver"
: {
"listen_on"
: [{
"port"
:
47806
,
"address"
:
"127.0.0.1"
}]},
"Boss"
: {
"components"
: {
"b10-resolver"
: {
"kind"
:
"needed"
},
"b10-cmdctl"
: {
"kind"
:
"needed"
,
"special"
:
"cmdctl"
}}}}
tests/lettuce/configurations/resolver/resolver_basic.config.orig
0 → 100644
View file @
65790420
{"version": 2, "Resolver": {"query_acl": [{"action": "REJECT", "from": "127.0.0.1"}], "listen_on": [{"port": 47806, "address": "127.0.0.1"}]}, "Boss": {"components": {"b10-resolver": {"kind": "needed"}, "b10-cmdctl": {"kind": "needed", "special": "cmdctl"}}}}
tests/lettuce/features/resolver_basic.feature
View file @
65790420
...
...
@@ -12,5 +12,15 @@ Feature: Basic Resolver
# for any resolver system test)
When
I start bind10 with configuration resolver/resolver_basic.config
And
wait for new bind10 stderr message RESOLVER_STARTED
# This answer is currently hardcoded (as part of the fake priming)
# The ACL is set to reject any queries
A
query for l.root-servers.net. should have rcode REFUSED
# Test whether acl ACCEPT works
When
I set bind10 configuration Resolver/query_acl[0]/action to ACCEPT
# This address is currently hardcoded, so shouldn't cause outside traffic
A
query for l.root-servers.net. should have rcode NOERROR
# Check whether setting the ACL to reject again works
When
I set bind10 configuration Resolver/query_acl[0]/action to REJECT
A
query for l.root-servers.net. should have rcode REFUSED
tests/lettuce/features/terrain/terrain.py
View file @
65790420
...
...
@@ -42,7 +42,10 @@ import time
# The first element is the original, the second is the target that will be
# used by the tests that need them
copylist
=
[
[
"configurations/example.org.config.orig"
,
"configurations/example.org.config"
]
[
"configurations/example.org.config.orig"
,
"configurations/example.org.config"
],
[
"configurations/resolver/resolver_basic.config.orig"
,
"configurations/resolver/resolver_basic.config"
]
]
# This is a list of files that, if present, will be removed before a scenario
...
...
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