From: Mark Andrews Date: Fri, 11 Aug 2023 03:28:05 +0000 (+1000) Subject: Wait for slow zone transfer to complete before ending test X-Git-Tag: v9.19.18~70^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a60e6837fb29def200e011b9a29ba850314e29db;p=thirdparty%2Fbind9.git Wait for slow zone transfer to complete before ending test This allows the statistics channel to be viewed in a browser while the transfer is in progress. Also set the transfer format to one-answer to extend the amount of time the re-transfer takes. When running the statschannel test on its own, use to see the output. Note: the port is subject to future change. --- diff --git a/bin/tests/system/statschannel/ns1/named.conf.in b/bin/tests/system/statschannel/ns1/named.conf.in index 52fd9fd855e..52e8a7339f4 100644 --- a/bin/tests/system/statschannel/ns1/named.conf.in +++ b/bin/tests/system/statschannel/ns1/named.conf.in @@ -37,6 +37,10 @@ controls { inet 10.53.0.1 port @CONTROLPORT@ allow { any; } keys { rndc_key; }; }; +server 10.53.0.3 { + transfer-format one-answer; +}; + zone "example" { type primary; file "example.db"; diff --git a/bin/tests/system/statschannel/tests.sh b/bin/tests/system/statschannel/tests.sh index c48d0ebffae..6772ac8d1a6 100644 --- a/bin/tests/system/statschannel/tests.sh +++ b/bin/tests/system/statschannel/tests.sh @@ -721,5 +721,12 @@ if [ $ret != 0 ]; then echo_i "failed"; fi status=$((status + ret)) n=$((n + 1)) +echo_i "Wait for slow zone transfer to complete ($n)" +ret=0 +wait_for_log 20 "zone example/IN: zone transfer finished: success" ns3/named.run || ret=1 +if [ $ret != 0 ]; then echo_i "failed"; fi +status=$((status + ret)) +n=$((n + 1)) + echo_i "exit status: $status" [ $status -eq 0 ] || exit 1