aboutsummaryrefslogtreecommitdiff
path: root/tests/plain.at
diff options
context:
space:
mode:
Diffstat (limited to 'tests/plain.at')
-rw-r--r--tests/plain.at13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/plain.at b/tests/plain.at
index e6b056a..7aad896 100644
--- a/tests/plain.at
+++ b/tests/plain.at
@@ -28,5 +28,18 @@ AT_VARNISHTEST([
[ rxreq
txresp
])
+
+AT_VARNISHTEST([
+ sub vcl_deliver {
+ set resp.http.result = basicauth.match("\${vmod_topsrc}/tests/htpasswd", "Basic bWV0aG9kLXBsYWluOndyb25nLXBhc3N3b3JkCg==");
+ }
+],
+[ txreq -url "/"
+ rxresp
+ expect resp.http.result == false
+],
+[ rxreq
+ txresp
+])
AT_CLEANUP

Return to:

Send suggestions and report system problems to the System administrator.