git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2731
d4fa192b-c00b-0410-8231-
f00ffab90ce4
--- /dev/null
+# $Id$
+
+test "Check that a pass transaction works"
+
+server s1 -repeat 1 {
+ rxreq
+ txresp \
+ -hdr "Connection: close" \
+ -body "012345\n"
+}
+
+varnish v1 -vcl+backend {
+ sub vcl_recv {
+ pass;
+ }
+} -start
+
+server s1 -start
+
+client c1 {
+ txreq -url "/"
+ rxresp
+ expect resp.status == 200
+}
+
+client c1 -run
--- /dev/null
+# $Id$
+
+test "Check that a cache fetch + hit transaction works"
+
+server s1 {
+ rxreq
+ txresp \
+ -hdr "Connection: close" \
+ -body "012345\n"
+}
+
+varnish v1 -vcl+backend { } -start
+
+server s1 -start
+
+client c1 {
+ txreq -url "/"
+ rxresp
+ expect resp.status == 200
+}
+
+client c1 -run
+client c1 -run