]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
eliminate unnecessary waiting in allow-query test
authorEvan Hunt <each@isc.org>
Tue, 27 Feb 2018 00:48:42 +0000 (16:48 -0800)
committerEvan Hunt <each@isc.org>
Wed, 7 Mar 2018 21:20:01 +0000 (13:20 -0800)
- grep in the log to see if configuration is finished rather
  than sleeping for 5 seconds

49 files changed:
CHANGES
bin/tests/system/Makefile.in
bin/tests/system/allow-query/clean.sh
bin/tests/system/allow-query/ns2/acldisallow.db [deleted file]
bin/tests/system/allow-query/ns2/aclnotallow.db [deleted file]
bin/tests/system/allow-query/ns2/added.db [deleted file]
bin/tests/system/allow-query/ns2/addrallow.db [deleted file]
bin/tests/system/allow-query/ns2/addrdisallow.db [deleted file]
bin/tests/system/allow-query/ns2/addrnotallow.db [deleted file]
bin/tests/system/allow-query/ns2/any.db [deleted file]
bin/tests/system/allow-query/ns2/generic.db [moved from bin/tests/system/allow-query/ns2/aclallow.db with 96% similarity]
bin/tests/system/allow-query/ns2/keyallow.db [deleted file]
bin/tests/system/allow-query/ns2/keydisallow.db [deleted file]
bin/tests/system/allow-query/ns2/named01.conf.in
bin/tests/system/allow-query/ns2/named02.conf.in
bin/tests/system/allow-query/ns2/named03.conf.in
bin/tests/system/allow-query/ns2/named04.conf.in
bin/tests/system/allow-query/ns2/named05.conf.in
bin/tests/system/allow-query/ns2/named06.conf.in
bin/tests/system/allow-query/ns2/named07.conf.in
bin/tests/system/allow-query/ns2/named08.conf.in
bin/tests/system/allow-query/ns2/named09.conf.in
bin/tests/system/allow-query/ns2/named10.conf.in
bin/tests/system/allow-query/ns2/named11.conf.in
bin/tests/system/allow-query/ns2/named12.conf.in
bin/tests/system/allow-query/ns2/named21.conf.in
bin/tests/system/allow-query/ns2/named22.conf.in
bin/tests/system/allow-query/ns2/named23.conf.in
bin/tests/system/allow-query/ns2/named24.conf.in
bin/tests/system/allow-query/ns2/named25.conf.in
bin/tests/system/allow-query/ns2/named26.conf.in
bin/tests/system/allow-query/ns2/named27.conf.in
bin/tests/system/allow-query/ns2/named28.conf.in
bin/tests/system/allow-query/ns2/named29.conf.in
bin/tests/system/allow-query/ns2/named30.conf.in
bin/tests/system/allow-query/ns2/named31.conf.in
bin/tests/system/allow-query/ns2/named32.conf.in
bin/tests/system/allow-query/ns2/named33.conf.in
bin/tests/system/allow-query/ns2/named34.conf.in
bin/tests/system/allow-query/ns2/named40.conf.in
bin/tests/system/allow-query/ns2/named53.conf.in
bin/tests/system/allow-query/ns2/named54.conf.in
bin/tests/system/allow-query/ns2/named55.conf.in
bin/tests/system/allow-query/ns2/named56.conf.in
bin/tests/system/allow-query/ns2/named57.conf.in
bin/tests/system/allow-query/ns2/none.db [deleted file]
bin/tests/system/allow-query/ns2/normal.db [deleted file]
bin/tests/system/allow-query/ns2/previous.db [deleted file]
bin/tests/system/allow-query/tests.sh

diff --git a/CHANGES b/CHANGES
index f2d965483a66d132430e9198d1507ccd59b63376..35f7886b8ca939fb87cfd3feffa8fe6cd3c3be1d 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,7 @@
+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]
 
