Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
BIND
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
583
Issues
583
List
Boards
Labels
Service Desk
Milestones
Merge Requests
110
Merge Requests
110
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ISC Open Source Projects
BIND
Commits
341603a7
Commit
341603a7
authored
Mar 07, 2018
by
Evan Hunt
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'allow-query' into 'master'
speed up allow_query test Closes
#81
See merge request
!76
parents
98255e40
a9b6bed6
Pipeline
#565
passed with stages
in 11 minutes and 19 seconds
Changes
52
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
52 changed files
with
71 additions
and
411 deletions
+71
-411
CHANGES
CHANGES
+4
-0
bin/tests/system/Makefile.in
bin/tests/system/Makefile.in
+5
-6
bin/tests/system/allow-query/.gitignore
bin/tests/system/allow-query/.gitignore
+0
-0
bin/tests/system/allow-query/clean.sh
bin/tests/system/allow-query/clean.sh
+1
-1
bin/tests/system/allow-query/ns2/generic.db
bin/tests/system/allow-query/ns2/generic.db
+1
-3
bin/tests/system/allow-query/ns2/named01.conf.in
bin/tests/system/allow-query/ns2/named01.conf.in
+1
-1
bin/tests/system/allow-query/ns2/named02.conf.in
bin/tests/system/allow-query/ns2/named02.conf.in
+1
-1
bin/tests/system/allow-query/ns2/named03.conf.in
bin/tests/system/allow-query/ns2/named03.conf.in
+1
-1
bin/tests/system/allow-query/ns2/named04.conf.in
bin/tests/system/allow-query/ns2/named04.conf.in
+1
-1
bin/tests/system/allow-query/ns2/named05.conf.in
bin/tests/system/allow-query/ns2/named05.conf.in
+1
-1
bin/tests/system/allow-query/ns2/named06.conf.in
bin/tests/system/allow-query/ns2/named06.conf.in
+1
-1
bin/tests/system/allow-query/ns2/named07.conf.in
bin/tests/system/allow-query/ns2/named07.conf.in
+1
-1
bin/tests/system/allow-query/ns2/named08.conf.in
bin/tests/system/allow-query/ns2/named08.conf.in
+1
-1
bin/tests/system/allow-query/ns2/named09.conf.in
bin/tests/system/allow-query/ns2/named09.conf.in
+1
-1
bin/tests/system/allow-query/ns2/named10.conf.in
bin/tests/system/allow-query/ns2/named10.conf.in
+1
-1
bin/tests/system/allow-query/ns2/named11.conf.in
bin/tests/system/allow-query/ns2/named11.conf.in
+1
-1
bin/tests/system/allow-query/ns2/named12.conf.in
bin/tests/system/allow-query/ns2/named12.conf.in
+1
-1
bin/tests/system/allow-query/ns2/named21.conf.in
bin/tests/system/allow-query/ns2/named21.conf.in
+1
-1
bin/tests/system/allow-query/ns2/named22.conf.in
bin/tests/system/allow-query/ns2/named22.conf.in
+1
-1
bin/tests/system/allow-query/ns2/named23.conf.in
bin/tests/system/allow-query/ns2/named23.conf.in
+1
-2
bin/tests/system/allow-query/ns2/named24.conf.in
bin/tests/system/allow-query/ns2/named24.conf.in
+1
-1
bin/tests/system/allow-query/ns2/named25.conf.in
bin/tests/system/allow-query/ns2/named25.conf.in
+1
-1
bin/tests/system/allow-query/ns2/named26.conf.in
bin/tests/system/allow-query/ns2/named26.conf.in
+1
-1
bin/tests/system/allow-query/ns2/named27.conf.in
bin/tests/system/allow-query/ns2/named27.conf.in
+1
-1
bin/tests/system/allow-query/ns2/named28.conf.in
bin/tests/system/allow-query/ns2/named28.conf.in
+1
-1
bin/tests/system/allow-query/ns2/named29.conf.in
bin/tests/system/allow-query/ns2/named29.conf.in
+1
-1
bin/tests/system/allow-query/ns2/named30.conf.in
bin/tests/system/allow-query/ns2/named30.conf.in
+1
-1
bin/tests/system/allow-query/ns2/named31.conf.in
bin/tests/system/allow-query/ns2/named31.conf.in
+1
-1
bin/tests/system/allow-query/ns2/named32.conf.in
bin/tests/system/allow-query/ns2/named32.conf.in
+1
-1
bin/tests/system/allow-query/ns2/named33.conf.in
bin/tests/system/allow-query/ns2/named33.conf.in
+1
-1
bin/tests/system/allow-query/ns2/named34.conf.in
bin/tests/system/allow-query/ns2/named34.conf.in
+1
-1
bin/tests/system/allow-query/ns2/named40.conf.in
bin/tests/system/allow-query/ns2/named40.conf.in
+11
-13
bin/tests/system/allow-query/ns2/named53.conf.in
bin/tests/system/allow-query/ns2/named53.conf.in
+1
-1
bin/tests/system/allow-query/ns2/named54.conf.in
bin/tests/system/allow-query/ns2/named54.conf.in
+1
-1
bin/tests/system/allow-query/ns2/named55.conf.in
bin/tests/system/allow-query/ns2/named55.conf.in
+1
-1
bin/tests/system/allow-query/ns2/named56.conf.in
bin/tests/system/allow-query/ns2/named56.conf.in
+1
-1
bin/tests/system/allow-query/ns2/named57.conf.in
bin/tests/system/allow-query/ns2/named57.conf.in
+2
-2
bin/tests/system/allow-query/setup.sh
bin/tests/system/allow-query/setup.sh
+0
-0
bin/tests/system/allow-query/tests.sh
bin/tests/system/allow-query/tests.sh
+16
-41
bin/tests/system/allow_query/ns2/acldisallow.db
bin/tests/system/allow_query/ns2/acldisallow.db
+0
-26
bin/tests/system/allow_query/ns2/aclnotallow.db
bin/tests/system/allow_query/ns2/aclnotallow.db
+0
-26
bin/tests/system/allow_query/ns2/added.db
bin/tests/system/allow_query/ns2/added.db
+0
-26
bin/tests/system/allow_query/ns2/addrallow.db
bin/tests/system/allow_query/ns2/addrallow.db
+0
-26
bin/tests/system/allow_query/ns2/addrdisallow.db
bin/tests/system/allow_query/ns2/addrdisallow.db
+0
-27
bin/tests/system/allow_query/ns2/addrnotallow.db
bin/tests/system/allow_query/ns2/addrnotallow.db
+0
-26
bin/tests/system/allow_query/ns2/any.db
bin/tests/system/allow_query/ns2/any.db
+0
-26
bin/tests/system/allow_query/ns2/keyallow.db
bin/tests/system/allow_query/ns2/keyallow.db
+0
-26
bin/tests/system/allow_query/ns2/keydisallow.db
bin/tests/system/allow_query/ns2/keydisallow.db
+0
-26
bin/tests/system/allow_query/ns2/none.db
bin/tests/system/allow_query/ns2/none.db
+0
-26
bin/tests/system/allow_query/ns2/normal.db
bin/tests/system/allow_query/ns2/normal.db
+0
-26
bin/tests/system/allow_query/ns2/previous.db
bin/tests/system/allow_query/ns2/previous.db
+0
-26
bin/tests/system/conf.sh.in
bin/tests/system/conf.sh.in
+1
-1
No files found.
CHANGES
View file @
341603a7
4908. [test] Eliminated unnecessary waiting in the allow_query
system test. Also changed its name to allow-query.
[GL #81]
4907. [test] Improved the reliabilty of the 'notify' system
test. [GL #59]
...
...
bin/tests/system/Makefile.in
View file @
341603a7
...
...
@@ -47,17 +47,16 @@ feature-test@EXEEXT@: feature-test.@O@
# used.
# Define the tests that can be run in parallel. This should be identical to
# the definition of PARALLELDIRS in conf.sh. Note: long-running tests
# such as
allow_query and serve-
stale are scheduled first to get more
# the definition of PARALLELDIRS in conf.sh. Note: long
er
-running tests
# such as
serve-stale and rpzrecurse
stale are scheduled first to get more
# benefit from parallelism.
PARALLEL
=
allow_query rpzrecurse serve-stale
\
acl additional addzone auth autosign
\
PARALLEL
=
rpzrecurse serve-stale dnssec
\
acl additional addzone allow-query auth autosign
\
builtin
cacheclean
case
catz cds chain
\
checkconf checknames checkzone
\
@CHECKDS@ @COVERAGE@ @KEYMGR@
\
cookie database digdelv dlv dlz dlzexternal
\
dns64
dnssec
@DNSTAP@ dscp dsdigest dyndb
\
dns64 @DNSTAP@ dscp dsdigest dyndb
\
ednscompliance emptyzones
\
fetchlimit filter-aaaa formerr forward
\
geoip glue inline integrity ixfr keepalive
\
...
...
bin/tests/system/allow
_
query/.gitignore
→
bin/tests/system/allow
-
query/.gitignore
View file @
341603a7
File moved
bin/tests/system/allow
_
query/clean.sh
→
bin/tests/system/allow
-
query/clean.sh
View file @
341603a7
...
...
@@ -17,4 +17,4 @@ rm -f dig.out.*
rm
-f
ns2/named.conf ns2/controls.conf
rm
-f
*
/named.memstats
rm
-f
ns
*
/named.lock
rm
-f
ns
*
/named.run
rm
-f
ns
*
/named.run
ns
*
/named.run.prev
bin/tests/system/allow
_query/ns2/aclallow
.db
→
bin/tests/system/allow
-query/ns2/generic
.db
View file @
341603a7
...
...
@@ -7,9 +7,7 @@
; See the COPYRIGHT file distributed with this work for additional
; information regarding copyright ownership.
; $Id: aclallow.db,v 1.2 2010/11/16 01:37:37 sar Exp $
$ORIGIN aclallow.example.
$ORIGIN @
$TTL 300 ; 5 minutes
@ IN SOA mname1. . (
1 ; serial
...
...
bin/tests/system/allow
_
query/ns2/named01.conf.in
→
bin/tests/system/allow
-
query/ns2/named01.conf.in
View file @
341603a7
...
...
@@ -26,5 +26,5 @@ zone "." {
zone "normal.example" {
type master;
file "
normal
.db";
file "
generic
.db";
};
bin/tests/system/allow
_
query/ns2/named02.conf.in
→
bin/tests/system/allow
-
query/ns2/named02.conf.in
View file @
341603a7
...
...
@@ -27,5 +27,5 @@ zone "." {
zone "normal.example" {
type master;
file "
normal
.db";
file "
generic
.db";
};
bin/tests/system/allow
_
query/ns2/named03.conf.in
→
bin/tests/system/allow
-
query/ns2/named03.conf.in
View file @
341603a7
...
...
@@ -27,5 +27,5 @@ zone "." {
zone "normal.example" {
type master;
file "
normal
.db";
file "
generic
.db";
};
bin/tests/system/allow
_
query/ns2/named04.conf.in
→
bin/tests/system/allow
-
query/ns2/named04.conf.in
View file @
341603a7
...
...
@@ -27,5 +27,5 @@ zone "." {
zone "normal.example" {
type master;
file "
normal
.db";
file "
generic
.db";
};
bin/tests/system/allow
_
query/ns2/named05.conf.in
→
bin/tests/system/allow
-
query/ns2/named05.conf.in
View file @
341603a7
...
...
@@ -27,5 +27,5 @@ zone "." {
zone "normal.example" {
type master;
file "
normal
.db";
file "
generic
.db";
};
bin/tests/system/allow
_
query/ns2/named06.conf.in
→
bin/tests/system/allow
-
query/ns2/named06.conf.in
View file @
341603a7
...
...
@@ -27,5 +27,5 @@ zone "." {
zone "normal.example" {
type master;
file "
normal
.db";
file "
generic
.db";
};
bin/tests/system/allow
_
query/ns2/named07.conf.in
→
bin/tests/system/allow
-
query/ns2/named07.conf.in
View file @
341603a7
...
...
@@ -29,5 +29,5 @@ zone "." {
zone "normal.example" {
type master;
file "
normal
.db";
file "
generic
.db";
};
bin/tests/system/allow
_
query/ns2/named08.conf.in
→
bin/tests/system/allow
-
query/ns2/named08.conf.in
View file @
341603a7
...
...
@@ -29,5 +29,5 @@ zone "." {
zone "normal.example" {
type master;
file "
normal
.db";
file "
generic
.db";
};
bin/tests/system/allow
_
query/ns2/named09.conf.in
→
bin/tests/system/allow
-
query/ns2/named09.conf.in
View file @
341603a7
...
...
@@ -29,5 +29,5 @@ zone "." {
zone "normal.example" {
type master;
file "
normal
.db";
file "
generic
.db";
};
bin/tests/system/allow
_
query/ns2/named10.conf.in
→
bin/tests/system/allow
-
query/ns2/named10.conf.in
View file @
341603a7
...
...
@@ -32,5 +32,5 @@ zone "." {
zone "normal.example" {
type master;
file "
normal
.db";
file "
generic
.db";
};
bin/tests/system/allow
_
query/ns2/named11.conf.in
→
bin/tests/system/allow
-
query/ns2/named11.conf.in
View file @
341603a7
...
...
@@ -38,5 +38,5 @@ zone "." {
zone "normal.example" {
type master;
file "
normal
.db";
file "
generic
.db";
};
bin/tests/system/allow
_
query/ns2/named12.conf.in
→
bin/tests/system/allow
-
query/ns2/named12.conf.in
View file @
341603a7
...
...
@@ -32,5 +32,5 @@ zone "." {
zone "normal.example" {
type master;
file "
normal
.db";
file "
generic
.db";
};
bin/tests/system/allow
_
query/ns2/named21.conf.in
→
bin/tests/system/allow
-
query/ns2/named21.conf.in
View file @
341603a7
...
...
@@ -28,6 +28,6 @@ view "internal" {
zone "normal.example" {
type master;
file "
normal
.db";
file "
generic
.db";
};
};
bin/tests/system/allow
_
query/ns2/named22.conf.in
→
bin/tests/system/allow
-
query/ns2/named22.conf.in
View file @
341603a7
...
...
@@ -30,7 +30,7 @@ view "internal" {
zone "normal.example" {
type master;
file "
normal
.db";
file "
generic
.db";
};
};
bin/tests/system/allow
_
query/ns2/named23.conf.in
→
bin/tests/system/allow
-
query/ns2/named23.conf.in
View file @
341603a7
...
...
@@ -30,7 +30,6 @@ view "internal" {
zone "normal.example" {
type master;
file "
normal
.db";
file "
generic
.db";
};
};
bin/tests/system/allow
_
query/ns2/named24.conf.in
→
bin/tests/system/allow
-
query/ns2/named24.conf.in
View file @
341603a7
...
...
@@ -30,6 +30,6 @@ view "internal" {
zone "normal.example" {
type master;
file "
normal
.db";
file "
generic
.db";
};
};
bin/tests/system/allow
_
query/ns2/named25.conf.in
→
bin/tests/system/allow
-
query/ns2/named25.conf.in
View file @
341603a7
...
...
@@ -30,6 +30,6 @@ view "internal" {
zone "normal.example" {
type master;
file "
normal
.db";
file "
generic
.db";
};
};
bin/tests/system/allow
_
query/ns2/named26.conf.in
→
bin/tests/system/allow
-
query/ns2/named26.conf.in
View file @
341603a7
...
...
@@ -30,6 +30,6 @@ view "internal" {
zone "normal.example" {
type master;
file "
normal
.db";
file "
generic
.db";
};
};
bin/tests/system/allow
_
query/ns2/named27.conf.in
→
bin/tests/system/allow
-
query/ns2/named27.conf.in
View file @
341603a7
...
...
@@ -32,7 +32,7 @@ view "internal" {
zone "normal.example" {
type master;
file "
normal
.db";
file "
generic
.db";
};
};
bin/tests/system/allow
_
query/ns2/named28.conf.in
→
bin/tests/system/allow
-
query/ns2/named28.conf.in
View file @
341603a7
...
...
@@ -32,6 +32,6 @@ view "internal" {
zone "normal.example" {
type master;
file "
normal
.db";
file "
generic
.db";
};
};
bin/tests/system/allow
_
query/ns2/named29.conf.in
→
bin/tests/system/allow
-
query/ns2/named29.conf.in
View file @
341603a7
...
...
@@ -32,6 +32,6 @@ view "internal" {
zone "normal.example" {
type master;
file "
normal
.db";
file "
generic
.db";
};
};
bin/tests/system/allow
_
query/ns2/named30.conf.in
→
bin/tests/system/allow
-
query/ns2/named30.conf.in
View file @
341603a7
...
...
@@ -35,6 +35,6 @@ view "internal" {
zone "normal.example" {
type master;
file "
normal
.db";
file "
generic
.db";
};
};
bin/tests/system/allow
_
query/ns2/named31.conf.in
→
bin/tests/system/allow
-
query/ns2/named31.conf.in
View file @
341603a7
...
...
@@ -42,6 +42,6 @@ view "internal" {
zone "normal.example" {
type master;
file "
normal
.db";
file "
generic
.db";
};
};
bin/tests/system/allow
_
query/ns2/named32.conf.in
→
bin/tests/system/allow
-
query/ns2/named32.conf.in
View file @
341603a7
...
...
@@ -35,6 +35,6 @@ view "internal" {
zone "normal.example" {
type master;
file "
normal
.db";
file "
generic
.db";
};
};
bin/tests/system/allow
_
query/ns2/named33.conf.in
→
bin/tests/system/allow
-
query/ns2/named33.conf.in
View file @
341603a7
...
...
@@ -31,7 +31,7 @@ view "internal" {
zone "normal.example" {
type master;
file "
normal
.db";
file "
generic
.db";
};
};
bin/tests/system/allow
_
query/ns2/named34.conf.in
→
bin/tests/system/allow
-
query/ns2/named34.conf.in
View file @
341603a7
...
...
@@ -31,6 +31,6 @@ view "internal" {
zone "normal.example" {
type master;
file "
normal
.db";
file "
generic
.db";
};
};
bin/tests/system/allow
_
query/ns2/named40.conf.in
→
bin/tests/system/allow
-
query/ns2/named40.conf.in
View file @
341603a7
...
...
@@ -40,68 +40,66 @@ zone "." {
zone "normal.example" {
type master;
file "
normal
.db";
file "
generic
.db";
};
zone "any.example" {
type master;
file "
any
.db";
file "
generic
.db";
allow-query { any; };
};
zone "none.example" {
type master;
file "
none
.db";
file "
generic
.db";
allow-query { none; };
};
zone "addrallow.example" {
type master;
file "
addrallow
.db";
file "
generic
.db";
allow-query { 10.53.0.2; };
};
zone "addrnotallow.example" {
type master;
file "
addrnotallow
.db";
file "
generic
.db";
allow-query { 10.53.0.1; };
};
zone "addrdisallow.example" {
type master;
file "
addrdisallow
.db";
file "
generic
.db";
allow-query { ! 10.53.0.2; };
};
zone "aclallow.example" {
type master;
file "
aclallow
.db";
file "
generic
.db";
allow-query { accept; };
};
zone "aclnotallow.example" {
type master;
file "
aclnotallow
.db";
file "
generic
.db";
allow-query { badaccept; };
};
zone "acldisallow.example" {
type master;
file "
acldisallow
.db";
file "
generic
.db";
allow-query { ! accept; };
};
/* Also usable for testing key not allowed */
zone "keyallow.example" {
type master;
file "
keyallow
.db";
file "
generic
.db";
allow-query { key one; };
};
zone "keydisallow.example" {
type master;
file "
keydisallow
.db";
file "
generic
.db";
allow-query { ! key one; };
};
bin/tests/system/allow
_
query/ns2/named53.conf.in
→
bin/tests/system/allow
-
query/ns2/named53.conf.in
View file @
341603a7
...
...
@@ -27,6 +27,6 @@ zone "." {
zone "normal.example" {
type master;
file "
normal
.db";
file "
generic
.db";
allow-query { any; };
};
bin/tests/system/allow
_
query/ns2/named54.conf.in
→
bin/tests/system/allow
-
query/ns2/named54.conf.in
View file @
341603a7
...
...
@@ -27,6 +27,6 @@ zone "." {
zone "normal.example" {
type master;
file "
normal
.db";
file "
generic
.db";
allow-query { none; };
};
bin/tests/system/allow
_
query/ns2/named55.conf.in
→
bin/tests/system/allow
-
query/ns2/named55.conf.in
View file @
341603a7
...
...
@@ -30,7 +30,7 @@ view "internal" {
zone "normal.example" {
type master;
file "
normal
.db";
file "
generic
.db";
allow-query { any; };
};
...
...
bin/tests/system/allow
_
query/ns2/named56.conf.in
→
bin/tests/system/allow
-
query/ns2/named56.conf.in
View file @
341603a7
...
...
@@ -30,7 +30,7 @@ view "internal" {
zone "normal.example" {
type master;
file "
normal
.db";
file "
generic
.db";
allow-query { none; };
};
};
bin/tests/system/allow
_
query/ns2/named57.conf.in
→
bin/tests/system/allow
-
query/ns2/named57.conf.in
View file @
341603a7
...
...
@@ -29,12 +29,12 @@ view "internal" {
zone "normal.example" {
type master;
file "
normal
.db";
file "
generic
.db";
};
zone "aclnotallow.example" {
type master;
file "
aclnotallow
.db";
file "
generic
.db";
allow-query-on { none; };
};
};
bin/tests/system/allow
_
query/setup.sh
→
bin/tests/system/allow
-
query/setup.sh
View file @
341603a7
File moved
bin/tests/system/allow
_
query/tests.sh
→
bin/tests/system/allow
-
query/tests.sh
View file @
341603a7
...
...
@@ -17,29 +17,29 @@
# expected match.
# Test list:
# In options:
# default (any), any, none, [localhost, localnets],
# default (any), any, none, [localhost, localnets],
# allowed address, not allowed address, denied address,
# allowed key, not allowed key, denied key
# allowed acl, not allowed acl, denied acl (acls pointing to addresses)
# allowed key, not allowed key, denied key
# allowed acl, not allowed acl, denied acl (acls pointing to addresses)
#
# Each of these tests requires changing to a new configuration
# file and using rndc to update the server
#
# In view, with nothing in options (default to any)
# default (any), any, none, [localhost, localnets],
# default (any), any, none, [localhost, localnets],
# allowed address, not allowed address, denied address,
# allowed key, not allowed key, denied key
# allowed acl, not allowed acl, denied acl (acls pointing to addresses)
# allowed key, not allowed key, denied key
# allowed acl, not allowed acl, denied acl (acls pointing to addresses)
#
# In view, with options set to none, view set to any
# In view, with options set to any, view set to none
#
# In zone, with nothing in options (default to any)
# any, none, [localhost, localnets],
# allowed address, denied address,
# any, none, [localhost, localnets],
# allowed address, denied address,
# allowed key, not allowed key, denied key
# allowed acl, not allowed acl, denied acl (acls pointing to addresses),
#
#
# In zone, with options set to none, zone set to any
# In zone, with options set to any, zone set to none
# In zone, with view set to none, zone set to any
...
...
@@ -47,7 +47,7 @@
#
# zone types of master, slave and stub can be tested in parallel by using
# multiple instances (ns2 as master, ns3 as slave, ns4 as stub) and querying
# as necessary.
# as necessary.
#
SYSTEMTESTTOP
=
..
...
...
@@ -57,11 +57,17 @@ DIGOPTS="+tcp +nosea +nostat +nocmd +norec +noques +noauth +noadd +nostats +dnss
rndc_reload
()
{
echo_i
"
`
$RNDC
-c
../common/rndc.conf
-s
10.53.0.2
-p
${
CONTROLPORT
}
reload 2>&1 |
sed
's/^/ns2 /'
`
"
for
try
in
0 1 2 3 4 5 6 7 8 9
;
do
nextpart ns2/named.run |
grep
"reloading configuration succeeded"
>
/dev/null
&&
break
sleep
1
done
}
status
=
0
n
=
0
nextpart ns2/named.run
>
/dev/null
# Test 1 - default, query allowed
n
=
`
expr
$n
+ 1
`
echo_i
"test
$n
: default - query allowed"
...
...
@@ -76,7 +82,6 @@ status=`expr $status + $ret`
n
=
`
expr
$n
+ 1
`
copy_setports ns2/named02.conf.in ns2/named.conf
rndc_reload
sleep
5
echo_i
"test
$n
: explicit any - query allowed"
ret
=
0
...
...
@@ -90,7 +95,6 @@ status=`expr $status + $ret`
n
=
`
expr
$n
+ 1
`
copy_setports ns2/named03.conf.in ns2/named.conf
rndc_reload
sleep
5
echo_i
"test
$n
: none - query refused"
ret
=
0
...
...
@@ -104,7 +108,6 @@ status=`expr $status + $ret`
n
=
`
expr
$n
+ 1
`
copy_setports ns2/named04.conf.in ns2/named.conf
rndc_reload
sleep
5
echo_i
"test
$n
: address allowed - query allowed"
ret
=
0
...
...
@@ -118,7 +121,6 @@ status=`expr $status + $ret`
n
=
`
expr
$n
+ 1
`
copy_setports ns2/named05.conf.in ns2/named.conf
rndc_reload
sleep
5
echo_i
"test
$n
: address not allowed - query refused"
ret
=
0
...
...
@@ -132,7 +134,6 @@ status=`expr $status + $ret`
n
=
`
expr
$n
+ 1
`
copy_setports ns2/named06.conf.in ns2/named.conf
rndc_reload
sleep
5
echo_i
"test
$n
: address disallowed - query refused"
ret
=
0
...
...
@@ -146,7 +147,6 @@ status=`expr $status + $ret`
n
=
`
expr
$n
+ 1
`
copy_setports ns2/named07.conf.in ns2/named.conf
rndc_reload
sleep
5
echo_i
"test
$n
: acl allowed - query allowed"
ret
=
0
...
...
@@ -160,7 +160,6 @@ status=`expr $status + $ret`
n
=
`
expr
$n
+ 1
`
copy_setports ns2/named08.conf.in ns2/named.conf
rndc_reload
sleep
5
echo_i
"test
$n
: acl not allowed - query refused"
ret
=
0
...
...
@@ -175,7 +174,6 @@ status=`expr $status + $ret`
n
=
`
expr
$n
+ 1
`
copy_setports ns2/named09.conf.in ns2/named.conf
rndc_reload
sleep
5
echo_i
"test
$n
: acl disallowed - query refused"
ret
=
0
...
...
@@ -189,7 +187,6 @@ status=`expr $status + $ret`
n
=
`
expr
$n
+ 1
`
copy_setports ns2/named10.conf.in ns2/named.conf
rndc_reload
sleep
5
echo_i
"test
$n
: key allowed - query allowed"
ret
=
0
...
...
@@ -203,7 +200,6 @@ status=`expr $status + $ret`
n
=
`
expr
$n
+ 1
`
copy_setports ns2/named11.conf.in ns2/named.conf
rndc_reload
sleep
5
echo_i
"test
$n
: key not allowed - query refused"
ret
=
0
...
...
@@ -217,7 +213,6 @@ status=`expr $status + $ret`
n
=
`
expr
$n
+ 1
`
copy_setports ns2/named12.conf.in ns2/named.conf
rndc_reload
sleep
5
echo_i
"test
$n
: key disallowed - query refused"
ret
=
0
...
...
@@ -234,7 +229,6 @@ n=20
n
=
`
expr
$n
+ 1
`
copy_setports ns2/named21.conf.in ns2/named.conf
rndc_reload
sleep
5
echo_i
"test
$n
: views default - query allowed"
ret
=
0
...
...
@@ -248,7 +242,6 @@ status=`expr $status + $ret`
n
=
`
expr
$n
+ 1
`
copy_setports ns2/named22.conf.in ns2/named.conf
rndc_reload
sleep
5
echo_i
"test
$n
: views explicit any - query allowed"
ret
=
0
...
...
@@ -262,7 +255,6 @@ status=`expr $status + $ret`
n
=
`
expr
$n
+ 1
`
copy_setports ns2/named23.conf.in ns2/named.conf
rndc_reload
sleep
5
echo_i
"test
$n
: views none - query refused"
ret
=
0
...
...
@@ -276,7 +268,6 @@ status=`expr $status + $ret`
n
=
`
expr
$n
+ 1
`
copy_setports ns2/named24.conf.in ns2/named.conf
rndc_reload
sleep
5
echo_i
"test
$n
: views address allowed - query allowed"
ret
=
0
...
...
@@ -290,7 +281,6 @@ status=`expr $status + $ret`
n
=
`
expr
$n
+ 1
`
copy_setports ns2/named25.conf.in ns2/named.conf
rndc_reload
sleep
5
echo_i
"test
$n
: views address not allowed - query refused"
ret
=
0
...
...
@@ -304,7 +294,6 @@ status=`expr $status + $ret`
n
=
`
expr
$n
+ 1
`
copy_setports ns2/named26.conf.in ns2/named.conf
rndc_reload
sleep
5
echo_i
"test
$n
: views address disallowed - query refused"
ret
=
0
...
...
@@ -318,7 +307,6 @@ status=`expr $status + $ret`
n
=
`
expr
$n
+ 1
`
copy_setports ns2/named27.conf.in ns2/named.conf
rndc_reload
sleep
5
echo_i
"test
$n
: views acl allowed - query allowed"
ret
=
0
...
...
@@ -332,7 +320,6 @@ status=`expr $status + $ret`
n
=
`
expr
$n
+ 1
`
copy_setports ns2/named28.conf.in ns2/named.conf
rndc_reload
sleep
5
echo_i
"test
$n
: views acl not allowed - query refused"
ret
=
0
...
...
@@ -346,7 +333,6 @@ status=`expr $status + $ret`
n
=
`
expr
$n
+ 1
`
copy_setports ns2/named29.conf.in ns2/named.conf
rndc_reload
sleep
5
echo_i
"test
$n
: views acl disallowed - query refused"
ret
=
0
...
...
@@ -360,7 +346,6 @@ status=`expr $status + $ret`
n
=
`
expr
$n
+ 1
`
copy_setports ns2/named30.conf.in ns2/named.conf
rndc_reload
sleep
5
echo_i
"test
$n
: views key allowed - query allowed"
ret
=
0
...
...
@@ -374,7 +359,6 @@ status=`expr $status + $ret`
n
=
`
expr
$n
+ 1
`
copy_setports ns2/named31.conf.in ns2/named.conf
rndc_reload
sleep
5
echo_i
"test
$n
: views key not allowed - query refused"
ret
=
0
...
...
@@ -388,7 +372,6 @@ status=`expr $status + $ret`
n
=
`
expr
$n
+ 1
`