2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-02 15:45:25 +00:00

clarify "stage 1" and "stage 2" in autosign test

This commit is contained in:
Curtis Blackburn
2017-12-05 09:59:21 -08:00
parent ecafa2ae50
commit c7f663ca80

8
bin/tests/system/autosign/tests.sh Normal file → Executable file
View File

@@ -89,7 +89,9 @@ status=`expr $status + $ret`
# #
# Check that zone is initially signed with a ZSK and not a KSK. # Check that zone is initially signed with a ZSK and not a KSK.
# #
echo "I:check that zone with active and inactive ZSK and active KSK is properly resigned after the active ZSK is deleted - stage 1 ($n)" echo "I:check that zone with active and inactive ZSK and active KSK is properly"
echo "I: resigned after the active ZSK is deleted - stage 1: Verify that zone"
echo "I: is initially signed with a ZSK and not a KSK. ($n)"
ret=0 ret=0
$DIG $DIGOPTS @10.53.0.3 axfr inaczsk3.example > dig.out.ns3.test$n $DIG $DIGOPTS @10.53.0.3 axfr inaczsk3.example > dig.out.ns3.test$n
kskid=`awk '$4 == "DNSKEY" && $5 == 257 { print }' dig.out.ns3.test$n | kskid=`awk '$4 == "DNSKEY" && $5 == 257 { print }' dig.out.ns3.test$n |
@@ -1267,7 +1269,9 @@ status=`expr $status + $ret`
# #
# Check that zone is now signed with the KSK. # Check that zone is now signed with the KSK.
# #
echo "I:check that zone with active and inactive ZSK and active KSK is properly resigned after the active ZSK is deleted - stage 2 ($n)" echo "I:check that zone with active and inactive ZSK and active KSK is properly"
echo "I: resigned after the active ZSK is deleted - stage 2: Verify that zone"
echo "I: is now signed with the KSK. ($n)"
ret=0 ret=0
$DIG $DIGOPTS @10.53.0.3 axfr inaczsk3.example > dig.out.ns3.test$n $DIG $DIGOPTS @10.53.0.3 axfr inaczsk3.example > dig.out.ns3.test$n
kskid=`awk '$4 == "DNSKEY" && $5 == 257 { print }' dig.out.ns3.test$n | kskid=`awk '$4 == "DNSKEY" && $5 == 257 { print }' dig.out.ns3.test$n |