git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2854
d4fa192b-c00b-0410-8231-
f00ffab90ce4
--- /dev/null
+# $Id$
+
+test "Test pass from hit"
+
+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_hit {
+ 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