Page MenuHomePhabricator
Paste P5291

hfp-objsize.vtc
ActivePublic

Authored by ema on Apr 19 2017, 5:01 PM.
Tags
None
Referenced Files
F7640781: hfp-objsize.vtc
Apr 19 2017, 5:01 PM
Subscribers
None
varnishtest "Test hit for pass obj size"
server s1 {
rxreq
expect req.url == "/foo"
txresp -body foobar
rxreq
expect req.url == "/foo"
txresp -body foobar1
} -start
varnish v1 -vcl+backend {
sub vcl_backend_response {
set beresp.uncacheable = true;
}
} -start
client c1 {
txreq -url "/foo"
rxresp
expect resp.http.x-varnish == "1001"
txreq -url "/foo"
rxresp
expect resp.http.x-varnish == "1003"
}
varnish v1 -expect SMA.Transient.g_bytes == 0
client c1 -run
varnish v1 -expect SMA.Transient.g_bytes == 200