Commit 7ec02c31 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

test miss from pass



git-svn-id: http://www.varnish-cache.org/svn/trunk@2856 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 17a48c13
# $Id$
test "Test pass from miss"
server s1 {
rxreq
expect req.url == "/foo"
txresp -body foobar
rxreq
expect req.url == "/foo"
txresp -body foobar1
} -start
varnish v1 -vcl+backend {
sub vcl_miss {
pass;
}
} -start
client c1 {
txreq -url "/foo"
rxresp
expect resp.status == 200
expect resp.http.content-length == 6
expect resp.http.x-varnish == "1001"
txreq -url "/foo"
rxresp
expect resp.status == 200
expect resp.http.content-length == 7
expect resp.http.x-varnish == "1002"
}
client c1 -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