varnishtest "Test basic HTTP authentication: PLAIN" server s1 { rxreq txresp } -start varnish v1 -vcl+backend { import basicauth from "${vmod_topbuild}/src/.libs/libvmod_basicauth.so"; sub vcl_deliver { set resp.http.result = basicauth.match("${vmod_topsrc}/tests/htpasswd", "Basic bWV0aG9kLXBsYWluOmd1ZXNzbWUtcGxhaW4="); } } -start client c1 { txreq -url "/" rxresp expect resp.http.result == true } client c1 -run