index ff46210752cfd1628b92ac3f757e21069e9ab043..e3f1287fe31eee231bfe0dd1243c576642816359 100644 (file)
@@ -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: longer-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 \
index 33f9894d77d4395063d58d690f296960282fb345..a36dbf6923f8f1006f02b01ee115acd78a6ba13f 100644 (file)
@@ -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
diff --git a/bin/tests/system/allow-query/ns2/acldisallow.db b/bin/tests/system/allow-query/ns2/acldisallow.db
deleted file mode 100644 (file)
index 27794cb..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-; Copyright (C) Internet Systems Consortium, Inc. ("ISC")
-;
-; This Source Code Form is subject to the terms of the Mozilla Public
-; License, v. 2.0. If a copy of the MPL was not distributed with this
-; file, You can obtain one at http://mozilla.org/MPL/2.0/.
-;
-; See the COPYRIGHT file distributed with this work for additional
-; information regarding copyright ownership.
-
-$ORIGIN acldisallow.example.
-$TTL 300       ; 5 minutes
-@                       IN SOA mname1. . (
-                               1          ; serial
-                               20         ; refresh (20 seconds)
-                               20         ; retry (20 seconds)
-                               1814400    ; expire (3 weeks)
-                               3600       ; minimum (1 hour)
-                               )
-                       NS      ns2
-ns2                    A       10.53.0.2
-                       MX      10 mail
-
-a                      A       10.0.9.1
-mail                   A       10.0.9.2
diff --git a/bin/tests/system/allow-query/ns2/aclnotallow.db b/bin/tests/system/allow-query/ns2/aclnotallow.db
deleted file mode 100644 (file)
index aefb1d0..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-; Copyright (C) Internet Systems Consortium, Inc. ("ISC")
-;
-; This Source Code Form is subject to the terms of the Mozilla Public
-; License, v. 2.0. If a copy of the MPL was not distributed with this
-; file, You can obtain one at http://mozilla.org/MPL/2.0/.
-;
-; See the COPYRIGHT file distributed with this work for additional
-; information regarding copyright ownership.
-
-$ORIGIN aclnotallow.example.
-$TTL 300       ; 5 minutes
-@                       IN SOA mname1. . (
-                               1          ; serial
-                               20         ; refresh (20 seconds)
-                               20         ; retry (20 seconds)
-                               1814400    ; expire (3 weeks)
-                               3600       ; minimum (1 hour)
-                               )
-                       NS      ns2
-ns2                    A       10.53.0.2
-                       MX      10 mail
-
-a                      A       10.0.8.1
-mail                   A       10.0.8.2
diff --git a/bin/tests/system/allow-query/ns2/added.db b/bin/tests/system/allow-query/ns2/added.db
deleted file mode 100644 (file)
index 8a047a9..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-; Copyright (C) Internet Systems Consortium, Inc. ("ISC")
-;
-; This Source Code Form is subject to the terms of the Mozilla Public
-; License, v. 2.0. If a copy of the MPL was not distributed with this
-; file, You can obtain one at http://mozilla.org/MPL/2.0/.
-;
-; See the COPYRIGHT file distributed with this work for additional
-; information regarding copyright ownership.
-
-$ORIGIN added.example.
-$TTL 300       ; 5 minutes
-@                       IN SOA mname1. . (
-                               1          ; serial
-                               20         ; refresh (20 seconds)
-                               20         ; retry (20 seconds)
-                               1814400    ; expire (3 weeks)
-                               3600       ; minimum (1 hour)
-                               )
-                       NS      ns2
-ns2                    A       10.53.0.2
-                       MX      10 mail
-
-a                      A       10.0.0.1
-mail                   A       10.0.0.2
diff --git a/bin/tests/system/allow-query/ns2/addrallow.db b/bin/tests/system/allow-query/ns2/addrallow.db
deleted file mode 100644 (file)
index 62b9249..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-; Copyright (C) Internet Systems Consortium, Inc. ("ISC")
-;
-; This Source Code Form is subject to the terms of the Mozilla Public
-; License, v. 2.0. If a copy of the MPL was not distributed with this
-; file, You can obtain one at http://mozilla.org/MPL/2.0/.
-;
-; See the COPYRIGHT file distributed with this work for additional
-; information regarding copyright ownership.
-
-$ORIGIN addrallow.example.
-$TTL 300       ; 5 minutes
-@                       IN SOA mname1. . (
-                               1          ; serial
-                               20         ; refresh (20 seconds)
-                               20         ; retry (20 seconds)
-                               1814400    ; expire (3 weeks)
-                               3600       ; minimum (1 hour)
-                               )
-                       NS      ns2
-ns2                    A       10.53.0.2
-                       MX      10 mail
-
-a                      A       10.0.4.1
-mail                   A       10.0.4.2
diff --git a/bin/tests/system/allow-query/ns2/addrdisallow.db b/bin/tests/system/allow-query/ns2/addrdisallow.db
deleted file mode 100644 (file)
index 492a1ec..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-; Copyright (C) Internet Systems Consortium, Inc. ("ISC")
-;
-; This Source Code Form is subject to the terms of the Mozilla Public
-; License, v. 2.0. If a copy of the MPL was not distributed with this
-; file, You can obtain one at http://mozilla.org/MPL/2.0/.
-;
-; See the COPYRIGHT file distributed with this work for additional
-; information regarding copyright ownership.
-
-$ORIGIN addrdisallow.example.
-$TTL 300       ; 5 minutes
-@                       IN SOA mname1. . (
-                               1          ; serial
-                               20         ; refresh (20 seconds)
-                               20         ; retry (20 seconds)
-                               1814400    ; expire (3 weeks)
-                               3600       ; minimum (1 hour)
-                               )
-                       NS      ns2
-ns2                    A       10.53.0.2
-                       MX      10 mail
-
-a                      A       10.0.6.1
-mail                   A       10.0.6.2
diff --git a/bin/tests/system/allow-query/ns2/addrnotallow.db b/bin/tests/system/allow-query/ns2/addrnotallow.db
deleted file mode 100644 (file)
index 9f53ff7..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-; Copyright (C) Internet Systems Consortium, Inc. ("ISC")
-;
-; This Source Code Form is subject to the terms of the Mozilla Public
-; License, v. 2.0. If a copy of the MPL was not distributed with this
-; file, You can obtain one at http://mozilla.org/MPL/2.0/.
-;
-; See the COPYRIGHT file distributed with this work for additional
-; information regarding copyright ownership.
-
-$ORIGIN addrnotallow.example.
-$TTL 300       ; 5 minutes
-@                       IN SOA mname1. . (
-                               1          ; serial
-                               20         ; refresh (20 seconds)
-                               20         ; retry (20 seconds)
-                               1814400    ; expire (3 weeks)
-                               3600       ; minimum (1 hour)
-                               )
-                       NS      ns2
-ns2                    A       10.53.0.2
-                       MX      10 mail
-
-a                      A       10.0.5.1
-mail                   A       10.0.5.2
diff --git a/bin/tests/system/allow-query/ns2/any.db b/bin/tests/system/allow-query/ns2/any.db
deleted file mode 100644 (file)
index c067e4c..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-; Copyright (C) Internet Systems Consortium, Inc. ("ISC")
-;
-; This Source Code Form is subject to the terms of the Mozilla Public
-; License, v. 2.0. If a copy of the MPL was not distributed with this
-; file, You can obtain one at http://mozilla.org/MPL/2.0/.
-;
-; See the COPYRIGHT file distributed with this work for additional
-; information regarding copyright ownership.
-
-$ORIGIN any.example.
-$TTL 300       ; 5 minutes
-@                       IN SOA mname1. . (
-                               1          ; serial
-                               20         ; refresh (20 seconds)
-                               20         ; retry (20 seconds)
-                               1814400    ; expire (3 weeks)
-                               3600       ; minimum (1 hour)
-                               )
-                       NS      ns2
-ns2                    A       10.53.0.2
-                       MX      10 mail
-
-a                      A       10.0.1.1
-mail                   A       10.0.1.2
similarity index 96%
rename from bin/tests/system/allow-query/ns2/aclallow.db
rename to bin/tests/system/allow-query/ns2/generic.db
index 5ef2dd608a792df2309ca1adc86d66c1a0c81117..dc51ce244c73aae513f7c00687e1b5997b5c6627 100644 (file)
@@ -7,7 +7,7 @@
 ; See the COPYRIGHT file distributed with this work for additional
 ; information regarding copyright ownership.
 
