# 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."
# 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."
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