27. varnishtest
# Create a server thread called "s1"
VCL server s1 {
Varnish
# Receive a request
rxreq
Varnish # Send a standard response (ACL)
txresp -hdr "Connection: close" -body "012345n"
}
# Start the server thread
server s1 -start
29. varnishtest
# Create a client thread called "c1"
VCL client c1 {
Varnish
# Send a request
txreq -url "/"
Varnish # Wait for a response (ACL)
rxresp
# Insist that it be a success
expect resp.status == 200
}