Commit 2ed98880 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add testcase for VCL/VRT obj.ttl and obj.grace



git-svn-id: http://www.varnish-cache.org/svn/trunk@2844 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent ce87f86b
......@@ -21,3 +21,4 @@ Naming scheme
id ~ [e] --> ESI tests
id ~ [r] --> Regression tests, same number as ticket
id ~ [s] --> Slow tests, expiry, grace etc.
id ~ [v] --> VCL tests: execute VRT functions
# $Id$
test "VCL/VRT: obj.ttl and obj.grace"
server s1 {
rxreq
txresp -hdr "Connection: close" -body "012345\n"
}
server s1 -start
varnish v1 -vcl+backend {
sub vcl_fetch {
set obj.ttl += 1 m;
set obj.grace += 1 m;
}
} -start
client c1 {
txreq -url "/"
rxresp
expect resp.status == 200
}
client c1 -run
server s1 -wait
varnish v1 -stop
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