-$ORIGIN aclallow.example.
+$ORIGIN @
 $TTL 300       ; 5 minutes
 @                       IN SOA mname1. . (
                                1          ; serial
diff --git a/bin/tests/system/allow-query/ns2/keyallow.db b/bin/tests/system/allow-query/ns2/keyallow.db
deleted file mode 100644 (file)
index 81d96a7..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-; Copyright (C) Internet Systems Consortium, Inc. ("ISC")
-;
-; This Source Code Form is subject to the terms of the Mozilla Public
-; License, v. 2.0. If a copy of the MPL was not distributed with this
-; file, You can obtain one at http://mozilla.org/MPL/2.0/.
-;
-; See the COPYRIGHT file distributed with this work for additional
-; information regarding copyright ownership.
-
-$ORIGIN keyallow.example.
-$TTL 300       ; 5 minutes
-@                       IN SOA mname1. . (
-                               1          ; serial
-                               20         ; refresh (20 seconds)
-                               20         ; retry (20 seconds)
-                               1814400    ; expire (3 weeks)
-                               3600       ; minimum (1 hour)
-                               )
-                       NS      ns2
-ns2                    A       10.53.0.2
-                       MX      10 mail
-
-a                      A       10.0.10.1
-mail                   A       10.0.10.2
diff --git a/bin/tests/system/allow-query/ns2/keydisallow.db b/bin/tests/system/allow-query/ns2/keydisallow.db
deleted file mode 100644 (file)
index d4acc25..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-; Copyright (C) Internet Systems Consortium, Inc. ("ISC")
-;
-; This Source Code Form is subject to the terms of the Mozilla Public
-; License, v. 2.0. If a copy of the MPL was not distributed with this
-; file, You can obtain one at http://mozilla.org/MPL/2.0/.
-;
-; See the COPYRIGHT file distributed with this work for additional
-; information regarding copyright ownership.
-
-$ORIGIN keydisallow.example.
-$TTL 300       ; 5 minutes
-@                       IN SOA mname1. . (
-                               1          ; serial
-                               20         ; refresh (20 seconds)
-                               20         ; retry (20 seconds)
-                               1814400    ; expire (3 weeks)
-                               3600       ; minimum (1 hour)
-                               )
-                       NS      ns2
-ns2                    A       10.53.0.2
-                       MX      10 mail
-
-a                      A       10.0.12.1
-mail                   A       10.0.12.2
index f39281cd4c9b531a18969244f0ee4e4416a13895..0395d9c9dea77c4528a139511b071790b9173aca 100644 (file)
@@ -26,5 +26,5 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
 };
