summaryrefslogtreecommitdiff
path: root/testdata/auth_https.tdir
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2022-07-13 13:02:01 +0000
committerCy Schubert <cy@FreeBSD.org>2022-07-13 13:02:01 +0000
commitd57351465531b38689892ec862de2725b52842dd (patch)
tree7363167508f031fdb90b9091c07a065f3903325d /testdata/auth_https.tdir
parent5f9f82264b91e041df7cba2406625146e7268ce4 (diff)
Diffstat (limited to 'testdata/auth_https.tdir')
-rw-r--r--testdata/auth_https.tdir/auth_https.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/testdata/auth_https.tdir/auth_https.test b/testdata/auth_https.tdir/auth_https.test
index cff93544b14a..c2471b7d6439 100644
--- a/testdata/auth_https.tdir/auth_https.test
+++ b/testdata/auth_https.tdir/auth_https.test
@@ -5,6 +5,7 @@
[ -f .tpkg.var.test ] && source .tpkg.var.test
PRE="../.."
+. ../common.sh
# do the test
echo "> dig www.example.com."
dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
@@ -48,4 +49,15 @@ else
exit 1
fi
+# Test that notify is allowed from the webserver address
+get_ldns_notify
+echo "> ldns-notify -z example.com"
+$LDNS_NOTIFY -p $UNBOUND_PORT -z example.com 127.0.0.1 | tee outfile
+if grep "rcode: REFUSED" outfile; then
+ echo "Not OK"
+ exit 1
+else
+ echo "OK"
+fi
+
exit 0