Add a system test for [GL #3777]

Add the 'ixfr-from-differences yes;' option to trigger a failed
zone postload operation when a zone is updated but the serial
number is not updated, then issue two successive 'rndc reload'
commands to trigger the bug, which causes an assertion failure.

(cherry picked from commit a73b67456e)
This commit is contained in:
Aram Sargsyan
2023-01-27 09:22:11 +00:00
committed by Arаm Sаrgsyаn
parent ed598a8c7a
commit 7e4d450c1e
5 changed files with 44 additions and 0 deletions

View File

@@ -2605,5 +2605,23 @@ wait_for_soa @10.53.0.4 tls1.example. dig.out.test$n || ret=1
if [ $ret -ne 0 ]; then echo_i "failed"; fi
status=$((status+ret))
##########################################################################
# GL #3777
nextpart ns4/named.run >/dev/null
n=$((n+1))
echo_i "Adding domain self.example. to catalog-self zone without updating the serial ($n)"
ret=0
echo "self.zones.catalog-self.example. 3600 IN PTR self.example." >> ns4/catalog-self.example.db
rndccmd 10.53.0.4 reload || ret=1
n=$((n+1))
echo_i "Issuing another rndc reload command after 1 second ($n)"
sleep 1
rndccmd 10.53.0.4 reload || ret=1
if [ $ret -ne 0 ]; then echo_i "failed"; fi
status=$((status+ret))
##########################################################################
echo_i "exit status: $status"
[ $status -eq 0 ] || exit 1