[Varnish] #73: Regression test syntax
Varnish
varnish-bugs at projects.linpro.no
Tue Nov 21 10:48:41 CET 2006
#73: Regression test syntax
--------------------+-------------------------------------------------------
Reporter: phk | Owner: des
Type: defect | Status: new
Priority: normal | Milestone:
Component: build | Version:
Severity: normal | Keywords:
--------------------+-------------------------------------------------------
Here is a mock-up for the probelem in ticket #56:
{{{
# Load a suitable VCL into varnish. Other verbs: load_vcl, use_vcl match
CLI syntax.
test_vcl {
sub vcl_recv {
pass;
}
}
# Client sends a request. Not sure about argument here.
# alternative could be: client_send [-get] -proto 1.0 /
client_send "GET / HTTP/1.0"
# Server receives a request (default timeout)
server_recv
# Server sends reply.
# Alternate syntax: server_send [-200] -proto 1.1 -chunked "This" "Is"
"A" "Test"
server_send "HTTP/1.1 200 OK" -chunked "This" "Is" "A" "Test"
# Client receives reply
client_recv
# Check that there is no Transfer-Encoding header
client_header !Transfer-Encoding
# Check that the length matches what the server sent
client_match length
# Check that the data matches what the server sent
client_match data
}}}
--
Ticket URL: <http://varnish.projects.linpro.no/ticket/73>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list