index efdc494b9fa63f07dacd950702ed8671b43d3b98..3b0726ff8999d0ced72548a19f5b5949e298b565 100644 (file)
@@ -27,5 +27,5 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
 };
index ff0fb71409a92d38e217f6af4f3798329642a1b1..9d5fb48bdcca86fb008fb2eae47d37b15888a06a 100644 (file)
@@ -27,5 +27,5 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
 };
index 5d77e6601609a99ebc7bca099989c4a1260f7fd2..88ee8de60d27cd40806fc505f7a02671fad3dab9 100644 (file)
@@ -27,5 +27,5 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
 };
index c733194e4c263fdaee5f7f3869faf5f13c50bc52..7fbc72006d5dae659443a4f5f136ec971763a81d 100644 (file)
@@ -27,5 +27,5 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
 };
index abac57e2f38f0306e3a081fb5e3c1768a7117f64..c4a0b9fe5ddd252ea13befeda4ae69a3f21bb3ee 100644 (file)
@@ -27,5 +27,5 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
 };
index f7771c90eb2e3d05c194b4b3776122d7c57d9754..511e74c5eb9bf030ed99d7bfbc2ca045b11a1bae 100644 (file)
@@ -29,5 +29,5 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
 };
index 386594ab03dfed7246d2f045b5cbcfeb005815d7..b0c3c6cd1ddad5f76c807eeed7899708fcc17053 100644 (file)
@@ -29,5 +29,5 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
 };
