Commit 045a3699 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Update this test to not rely of a known dynamic of varnishd



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3846 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent e558ee9a
......@@ -11,9 +11,11 @@ server s1 {
} -start
varnish v1 -vcl+backend {
sub vcl_fetch {
purge_url("^/$");
sub vcl_recv {
if (req.request == "PURGE") {
purge_url("^/$");
error 209 "foo";
}
}
} -start
......@@ -22,9 +24,18 @@ client c1 {
txreq
rxresp
expect resp.http.X-Varnish == "1001"
} -run
txreq
client c1 {
txreq -req "PURGE"
rxresp
expect resp.http.X-Varnish == "1002"
expect resp.status == 209
} -run
} -start
client c1 {
txreq
rxresp
expect resp.http.X-Varnish == "1003"
} -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