A bit of coverage testing

parent 79abae95
......@@ -28,7 +28,8 @@ AM_VTC_LOG_FLAGS = \
TESTS = \
vtc/vmod_zipflow.vtc \
vtc/empty.vtc
vtc/empty.vtc \
vtc/coverage.vtc
# Documentation
......
varnishtest "vmod-zipflow error handling & corner cases"
server s1 {
rxreq
txresp -bodylen 10240
} -start
varnish v1 -vcl+backend {
import zipflow;
import std;
sub vcl_deliver {
zipflow.set_level(0);
set resp.filters += " zipflow";
}
} -start
client c1 {
txreq
rxresphdrs
expect resp.status == 200
rxchunk
} -start
client c2 {
txreq
rxresphdrs
expect resp.status == 200
rxchunk
rxchunk
} -start
client c3 {
txreq
rxresphdrs
expect resp.status == 200
rxchunk
rxchunk
rxchunk
} -start
client c4 {
txreq
rxresphdrs
expect resp.status == 200
rxchunk
rxchunk
rxchunk
rxchunk
} -start
client c5 {
txreq
rxresphdrs
expect resp.status == 200
rxchunk
rxchunk
rxchunk
rxchunk
rxchunk
} -start
client c1 -wait
client c2 -wait
client c3 -wait
client c4 -wait
client c5 -wait
\ No newline at end of file
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