]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- xfr-soa-tls, fix unit test for detecting changed zonefile and test xfr-soa-tls
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 19 Oct 2023 15:14:56 +0000 (17:14 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 19 Oct 2023 15:14:56 +0000 (17:14 +0200)
  for SOA probe sent over TLS.

testdata/auth_axfr_tls.tdir/auth_axfr_tls.test

index c3ab9c3e5623c6402df3bc0f9c12e34c1b80eae1..59470c14bf0a08da49961bf3706ff92f8409ea9b 100644 (file)
@@ -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