Remove OBE tests for good

we test chunked + streaming and gzip + streaming in a number of vtcs
since the do_stream default has been changed to true.

And, yes, these vtcs do succeed.
parent 41bb92b9
varnishtest "Ticket #873"
barrier b1 cond 2
barrier b2 cond 2
barrier b3 cond 2
barrier b4 cond 2
server s1 {
rxreq
txresp -nolen -hdr "Transfer-encoding: chunked"
chunked "<1>------------------------<1>\n"
barrier b1 sync
chunked "<2>------------------------<2>\n"
barrier b2 sync
chunked "<3>------------------------<3>\n"
barrier b3 sync
chunked "<4>------------------------<4>\n"
barrier b4 sync
chunkedlen 0
} -start
varnish v1 -vcl+backend {
sub vcl_backend_response {
set beresp.do_stream = true;
}
} -start
varnish v1 -cliok "param.set debug +req_state"
client c1 {
txreq -hdr "foo: /foo"
rxresp -no_obj
rxchunk
expect resp.chunklen == 31
barrier b1 sync
rxchunk
expect resp.chunklen == 31
barrier b2 sync
rxchunk
expect resp.chunklen == 31
barrier b3 sync
rxchunk
expect resp.chunklen == 31
barrier b4 sync
rxchunk
expect resp.chunklen == 0
expect resp.bodylen == 124
} -run
varnishtest "Test stream/gunzip"
server s1 {
rxreq
expect req.url == "/bar"
txresp -body "foobar"
rxreq
expect req.url == "/bla"
expect req.http.accept-encoding == "gzip"
txresp -gzipbody blablabla
rxreq
expect req.url == "/foo"
txresp -body "snafu"
rxreq
expect req.url == "/barf"
expect req.http.accept-encoding == "gzip"
txresp -gzipbody Iamoutofnonsensewords
} -start
varnish v1 -vcl+backend {
sub vcl_backend_response {
if (bereq.url == "/foo") {
set beresp.do_gzip = true;
}
if (bereq.url == "/barf") {
set beresp.do_gunzip = true;
}
set beresp.do_stream = true;
}
} -start
client c1 {
txreq -url /bar
rxresp
expect resp.http.content-length == 6
expect resp.bodylen == 6
txreq -url /bla
rxresp
expect resp.bodylen == 9
txreq -url /foo
rxresp
expect resp.bodylen == 5
txreq -url /barf
rxresp
expect resp.bodylen == 21
} -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