]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Remove bin/tests/system/logfileconfig/ns1/named.conf and add setup.sh
authorScott Mann <smann@isc.org>
Tue, 22 Mar 2011 19:16:25 +0000 (19:16 +0000)
committerScott Mann <smann@isc.org>
Tue, 22 Mar 2011 19:16:25 +0000 (19:16 +0000)
in order to resolve changing named.conf issue.  [RT #23687]

CHANGES
bin/tests/system/logfileconfig/clean.sh
bin/tests/system/logfileconfig/ns1/named.conf [deleted file]
bin/tests/system/logfileconfig/setup.sh [new file with mode: 0644]
bin/tests/system/logfileconfig/tests.sh

diff --git a/CHANGES b/CHANGES
index 6400e6cf0fafa6b96686244eee8ee8817d0e0744..66cfd28c91234b77a7bdf00e09cd0d9ae86f4467 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,7 @@
+3088.   [bug]           Remove bin/tests/system/logfileconfig/ns1/named.conf
+                        and add setup.sh in order to resolve changing
+                        named.conf issue.  [RT #23687]
+
 3071.  [bug]           has_nsec could be used unintialised in
                        update.c:next_active. [RT #20256]
 
index 4ff31068b5226394e3e63f9c659c9715bf01d304..a8fcffe25b94e45fc757e390be8d59f99e633e72 100644 (file)
@@ -14,7 +14,7 @@
 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 # PERFORMANCE OF THIS SOFTWARE.
 
-# $Id: clean.sh,v 1.2.8.3 2011/03/05 23:47:52 tbox Exp $
+# $Id: clean.sh,v 1.2.8.4 2011/03/22 19:16:24 smann Exp $
 
 #
 # Clean up after log file tests
@@ -22,5 +22,5 @@
 rm -f ns1/named.pid ns1/named.run
 rm -f ns1/named.memstats ns1/dig.out
 rm -f ns1/named_log ns1/named_pipe ns1/named_sym
+rm -f ns1/named.conf
 rm -rf ns1/named_dir
-cp ns1/named.plain ns1/named.conf
diff --git a/bin/tests/system/logfileconfig/ns1/named.conf b/bin/tests/system/logfileconfig/ns1/named.conf
deleted file mode 100644 (file)
index f18966d..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * Copyright (C) 2011  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.
- */
-
-/* $Id: named.conf,v 1.2.8.2 2011/03/04 17:12:19 smann Exp $ */
-
-options {
-        query-source address 10.53.0.1;
-        notify-source 10.53.0.1;
-        transfer-source 10.53.0.1;
-        port 5300;
-        pid-file "named.pid";
-        listen-on port 5300 {
-                10.53.0.1;
-        };
-        listen-on-v6 { none; };
-       recursion no;
-       notify yes;
-};
-
-logging {
-        channel default_log {
-          file "named_log";
-          print-time yes;
-        };
-        category default { default_log; default_debug; };
-        category lame-servers { null; };
-};
-
-controls {
-    inet 127.0.0.1 port 9593 allow {
-                         127.0.0.1/32; ::1/128; }
-                         keys { "rndc-key"; };
-};
-
-key "rndc-key" {
-        algorithm hmac-md5;
-        secret "Am9vCg==";
-};
-
-
-zone "." {
-       type master;
-       file "root.db";
-};
diff --git a/bin/tests/system/logfileconfig/setup.sh b/bin/tests/system/logfileconfig/setup.sh
new file mode 100644 (file)
index 0000000..dbbef31
--- /dev/null
@@ -0,0 +1,24 @@
+#!/bin/sh
+#
+# 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.
+
+# $Id: setup.sh,v 1.2.8.2 2011/03/22 19:16:24 smann Exp $
+
+SYSTEMTESTTOP=..
+. $SYSTEMTESTTOP/conf.sh
+
+sh clean.sh
+
+cp ns1/named.plain ns1/named.conf
index 1da41bfd068f7c7d82ce06c04f52cd1a4b057590..522b4025e141cd629cf35b450d32376b1d2c18a7 100644 (file)
@@ -14,7 +14,7 @@
 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 # PERFORMANCE OF THIS SOFTWARE.
 
-# $Id: tests.sh,v 1.2.8.3 2011/03/05 23:47:52 tbox Exp $
+# $Id: tests.sh,v 1.2.8.4 2011/03/22 19:16:25 smann Exp $
 
 SYSTEMTESTTOP=..
 . $SYSTEMTESTTOP/conf.sh
@@ -38,9 +38,6 @@ myNAMED="$NAMED -c ${THISDIR}/${CONFDIR}/named.conf -m record,size,mctx -d 99"
 #
 $PERL ../stop.pl . ns1
 
-# Make sure everything is cleaned up
-sh ./clean.sh
-
 cd $CONFDIR
 
 $myNAMED #> /dev/null 2>&1