From 1301637cc594522496f1db7f227517d525b87d61 Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Wed, 19 Sep 2001 20:47:02 +0000 Subject: [PATCH] check that negative validation fails with a misconfigured trusted key --- bin/tests/system/dnssec/tests.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bin/tests/system/dnssec/tests.sh b/bin/tests/system/dnssec/tests.sh index b20b82e596..b37c9d658e 100644 --- a/bin/tests/system/dnssec/tests.sh +++ b/bin/tests/system/dnssec/tests.sh @@ -15,7 +15,7 @@ # NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION # WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -# $Id: tests.sh,v 1.33 2001/02/23 06:22:11 bwelling Exp $ +# $Id: tests.sh,v 1.34 2001/09/19 20:47:02 gson Exp $ SYSTEMTESTTOP=.. . $SYSTEMTESTTOP/conf.sh @@ -105,6 +105,14 @@ n=`expr $n + 1` if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` +echo "I:checking that negative validation fails with a misconfigured trusted key ($n)" +ret=0 +$DIG $DIGOPTS example. ptr @10.53.0.5 > dig.out.ns5.test$n || ret=1 +grep "SERVFAIL" dig.out.ns5.test$n > /dev/null || ret=1 +n=`expr $n + 1` +if [ $ret != 0 ]; then echo "I:failed"; fi +status=`expr $status + $ret` + # Check the insecure.secure.example domain (insecurity proof) echo "I:checking 2-server insecurity proof ($n)"