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

(cherry picked from commit a9b6bed6af61b33ce58aebe90e5670f0ad569568)
(cherry picked from commit 37a6bb004c5a7b98ce267a5d4b803607cd0f882d)

48 files changed:
CHANGES
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 97% 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 ee355cda8397035920c60ca4dea2fe98e1515aa2..a70e45dfa5d89958f992fdc6a74721b2d3498dc4 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 a1aa924a508d923900c119363d32aa5fdb9c8a9a..e45f3ce3dee32718f53636a2c4414167ae1bce9f 100644 (file)
@@ -21,4 +21,4 @@
 rm -f dig.out.*
 rm -f ns2/named.conf ns2/controls.conf
 rm -f */named.memstats
-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 018f36d..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-; Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
-;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
-
-$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 39ef2f9..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-; Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
-;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
-
-$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 0c931e4..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-; Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
-;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
-
-$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 fbf0469..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-; Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
-;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
-
-$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 c36ca9a..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-; Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
-;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
-
-$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 28d7b0f..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-; Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
-;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
-
-$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 a3c0b32..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-; Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
-;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
-
-$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 97%
rename from bin/tests/system/allow-query/ns2/aclallow.db
rename to bin/tests/system/allow-query/ns2/generic.db
index b7cca0755abf8808e8e8f67b3880a0d4495372f0..f5b1c5d492b3134abcd998a9e93666689a63984e 100644 (file)
@@ -12,7 +12,7 @@
 ; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 ; PERFORMANCE OF THIS SOFTWARE.
 
-$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 1dcab86..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-; Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
-;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
-
-$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 0c7c30c..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-; Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
-;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
-
-$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 ba61fbccdc9741a16c2b64826021c974ec56e388..3b4a6c9c627259a9f24fbc38ad7ab9f2a20ffaa2 100644 (file)
@@ -31,5 +31,5 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
 };
index f764415d0788ebd2ac0e84bc54791cd63ead61d2..4278b9756bcacb96aab31c17ef355e223efb3901 100644 (file)
@@ -32,5 +32,5 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
 };
index 2afeeef8b17da81750696223741b8036e7484ad4..04c5220dc2051a6bdb89c903b74155a8a7250e23 100644 (file)
@@ -32,5 +32,5 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
 };
index c7ffa8471ce3bc7a8572ef1ed25d04cd25d5e986..74441132d6906ae66be82bf78e775e106c209a4c 100644 (file)
@@ -32,5 +32,5 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
 };
index 6ec5e83b56d3a835dc333104dd3ec97a8a7a6a45..afb96c170b5720b08ea83f3a2351f1496ddda9bb 100644 (file)
@@ -32,5 +32,5 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
 };
index e5b36eba3c2a7618cd6f54317b4eec91ca518794..f6c59cb00a7eff3bacc837665d6e35d6778d610a 100644 (file)
@@ -32,5 +32,5 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
 };
index 9b5c76109fe05ac7e9f8488a523a6ebd249b0f0d..2e2d17d0c1e6f6fd24d458d7b17c2154f1105941 100644 (file)
@@ -34,5 +34,5 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
 };
index 79ffebbe5a2fc9dcbc042d7fcf34e23fb7a8c165..d014dcf2720519ab210e7b9c0775a87ea46d044c 100644 (file)
@@ -34,5 +34,5 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
 };
index 2b739e8ded56d7f731669cbda6fd3c519c50d66b..211e6f763033fb8e9c6107c53d3231d2847936a2 100644 (file)
@@ -34,5 +34,5 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
 };
index 6c803635617baae24a97af141818aa3a682ad108..af376b28eb30268c785520975ff719719d7cb206 100644 (file)
@@ -37,5 +37,5 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
 };
index aec64f52f8402cb4bc4e1d8ea76ef6e2ba9108a6..93f48023bc8e68a0f72927969dd6a5b918cbff30 100644 (file)
@@ -43,5 +43,5 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
 };
index 4aa67dae835de496c75c7766b78df0147f11b24f..6ca6d465d00bf25a5233274e1f080c10248a0688 100644 (file)
@@ -37,5 +37,5 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
 };
index 797ca0a9e0f7f8a72fb9377145b4f9cc600c4821..46c925dfcc71e7d51e88e81e49242b5111b93f7d 100644 (file)
@@ -33,6 +33,6 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 };
index 8a61c94b1df1878caee036670a5998d609e8ebf3..16068721b41b26a2153cdc1eaeb2d24749d5a727 100644 (file)
@@ -35,7 +35,7 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 
 };
