Commit 507ee809 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

More test-cases



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2696 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 3303962d
# $Id$
test "dual independent HTTP transactions"
server s1 -listen :9080 {
rxreq
expect req.request == PUT
expect req.proto == HTTP/1.0
expect req.url == "/foo"
txresp -proto HTTP/1.2 -status 201 -msg Foo
}
server s2 -listen :9081 {
rxreq
expect req.request == GET
expect req.proto == HTTP/1.1
expect req.url == "/"
txresp
}
server s1 -start
server s2 -start
client c1 -connect localhost:9080 {
txreq -req PUT -proto HTTP/1.0 -url /foo
rxresp
expect resp.proto == HTTP/1.2
expect resp.status == 201
expect resp.msg == Foo
}
client c2 -connect localhost:9081 {
txreq
rxresp
expect resp.proto == HTTP/1.1
expect resp.status == 200
expect resp.msg == Ok
}
client c1 -start
client c2 -start
client c1 -wait
client c2 -wait
server s1 -wait
server s2 -wait
# $Id$
test "dual shared server HTTP transactions"
server s1 -listen :9080 -repeat 2 {
rxreq
expect req.request == PUT
expect req.proto == HTTP/1.0
expect req.url == "/foo"
txresp -proto HTTP/1.2 -status 201 -msg Foo
}
server s1 -start
client c1 -connect localhost:9080 {
txreq -req PUT -proto HTTP/1.0 -url /foo
rxresp
expect resp.proto == HTTP/1.2
expect resp.status == 201
expect resp.msg == Foo
}
client c2 -connect localhost:9080 {
txreq -req PUT -proto HTTP/1.0 -url /foo
rxresp
expect resp.proto == HTTP/1.2
expect resp.status == 201
expect resp.msg == Foo
}
client c1 -start
client c2 -start
client c1 -wait
client c2 -wait
server s1 -wait
# $Id$
test "dual shared client HTTP transactions"
server s1 -listen :9080 {
rxreq
expect req.request == PUT
expect req.proto == HTTP/1.0
expect req.url == "/foo"
txresp -proto HTTP/1.2 -status 201 -msg Foo
}
server s2 -listen :9081 {
rxreq
expect req.request == GET
expect req.proto == HTTP/1.1
expect req.url == "/"
txresp
}
server s1 -start
server s2 -start
client c1 -connect localhost:9080 {
txreq -req PUT -proto HTTP/1.0 -url /foo
rxresp
expect resp.proto == HTTP/1.2
expect resp.status == 201
expect resp.msg == Foo
}
client c1 -run
client c1 -connect localhost:9081 {
txreq
rxresp
expect resp.proto == HTTP/1.1
expect resp.status == 200
expect resp.msg == Ok
}
client c1 -run
server s1 -wait
server s2 -wait
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