diff options
Diffstat (limited to 'tests/plain.at')
-rw-r--r-- | tests/plain.at | 13 |
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 @@ -25,8 +25,21 @@ AT_VARNISHTEST([ rxresp expect resp.http.result == true ], [ 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 |