Commit b1c449fb authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add the first 'm' class test, to exercise the vmod and std vmod.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5182 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent a7e13b6a
# $Id$
test "Test std vmod"
server s1 {
rxreq
txresp -hdr "foo: bAr" -hdr "bar: fOo" -bodylen 4
} -start
varnish v1 -vcl+backend {
import std from "${topsrc}/lib/libvmod_std/.libs/libvmod_std.so.1" ;
sub vcl_deliver {
set resp.http.foo = std.toupper(resp.http.foo);
set resp.http.bar = std.tolower(resp.http.bar);
}
} -start
client c1 {
txreq -url "/bar"
rxresp
expect resp.status == 200
expect resp.http.content-length == "4"
expect resp.http.foo == "BAR"
expect resp.http.bar == "foo"
} -run
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment