From 7366fa0c02570f59c48c2496590d41cb31285571 Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Thu, 19 Oct 2023 17:14:56 +0200 Subject: [PATCH] - xfr-soa-tls, fix unit test for detecting changed zonefile and test for SOA probe sent over TLS. --- testdata/auth_axfr_tls.tdir/auth_axfr_tls.test | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/testdata/auth_axfr_tls.tdir/auth_axfr_tls.test b/testdata/auth_axfr_tls.tdir/auth_axfr_tls.test index c3ab9c3e5..59470c14b 100644 --- a/testdata/auth_axfr_tls.tdir/auth_axfr_tls.test +++ b/testdata/auth_axfr_tls.tdir/auth_axfr_tls.test @@ -4,6 +4,7 @@ # use .tpkg.var.test for in test variable passing [ -f .tpkg.var.test ] && source .tpkg.var.test +. ../common.sh PRE="../.." # do the test echo "> dig www.example.com." @@ -39,8 +40,10 @@ fi # update the zone mv example.com.zone example.com.zone.old mv example.com.zone2 example.com.zone +touch example.com.zone kill -1 $AUTH_PID -wait_server_up nsd.log "serial 4 is updated to 8" +#it would need to wait for the line to appear twice. +#wait_server_up nsd.log "zone example.com read with success" echo "> auth server updated" echo "> dig www.example.com." @@ -73,4 +76,12 @@ else exit 1 fi +if grep "auth zone example.com. soa probe sent to 127.0.0.1#unbound" unbound.log; then + echo "SOA sent over TLS" +else + echo "SOA not sent over TLS" + echo "Not OK" + exit 1 +fi + exit 0 -- 2.47.2