git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2844
d4fa192b-c00b-0410-8231-
f00ffab90ce4
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
--- /dev/null
+# $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