summaryrefslogtreecommitdiff
path: root/tests/auth-01.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auth-01.sh')
-rwxr-xr-xtests/auth-01.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/auth-01.sh b/tests/auth-01.sh
new file mode 100755
index 00000000..59d5e7cd
--- /dev/null
+++ b/tests/auth-01.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+test x$srcdir = x && srcdir=.
+
+. $srcdir/testbase.sh
+
+prepare_test
+
+cat > $TMPFILE <<EOF
+auth required, no token sent
+GET /server-status HTTP/1.0
+
+Status: 401
+EOF
+
+run_test