]> 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 22:06:32 +0000 (14:06 -0800)
- grep in the log to see if configuration is finished rather
  than sleeping for 5 seconds

(cherry picked from commit a9b6bed6af61b33ce58aebe90e5670f0ad569568)

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 95% 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 75f555bb234597b7c9813c1f19c459e24c9fc988..455e35de0a08af29e045bdf097b248e8c4264938 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 2b25f72e3172cbf75940c094dc88c72711f8d144..13ea8374fdf65703516a3b1bc94a8bf547251d23 100644 (file)
@@ -44,16 +44,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
+# the definition of PARALLELDIRS in conf.sh. Note: longer-running tests
 # such as serve-stale and rpzrecurse are scheduled first to get more
 # benefit from parallelism.
-PARALLEL = allow-query rpzrecurse \
-          acl additional addzone autosign \
+PARALLEL = rpzrecurse dnssec \
+          acl additional addzone allow-query 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 \
index 2be4c01e737516bb21372e57af5257db36a9b5b9..baeb086087609ca41b386ef91f4a20aece8adce6 100644 (file)
@@ -14,4 +14,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 d6a65b4..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-; Copyright (C) 2010, 2016  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/.
-
-$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 603971e..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-; Copyright (C) 2010, 2016  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/.
-
-$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 3c4ec53..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-; Copyright (C) 2010, 2016  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/.
-
-$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 b7f46f6..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-; Copyright (C) 2010, 2016  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/.
-
-$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 8e0979c..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-; Copyright (C) 2010, 2016  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/.
-
-$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 f5fd649..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-; Copyright (C) 2010, 2016  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/.
-
-$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 53ce123..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-; Copyright (C) 2010, 2016  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/.
-
-$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 95%
rename from bin/tests/system/allow-query/ns2/aclallow.db
rename to bin/tests/system/allow-query/ns2/generic.db
index 9e75a5be08097c4c1d96c531cdcf975f370bdfd9..e0b77382e97ffe9f7d20f34b428e3c9585b8c8fc 100644 (file)
@@ -4,7 +4,7 @@
 ; 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/.
 
-$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 76f8964..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-; Copyright (C) 2010, 2016  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/.
-
-$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 160f140..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-; Copyright (C) 2010, 2016  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/.
-
-$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 7ad333cdb95c9d36266f7ed54472d860fec4281b..a5954463b09a967af460c673c785453d195ccb37 100644 (file)
@@ -25,5 +25,5 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
 };
index e73d5c8a2f8d0b9635bda8349af6b92411856f42..da05741715adf5ebcd14aa8bce273fa77b28c681 100644 (file)
@@ -26,5 +26,5 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
 };
index ec8b7f2fdeca0ce6978d87307be4270097493938..19100a7164bff6dbbf3de2b06b6a71f614dc9b8e 100644 (file)
@@ -26,5 +26,5 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
 };
index 69e1df63a8fa40de95995d4b7bc6e60c9355b14c..76567c85af729fa608e3e2bac5972e44e12efb3a 100644 (file)
@@ -26,5 +26,5 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
 };
index 6430bb550dc6eff3c24c5616088d92e2f27f50d4..d7b824d0ac5b23a21499cf875e9d6912c3bac3d5 100644 (file)
@@ -26,5 +26,5 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
 };
index 10f12ce43b649069d9d06ef8ec3aaa05135ed585..f794716a90490a9cf1e6b5d48ecd1a69f6ae2bfc 100644 (file)
@@ -26,5 +26,5 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
 };
index b08dc7a0597c189e96b98f542898f74054d89765..cb254e30263cb632e0c7f4e6647090a1f7a936f9 100644 (file)
@@ -28,5 +28,5 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
 };
index 09ad849ee7f37209b973b785768353effd65290d..9b2aa443824e7693c42449ddc8ab6b022536b800 100644 (file)
@@ -28,5 +28,5 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
 };
index 6f828a9c475bc44ca60a4d105803b76a4d31eb30..b95774660649cd19e3ccf1b08bcdfa5ffc836de9 100644 (file)
@@ -28,5 +28,5 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
 };
index 3e6e560eb7b1197fa9640375833c121d92f2623d..a0dbe97751f57a8696958e18148cf10d557fe3b2 100644 (file)
@@ -31,5 +31,5 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
 };
index a5d0becb9fd517681fbe0b2065494e5e2d3577a3..62e1a5720c0f80b60e21b2f48f4751b11d595f7f 100644 (file)
@@ -37,5 +37,5 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
 };
index ee3a6da7face4547925287eb86d1f63e12c5e14b..9d88de30cc8111e112da5f9f694735a6804c53aa 100644 (file)
@@ -31,5 +31,5 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
 };
index 6a5ec2406c3e8cef7bdc35045bf6288de4fc599b..a4e5562a0014792513a6cbc77dfab9c03660f9f3 100644 (file)
@@ -27,6 +27,6 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 };
index 781af58a71b053e45a5165f987baa6600764c591..99c624060da9a8d0a5aa6f9e2491771ab91ebdad 100644 (file)
@@ -29,7 +29,7 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 
 };
