Commit 055a5069 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Two slow testcases to test object expiry



git-svn-id: http://www.varnish-cache.org/svn/trunk@2834 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 2b731615
......@@ -19,5 +19,5 @@ Naming scheme
id ~ [b] --> Basic functionality tests
id ~ [c] --> Complex functionality tests
id ~ [e] --> ESI tests
id ~ [r] --> Regression tests.
id ~ [t] --> Ticket regression tests, number same as ticket.
id ~ [r] --> Regression tests, same number as ticket
id ~ [s] --> Slow tests, expiry, grace etc.
# $Id$
test "Simple expiry test"
server s1 {
rxreq
expect req.url == "/"
txresp -hdr "Cache-control: max-age = 1" -body "1111\n"
delay 3
rxreq
expect req.url == "/"
txresp -hdr "Cache-control: max-age = 1" -body "22222\n"
} -start
varnish v1 -vcl+backend { } -start
client c1 {
txreq -url "/"
rxresp
expect resp.http.content-length == 5
expect resp.http.x-varnish == "1001"
expect resp.status == 200
} -run
delay 3
client c2 {
txreq -url "/"
rxresp
expect resp.status == 200
expect resp.http.x-varnish == "1002"
expect resp.http.content-length == 6
} -run
# $Id$
test "Simple expiry test (fully reaped object)"
server s1 {
rxreq
expect req.url == "/"
txresp -hdr "Cache-control: max-age = 1" -body "1111\n"
delay 20
rxreq
expect req.url == "/"
txresp -hdr "Cache-control: max-age = 1" -body "22222\n"
} -start
varnish v1 -vcl+backend { } -start
client c1 {
txreq -url "/"
rxresp
expect resp.http.content-length == 5
expect resp.http.x-varnish == "1001"
expect resp.status == 200
} -run
delay 20
client c2 {
txreq -url "/"
rxresp
expect resp.status == 200
expect resp.http.x-varnish == "1002"
expect resp.http.content-length == 6
} -run
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