Modify b62.vtc to trigger #33

parent 7dc2a23a
......@@ -2,7 +2,9 @@ varnishtest "Test that we properly wait for certain 304 cases"
server s1 {
rxreq
txresp -hdr "Last-Modified: Wed, 11 Sep 2013 13:36:55 GMT" -body "Geoff Still Rules"
txresp -hdr "Last-Modified: Wed, 11 Sep 2013 13:36:55 GMT" \
-hdr "Geoff: Still rules, just not the body" \
-bodylen 1048576
# The IMS request we will spend some time to process for the sake of
# this test.
......@@ -23,6 +25,10 @@ varnish v1 \
-arg "-E${libvmod_slash}" \
-arg "-sfellow=fellow,${tmpdir}/fellow_global.stv,100MB,1MB,64KB" \
-vcl+backend {
import slash;
sub vcl_init {
slash.tune_fellow(storage.fellow, chunk_exponent=12);
}
sub vcl_backend_response {
set beresp.ttl = 1s;
set beresp.grace = 1s;
......@@ -35,7 +41,7 @@ client c1 {
txreq
rxresp
expect resp.status == 200
expect resp.body == "Geoff Still Rules"
expect resp.bodylen == 1048576
} -run
# let the object's ttl and grace expire
......@@ -47,7 +53,7 @@ client c2 {
rxresp
# we did not disable grace in the request, so we should get the graced object here
expect resp.status == 200
expect resp.body == "Geoff Still Rules"
expect resp.bodylen == 1048576
} -start
delay .1
......@@ -57,7 +63,7 @@ client c3 {
txreq
rxresp
expect resp.status == 200
expect resp.body == "Geoff Still Rules"
expect resp.bodylen == 1048576
} -start
client c2 -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