# Copyright (C) 2012, 2013, 2016, 2017 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/.
# $Id$
echo "I:failed";
status=1;
}
n=0
status=0
do
n=`expr $n + 1`
echo "I:checking supposedly good zone: $zone ($n)"
ret=0
*) only=;;
esac
done
do
n=`expr $n + 1`
echo "I:checking supposedly bad zone: $zone ($n)"
ret=0
dumpit=0
*) only=;;
esac
*.dnskeyonly)
expect1="DNSKEY is not signed"
;;
*.expired)
expect1="signature has expired"
expect2="No self-signed .*DNSKEY found"
;;
expect1="signature has expired"
expect2="No self-signed .*DNSKEY found"
;;
expect1="unexpected NSEC RRset at"
;;
expect1="Bad NSEC record for.*, next name mismatch"
;;
expect1="bit map mismatch"
;;
expect1="Missing NSEC3 record for";
;;
unsigned)
expect1="Zone contains no DNSSEC keys"
;;
expect1="Expected and found NSEC3 chains not equal";
;;
*)
dumpit=1
;;
esac
done
n=`expr $n + 1`
echo "I:checking error message when -o is not used and a SOA record not at top of zone is found ($n)"
ret=0
# When -o is not used, origin is set to zone file name, which should cause an error in this case
n=`expr $n + 1`
echo "I:checking error message when an invalid -o is specified and a SOA record not at top of zone is found ($n)"
ret=0
echo "I:exit status: $status"