index 5f1568f5f124aec34ddb7c72e3cf293bb8d0ca69..4f1d026d07fe47aa6882872bad8c0fdb8862a8c0 100644 (file)
@@ -29,5 +29,5 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
 };
index c6ed24c25945e3ed3f7120286bcd440769baa969..c5f38c90bb56be31dd3ffe772bac7df53a6711d0 100644 (file)
@@ -32,5 +32,5 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
 };
index 1cd7738d79c9478a08f591ba4f2730db80746644..56e5cc4947fcc7d02d428c0d997c0f884938df49 100644 (file)
@@ -38,5 +38,5 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
 };
index 83688013fcfd132c7557c0afff48f26e4bf11830..8381950dfae3ffa21cf0e10e6a8cd7ee817cd5ea 100644 (file)
@@ -32,5 +32,5 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
 };
index 7cee3e8c0a50c257a2dff738d6834e52f3478fac..c5ba1e8050ee0150d970a4be63a2dc47e7b9957b 100644 (file)
@@ -28,6 +28,6 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 };
index 0e9c7f8a84ccc5e6da21248db2f38daec3b74348..03907ffb8bf133a526397d69f046c58a0becc195 100644 (file)
@@ -30,7 +30,7 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 
 };
index 95dea47e3e3549b62a33c01727005bf3bb42f001..448b46297ac9cd4e5dcb01d9fa77f4eec18de160 100644 (file)
@@ -30,6 +30,6 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 };
index ed81fc25f63d9bd788d1d43dd984f325afdd786c..401e0f4291ff4ef5935be751a94e6a1a35ab819c 100644 (file)
@@ -30,6 +30,6 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 };
index a54088180f9ecf71c1ad431353362f9fa491af75..03304028f2f7b192a037245c6ff2a737a7fd674a 100644 (file)
@@ -30,6 +30,6 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 };
index 856924a823c776bd2d59b0277f689e75161a61f6..15b0b24757999901c8b8e2e318e8513f94243ca7 100644 (file)
@@ -30,6 +30,6 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 };
index 00d3f512697703aa9d54d8c47166ac0e56041661..4519f7b1874e2ad014f7b0331e1143d14fd0b63c 100644 (file)
@@ -32,7 +32,7 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 
 };
index 7c2772ceb5b161687462eb0bad61f6e058a6498f..4b54a72e805f60248e6f78ce0789a93f6c7f08f5 100644 (file)
@@ -32,6 +32,6 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 };
index f9ebc6c4cc6c7cb847121379ddb60851d7cf0475..93a1e67e62891b7132acb3bbbb6f7ff0e195d64f 100644 (file)
@@ -32,6 +32,6 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 };
index 58987cada0baab5dc8bcb517105a15915dd95173..0e5ff55b9570e5b7e5ae770b549283f5ea3c7be6 100644 (file)
@@ -35,6 +35,6 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 };
index 954577aeac2bb8cb7c34f9814455d834552cc490..faadb3f02f00aac4f240e1969f3ac891d0b5385f 100644 (file)
@@ -42,6 +42,6 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 };
index d9f9072efa1f0052dd136558b9945e10796d93b8..9e78dd0387a75d6fb9e63ff720154cfa033ebacd 100644 (file)
@@ -35,6 +35,6 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 };
index 9282b3199fb72dd948c02d8bdf4d32399f0bbd78..f4ba389a728e6fd797431d2a688578187d2e19ba 100644 (file)
@@ -31,7 +31,7 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 
 };