index 44aab0d7599e3fcf9d804670d4b620cc178d6b6a..66ef60b702732487f5e0e88901d519d898ad6a13 100644 (file)
@@ -35,6 +35,6 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 };
index 3b54538d21e139e01905774e38b79523913b36bc..c8f72c78dbda52d292e1d0872193b4454a41c7ae 100644 (file)
@@ -35,6 +35,6 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 };
index 15cae6a347113e36ee71a840f0ac0cf4f4ab4b3d..78ffae965ed4a7c5abfd6956b47f1a6e16eb891c 100644 (file)
@@ -35,6 +35,6 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 };
index 9ad831f5c37a5f56acfd48b2c82cfd8abab2e7f9..be0440fb59164dff4ab28806d976cbec744c8515 100644 (file)
@@ -35,6 +35,6 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 };
index c62f3607acc961acd6acc13c8df2465f49c2c944..3183ac48c881437fb60b76b55827cfde51b1923d 100644 (file)
@@ -37,7 +37,7 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 
 };
index b9d7d2bd0ca82aae1c1b7d4bb9c21a712c1ca870..7704a72b9a43638433d6300345544cdd8e1ef3e0 100644 (file)
@@ -37,6 +37,6 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 };
index 8c482662921e34e407300cbffd5b58b0be37f2d9..e7932318f85501899fc9523e3ffcac6155b5d719 100644 (file)
@@ -37,6 +37,6 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 };
index 94ed507ac724358af36bbb718e4f073b63fe731a..eb771698a4e02fc23f19a65af301fb4e2c70c8d8 100644 (file)
@@ -40,6 +40,6 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 };
index aece008dd7cdeb29e950c0e9501b2ddf8ed773b9..f915ae0b4942507bbc949455f7d194affe80acac 100644 (file)
@@ -47,6 +47,6 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 };
index 9d28c73bf3784536d43127e71991246d53049f86..4b6ca4407959fd7530dcdcbe066a3c73942cb5b4 100644 (file)
@@ -40,6 +40,6 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 };
index 4d0381ba478ad48ab2f3ea4760e1f01124a6e3ad..f6111accbd052eaf6911ff61013ed77c92d4174b 100644 (file)
@@ -36,7 +36,7 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 
 };
index 1a6e6a4af8c5479d0179c6060aa909795f67060f..d970e015c7e6c5a277f308c64c4f502ceedcff22 100644 (file)
@@ -36,6 +36,6 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
        };
 };
index 3ed8646290bfffd940b3b7b9299263462a4e547c..6194b91ce3ffad7b6dd1124e39a24cacf162fe37 100644 (file)
@@ -45,66 +45,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 951b08456c2e8183616f724bce895033dc6b4bcc..c71c0958a2f7ae28f779c503cb35acd5bd6385c6 100644 (file)
@@ -32,6 +32,6 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
        allow-query { any; };
 };
index 036a6cc852a178654eb907ca12eac967a08073a2..55478326392c6736e113e6565d43da088be00bbf 100644 (file)
@@ -32,6 +32,6 @@ zone "." {
 
 zone "normal.example" {
        type master;
-       file "normal.db";
+       file "generic.db";
        allow-query { none; };
 };
index 7391dfee297f4e99d00ea427153b5393aa3595ac..e4c006ec3112a70a072cc68ffdf1940a05d74e34 100644 (file)
@@ -35,7 +35,7 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
                allow-query { any; };
        };
 
index 68d4649de6b907404d4f8ed85cbc7b0963eec1df..b18d903e2025fe9cdbb434d1eb31f04a4649dd7b 100644 (file)
@@ -35,7 +35,7 @@ view "internal" {
 
        zone "normal.example" {
                type master;
-               file "normal.db";
+               file "generic.db";
                allow-query { none; };
        };
 };
index 4e1c142c304e8a517f61d670ac382134baa30962..4614e318230393c463737ed5b2b99620688ed60c 100644 (file)
@@ -34,12 +34,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 6ecb4a0..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-; Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
-;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
-
-$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 52deb05..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-; Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
-;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
-
-$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 6bf2d38..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-; Copyright (C) 2010  Internet Systems Consortium, Inc. ("ISC")
-;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
-
-$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 9f5c80091f8a72d77605cb4fc2601f3961f62f5c..1643e9b9a6c8b145ff83ad436c4fcf32b6ffc0af 100644 (file)
@@ -62,11 +62,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"
@@ -81,7 +87,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
@@ -95,7 +100,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
@@ -109,7 +113,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
@@ -123,7 +126,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
@@ -137,7 +139,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
@@ -151,7 +152,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
@@ -165,7 +165,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
@@ -180,7 +179,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
@@ -194,7 +192,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
@@ -208,7 +205,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
@@ -222,7 +218,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
@@ -239,7 +234,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
@@ -253,7 +247,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
@@ -267,7 +260,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
@@ -281,7 +273,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
@@ -295,7 +286,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
@@ -309,7 +299,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
@@ -323,7 +312,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
@@ -337,7 +325,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
@@ -351,7 +338,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
@@ -365,7 +351,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
@@ -379,7 +364,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
@@ -393,7 +377,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
@@ -407,7 +390,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
@@ -421,7 +403,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
@@ -439,7 +420,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
@@ -563,7 +543,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
@@ -577,7 +556,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
@@ -591,7 +569,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
@@ -605,7 +582,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
@@ -619,7 +595,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