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

A couple more basic tests: pass and cache hit



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2731 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent bc71c909
# $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
# $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
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