]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
forcing full sign with unreadable keys
authorMark Andrews <marka@isc.org>
Thu, 22 Dec 2011 11:57:30 +0000 (11:57 +0000)
committerMark Andrews <marka@isc.org>
Thu, 22 Dec 2011 11:57:30 +0000 (11:57 +0000)
bin/tests/system/autosign/tests.sh

index 0453d509afb8560cb0027871bd3d7962f1c80eea..e32109ea8ce637bd4471359c75a5dce46f1b9a48 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.41 2011/12/22 02:15:24 marka Exp $
+# $Id: tests.sh,v 1.42 2011/12/22 11:57:30 marka Exp $
 
 SYSTEMTESTTOP=..
 . $SYSTEMTESTTOP/conf.sh
@@ -1106,5 +1106,14 @@ n=`expr $n + 1`
 if [ $ret != 0 ]; then echo "I:failed"; fi
 status=`expr $status + $ret`
 
+echo "I:forcing full sign with unreadable keys ($n)"
+chmod 0 ns1/K.+*+*.{key,private}
+$RNDC -c ../common/rndc.conf -s 10.53.0.1 -p 9953 sign . 2>&1 | sed 's/^/I:ns1 /'
+$DIG $DIGOPTS . @10.53.0.1 dnskey > dig.out.ns1.test$n || ret=1
+grep "status: NOERROR" dig.out.ns1.test$n > /dev/null || ret=1
+n=`expr $n + 1`
+if [ $ret != 0 ]; then echo "I:failed"; fi
+status=`expr $status + $ret`
+
 echo "I:exit status: $status"
 exit $status