index a16f498da5dba3b076ad40d4af942b18913117fe..5e05e6c8b751f7d7fb0f278f5f93971758e6d46a 100644 (file)
@@ -31,6 +31,6 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 };
index 91818e8dbb96c4e35ce3e90c7f28b2caa18aefc3..f4bc3993e9778d16b8e811f42852e91a543921d8 100644 (file)
@@ -40,66 +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; };
 };
index 93c76252c06aa4e6f130ea7d18cbf6727d0ec555..5dac2b993fdfd48a8c9bb907a6aff6ff493dddcd 100644 (file)
@@ -27,6 +27,6 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
        allow-query { any; };
 };
index e823aece378387f5f9cbad938bebe0ad33846376..7014a75efac524091fdd379bbb5f31419b2da969 100644 (file)
@@ -27,6 +27,6 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
        allow-query { none; };
 };
index 483b8530e462b351f91a7a87271ae972f9d2a3a5..058d223f44b9ef8528652f7c18da757699529fe0 100644 (file)
@@ -30,7 +30,7 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
                allow-query { any; };
        };
 
index 3da1036a93e49a75bac414af25784cc1b2f454bc..beeb9cd70e3c895797846200bf4fdacd70b507ae 100644 (file)
@@ -30,7 +30,7 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
                allow-query { none; };
        };
 };
index d5d205ae709e3711edfdffdca65e4844e08dd649..c1e77cb9bd84ea13d6cf47df30188e5fede40f1a 100644 (file)
@@ -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; };
        };
 };
