mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-27 20:25:55 -04:00
Handle multiple NSEC3PARAM records in tests
When transitioning from one NSEC3 chain to another it is legal for there to be multiple complete chains in the zone with multiple NSEC3PARAM records. Handle this intermediate state by checking for the expected length in the loop.
This commit is contained in:
parent
d5aa22ec74
commit
1a52dccd32
1 changed files with 2 additions and 2 deletions
|
|
@ -2720,7 +2720,7 @@ rndccmd 10.53.0.3 signing -nsec3param 1 0 0 auto inline.example >/dev/null 2>&1
|
|||
rndccmd 10.53.0.3 status >/dev/null || ret=1
|
||||
for i in 1 2 3 4 5 6 7 8 9 10; do
|
||||
salt=$(dig_with_opts +nodnssec +short nsec3param inline.example. @10.53.0.3 | awk '{print $4}')
|
||||
[ -n "$salt" ] && [ "$salt" != "-" ] && break
|
||||
[ "$salt" != "-" ] && [ "${#salt}" -eq 16 ] && break
|
||||
echo_i "sleeping ...."
|
||||
sleep 1
|
||||
done
|
||||
|
|
@ -2737,7 +2737,7 @@ rndccmd 10.53.0.3 signing -nsec3param 1 0 0 auto inline.example >/dev/null 2>&1
|
|||
rndccmd 10.53.0.3 status >/dev/null || ret=1
|
||||
for i in 1 2 3 4 5 6 7 8 9 10; do
|
||||
salt=$(dig_with_opts +nodnssec +short nsec3param inline.example. @10.53.0.3 | awk '{print $4}')
|
||||
[ -n "$salt" ] && [ "$salt" != "$oldsalt" ] && break
|
||||
[ "$salt" != "$oldsalt" ] && [ "${#salt}" -eq 16 ] && break
|
||||
echo_i "sleeping ...."
|
||||
sleep 1
|
||||
done
|
||||
|
|
|
|||
Loading…
Reference in a new issue