index 6ede4dcd8602804d1d9dcd21f40afa7800be96e5..c6e31fd93707286f9d10c7792a69e4865768be6a 100644 (file)
@@ -29,6 +29,6 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 };
index 22c0decc3fb35adbbba19c90819b1b91f994de32..0650227efff915592b8582e3a956f10995a07715 100644 (file)
@@ -29,6 +29,6 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 };
index 6133f3590da7028f756843c7c5b4baf103c594f3..a48bb890918ba7dcda6b3a3e47aa858f34d5b242 100644 (file)
@@ -29,6 +29,6 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 };
index bcc43d4f22233a6e3dde95b6f411ea082ce60096..e6f102691e96d9f9b6b807d07e31f2b74e4e8172 100644 (file)
@@ -29,6 +29,6 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 };
index bd380c8a5272278243f5f4daa7c8fdcfcd5f910b..71a35256c657471a9d981af20ba68961e4154b09 100644 (file)
@@ -31,7 +31,7 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 
 };
index fbe613d30e98d3ee4b538f5caa1ccf18be8a9035..9e5835c4246d8fdab48aa8ea372f72d0a79f529a 100644 (file)
@@ -31,6 +31,6 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 };
index 266fa1c28be0c846cee5bad3d29cf16f96aae4a9..a3930aa8e61f9701663d314cf8df81bf65b1585e 100644 (file)
@@ -31,6 +31,6 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 };
index 25aabe3df441cfa3944a410ef1ed6f5d22b21302..446f7441847ec5cf511fd861b0490a21ac1fb79e 100644 (file)
@@ -34,6 +34,6 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 };
index 3282b2ee36a6a896d5b70864a16a937b9214e3a2..f4642fef4e538d292b712e5c007a7060acd6f314 100644 (file)
@@ -41,6 +41,6 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 };
index c6759bd47f42864a663b47898d83156538d53591..2a94ad9a82a13470d6ee44c01a4c3ca5388b2dc0 100644 (file)
@@ -34,6 +34,6 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 };
index e21bbd59de009b6341b9d7b8f0047472db658786..86ec38ee668aae4df85843d46b179814bafaf13d 100644 (file)
@@ -30,7 +30,7 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 
 };
index 8c050e5619ff277af94fa346c462fec6eed7e83f..b5a6e53a2a342004262f7757143737fa9248941a 100644 (file)
@@ -30,6 +30,6 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 };
index fdad8791a35705f5167c738beb4385aa9421e0b2..5badaaeee09867837e03db3018d91858e469ae1c 100644 (file)
@@ -39,66 +39,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 9e6b0aebc130ef0b145aaf9e35c9266e8344c469..403118da2bfa21e2608901c97d395b9794005d95 100644 (file)
@@ -26,6 +26,6 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
        allow-query { any; };
 };
index 093d04edfe02557abfe3a8f77de9077de22c3b0a..729646c9475436b5e33445c2b0bef934791d4672 100644 (file)
@@ -26,6 +26,6 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
        allow-query { none; };
 };
index 3ce0c39cf3d70b193504feb06669ab2bd55aaea3..99e186685e3b1e8937631584e930b0adc117616d 100644 (file)
@@ -29,7 +29,7 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
                allow-query { any; };
        };
 
index 03b171c329046716508387de366e2ce30f6d884a..6a779a08cdb4ab583bd0bfde7da08e5f28a8afa5 100644 (file)
@@ -29,7 +29,7 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
                allow-query { none; };
        };
 };
index 7bd9f7a5bb92897d23b2d68099c252a2abe5d086..ea41e94e049f0e632ab977304675e46c14279535 100644 (file)
@@ -28,12 +28,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 3d090d5..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-; Copyright (C) 2010, 2016  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/.
-
-$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 3dc22b9..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-; Copyright (C) 2010, 2016  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/.
-
-$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 5ef317d..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-; Copyright (C) 2010, 2016  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/.
-
-$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 4135399cfe6c6349c9c6883bb01a9b78f3a27eda..587c19923c74bcccac9b56cf2c1bf2a74ca570b2 100644 (file)
@@ -54,11 +54,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"
@@ -73,7 +79,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
@@ -87,7 +92,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
@@ -101,7 +105,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
@@ -115,7 +118,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
@@ -129,7 +131,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
@@ -143,7 +144,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
@@ -157,7 +157,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
@@ -172,7 +171,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
@@ -186,7 +184,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
@@ -200,7 +197,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
@@ -214,7 +210,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
@@ -231,7 +226,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
@@ -245,7 +239,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
@@ -259,7 +252,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
@@ -273,7 +265,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
@@ -287,7 +278,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
@@ -301,7 +291,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
@@ -315,7 +304,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
@@ -329,7 +317,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
@@ -343,7 +330,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
@@ -357,7 +343,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
@@ -371,7 +356,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
@@ -385,7 +369,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
@@ -399,7 +382,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
@@ -413,7 +395,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
@@ -431,7 +412,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
@@ -555,7 +535,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
@@ -569,7 +548,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
@@ -583,7 +561,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
@@ -597,7 +574,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
@@ -611,7 +587,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