diff --git a/bin/tests/system/allow-query/ns2/none.db b/bin/tests/system/allow-query/ns2/none.db
deleted file mode 100644 (file)
index 22a4865..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-; Copyright (C) Internet Systems Consortium, Inc. ("ISC")
-;
-; This Source Code Form is subject to the terms of the Mozilla Public
-; License, v. 2.0. If a copy of the MPL was not distributed with this
-; file, You can obtain one at http://mozilla.org/MPL/2.0/.
-;
-; See the COPYRIGHT file distributed with this work for additional
-; information regarding copyright ownership.
-
-$ORIGIN none.example.
-$TTL 300       ; 5 minutes
-@                       IN SOA mname1. . (
-                               1          ; serial
-                               20         ; refresh (20 seconds)
-                               20         ; retry (20 seconds)
-                               1814400    ; expire (3 weeks)
-                               3600       ; minimum (1 hour)
-                               )
-                       NS      ns2
-ns2                    A       10.53.0.2
-                       MX      10 mail
-
-a                      A       10.0.2.1
-mail                   A       10.0.2.2
diff --git a/bin/tests/system/allow-query/ns2/normal.db b/bin/tests/system/allow-query/ns2/normal.db
deleted file mode 100644 (file)
index 5045092..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-; Copyright (C) Internet Systems Consortium, Inc. ("ISC")
-;
-; This Source Code Form is subject to the terms of the Mozilla Public
-; License, v. 2.0. If a copy of the MPL was not distributed with this
-; file, You can obtain one at http://mozilla.org/MPL/2.0/.
-;
-; See the COPYRIGHT file distributed with this work for additional
-; information regarding copyright ownership.
-
-$ORIGIN normal.example.
-$TTL 300       ; 5 minutes
-@                       IN SOA mname1. . (
-                               1          ; serial
-                               20         ; refresh (20 seconds)
-                               20         ; retry (20 seconds)
-                               1814400    ; expire (3 weeks)
-                               3600       ; minimum (1 hour)
-                               )
-                       NS      ns2
-ns2                    A       10.53.0.2
-                       MX      10 mail
-
-a                      A       10.0.0.1
-mail                   A       10.0.0.2
diff --git a/bin/tests/system/allow-query/ns2/previous.db b/bin/tests/system/allow-query/ns2/previous.db
deleted file mode 100644 (file)
index 7fe5517..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-; Copyright (C) Internet Systems Consortium, Inc. ("ISC")
-;
-; This Source Code Form is subject to the terms of the Mozilla Public
-; License, v. 2.0. If a copy of the MPL was not distributed with this
-; file, You can obtain one at http://mozilla.org/MPL/2.0/.
-;
-; See the COPYRIGHT file distributed with this work for additional
-; information regarding copyright ownership.
-
-$ORIGIN previous.example.
-$TTL 300       ; 5 minutes
-@                       IN SOA mname1. . (
-                               1          ; serial
-                               20         ; refresh (20 seconds)
-                               20         ; retry (20 seconds)
-                               1814400    ; expire (3 weeks)
-                               3600       ; minimum (1 hour)
-                               )
-                       NS      ns2
-ns2                    A       10.53.0.2
-                       MX      10 mail
-
-a                      A       10.0.0.1
-mail                   A       10.0.0.2
index 3c606def886540cc23f7d5b60e27eaf420845922..f36e5db61130de48d784e2b45195646c56e28bac 100644 (file)
@@ -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`
 copy_setports ns2/named32.conf.in ns2/named.conf
 rndc_reload
-sleep 5
 
 echo_i "test $n: views key disallowed - query refused"
 ret=0
@@ -402,7 +385,6 @@ status=`expr $status + $ret`
 n=`expr $n + 1`
 copy_setports ns2/named33.conf.in ns2/named.conf
 rndc_reload
-sleep 5
 
 echo_i "test $n: views over options, views allow - query allowed"
 ret=0
@@ -416,7 +398,6 @@ status=`expr $status + $ret`
 n=`expr $n + 1`
 copy_setports ns2/named34.conf.in ns2/named.conf
 rndc_reload
-sleep 5
 
 echo_i "test $n: views over options, views disallow - query refused"
 ret=0
@@ -434,7 +415,6 @@ n=40
 n=`expr $n + 1`
 copy_setports ns2/named40.conf.in ns2/named.conf
 rndc_reload
-sleep 5
 
 echo_i "test $n: zone default - query allowed"
 ret=0
@@ -558,7 +538,6 @@ status=`expr $status + $ret`
 n=`expr $n + 1`
 copy_setports ns2/named53.conf.in ns2/named.conf
 rndc_reload
-sleep 5
 
 echo_i "test $n: views over options, views allow - query allowed"
 ret=0
@@ -572,7 +551,6 @@ status=`expr $status + $ret`
 n=`expr $n + 1`
 copy_setports ns2/named54.conf.in ns2/named.conf
 rndc_reload
-sleep 5
 
 echo_i "test $n: views over options, views disallow - query refused"
 ret=0
@@ -586,7 +564,6 @@ status=`expr $status + $ret`
 n=`expr $n + 1`
 copy_setports ns2/named55.conf.in ns2/named.conf
 rndc_reload
-sleep 5
 
 echo_i "test $n: zones over views, views allow - query allowed"
 ret=0
@@ -600,7 +577,6 @@ status=`expr $status + $ret`
 n=`expr $n + 1`
 copy_setports ns2/named56.conf.in ns2/named.conf
 rndc_reload
-sleep 5
 
 echo_i "test $n: zones over views, views disallow - query refused"
 ret=0
@@ -614,7 +590,6 @@ status=`expr $status + $ret`
 n=`expr $n + 1`
 copy_setports ns2/named57.conf.in ns2/named.conf
 rndc_reload
-sleep 5
 
 echo_i "test $n: zones over views, allow-query-on"
 ret=0