Commit 0275c199 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

vtc: Increase varnishncsa -[bcE] test coverage

parent d85bd6fc
......@@ -92,6 +92,44 @@ logexpect l3 -wait
logexpect l4 -wait
logexpect l5 -wait
shell {
varnishncsa -n ${v1_name} -d \
-F '%{Varnish:vxid}x %{Varnish:side}x %{VSL:Begin[3]}x' |
sort > ncsa.txt
cat >expected.txt <<-EOF
1001 c rxreq
1005 c rxreq
EOF
diff -u expected.txt ncsa.txt
}
shell {
varnishncsa -n ${v1_name} -d -b \
-F '%{Varnish:vxid}x %{Varnish:side}x %{VSL:Begin[3]}x' |
sort > ncsa.txt
cat >expected.txt <<-EOF
1002 b fetch
1004 b fetch
EOF
diff -u expected.txt ncsa.txt
}
shell {
varnishncsa -n ${v1_name} -d -E \
-F '%{Varnish:vxid}x %{Varnish:side}x %{VSL:Begin[3]}x' |
sort > ncsa.txt
cat >expected.txt <<-EOF
1001 c rxreq
1003 c esi
1005 c rxreq
1006 c esi
EOF
diff -u expected.txt ncsa.txt
}
shell {
varnishncsa -n ${v1_name} -d -b -E \
-F '%{Varnish:vxid}x %{Varnish:side}x %{VSL:Begin[3]}x' |
......
......@@ -159,3 +159,5 @@ process p2 {varnishncsa -t 5 -n nonexistent} -start
delay 1
process p2 -expect-exit 1 -kill INT -wait
shell {grep -q "VSM: Attach interrupted" ${p2_err}}
# ESI coverage in e00003.vtc
......@@ -164,3 +164,5 @@ shell -err -expect "Cannot open ${tmpdir}/foo: " \
shell "echo foobar > ${tmpdir}/foo"
shell -err -expect "Not a VSL file: ${tmpdir}/foo" \
"varnishlog -r ${tmpdir}/foo"
# ESI coverage in e00003.vtc
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