Commit 4d25799f authored by Geoff Simmons's avatar Geoff Simmons

Test VfpAcct logging.

parent 884c9459
......@@ -66,7 +66,7 @@ server s1 {
sendhex "73 ab c4 57 1e"
} -start
varnish v1 -vcl+backend {
varnish v1 -arg "-p vsl_mask=+VfpAcct" -vcl+backend {
import ${vmod_brotli};
sub vcl_backend_response {
......@@ -127,3 +127,29 @@ client c1 {
expect resp.bodylen == 119
expect resp.body == "ukko nooa, ukko nooa oli kunnon mies, kun han meni saunaan, pisti laukun naulaan, ukko nooa, ukko nooa oli kunnon mies."
} -run
logexpect l1 -v v1 -d 1 -g vxid -q "VfpAcct" {
expect 0 * Begin bereq
expect * = VfpAcct {^unbr \d+ 43$}
expect * = End
expect 0 * Begin bereq
expect * = VfpAcct {^unbr \d+ 5$}
expect * = End
expect 0 * Begin bereq
expect * = VfpAcct {^unbr \d+ 20$}
expect * = End
expect 0 * Begin bereq
expect * = VfpAcct {^unbr \d+ 64$}
expect * = End
expect 0 * Begin bereq
expect * = VfpAcct {^unbr \d+ 176128$}
expect * = End
expect 0 * Begin bereq
expect * = VfpAcct {^unbr \d+ 843$}
expect * = End
} -run
......@@ -11,7 +11,7 @@ server s1 {
txresp -body {Xyzzy}
} -start
varnish v1 -vcl+backend {
varnish v1 -arg "-p vsl_mask=+VfpAcct" -vcl+backend {
import ${vmod_brotli};
sub vcl_backend_response {
......@@ -37,3 +37,13 @@ client c1 {
expect resp.bodylen == 9
expect resp.body == { Xyzzy}
} -run
logexpect l1 -v v1 -d 1 -g vxid -q "VfpAcct" {
expect 0 * Begin bereq
expect * = VfpAcct {^br \d+ 47$}
expect * = End
expect 0 * Begin bereq
expect * = VfpAcct {^br \d+ 9$}
expect * = End
} -run
......@@ -27,7 +27,7 @@ Enim per accumsan, augue id maecenas bibendum ullamcorper in fermentum, platea f
chunkedlen 0
} -start
varnish v1 -vcl+backend {
varnish v1 -arg "-p vsl_mask=+VfpAcct" -vcl+backend {
import ${vmod_brotli};
sub vcl_backend_response {
......@@ -73,3 +73,30 @@ Enim per accumsan, augue id maecenas bibendum ullamcorper in fermentum, platea f
expect resp.http.Content-Encoding == <undef>
expect resp.bodylen == 131072
} -run
logexpect l1 -v v1 -d 1 -g vxid -q "VfpAcct" {
expect 0 * Begin bereq
expect * = VfpAcct {^unbr \d+ 16$}
expect * = VfpAcct {^br \d+ 20$}
expect * = End
expect 0 * Begin bereq
expect * = VfpAcct {^unbr \d+ 3067$}
expect * = VfpAcct {^br \d+ \d+$}
expect * = End
expect 0 * Begin bereq
expect * = VfpAcct {^unbr \d+ 269$}
expect * = VfpAcct {^br \d+ \d+$}
expect * = End
expect 0 * Begin bereq
expect * = VfpAcct {^unbr \d+ 65536$}
expect * = VfpAcct {^br \d+ \d+$}
expect * = End
expect 0 * Begin bereq
expect * = VfpAcct {^unbr \d+ 131072$}
expect * = VfpAcct {^br \d+ \d+$}
expect * = End
} -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