diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2017-10-25 12:42:31 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2017-10-25 12:42:31 +0300 |
commit | b1c79452b9f4cfe5ad432a7757f16d64e7050830 (patch) | |
tree | a7b9183bdeea93abae8190c71efb64ce5f67accc /tests/crypt.at | |
parent | 09f076dfdab4d7b7a71bbac96848260db8f55511 (diff) | |
download | vmod-basicauth-b1c79452b9f4cfe5ad432a7757f16d64e7050830.tar.gz vmod-basicauth-b1c79452b9f4cfe5ad432a7757f16d64e7050830.tar.bz2 |
Test for the presence of crypt.h and crypt_r call. Improve the testsuite.
Diffstat (limited to 'tests/crypt.at')
-rw-r--r-- | tests/crypt.at | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/crypt.at b/tests/crypt.at index b5e12f7..7ffbfc0 100644 --- a/tests/crypt.at +++ b/tests/crypt.at @@ -28,5 +28,17 @@ AT_VARNISHTEST([ [ rxreq txresp ]) +AT_VARNISHTEST([ + sub vcl_deliver { + set resp.http.result = basicauth.match("\${vmod_topsrc}/tests/htpasswd", "Basic bWV0aG9kLWNyeXB0Ondyb25nLXBhc3N3b3JkCg=="); + } +], +[ txreq -url "/" + rxresp + expect resp.http.result == false +], +[ rxreq + txresp +]) AT_CLEANUP |