Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvfp-brotli
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvfp-brotli
Commits
4d25799f
Commit
4d25799f
authored
Feb 12, 2019
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test VfpAcct logging.
parent
884c9459
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
66 additions
and
3 deletions
+66
-3
decode.vtc
src/tests/decode.vtc
+27
-1
encode.vtc
src/tests/encode.vtc
+11
-1
roundtrip.vtc
src/tests/roundtrip.vtc
+28
-1
No files found.
src/tests/decode.vtc
View file @
4d25799f
...
...
@@ -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
src/tests/encode.vtc
View file @
4d25799f
...
...
@@ -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
src/tests/roundtrip.vtc
View file @
4d25799f
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment