Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-ece
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
libvmod-ece
Commits
e942b008
Commit
e942b008
authored
Sep 23, 2019
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test all of the VFP stats in stats.vtc.
parent
aea18de6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
stats.vtc
src/tests/stats.vtc
+24
-0
No files found.
src/tests/stats.vtc
View file @
e942b008
...
...
@@ -39,11 +39,15 @@ client c1 -run
varnish v1 -vsc ECE.*
varnish v1 -expect ECE.vfp.ece_encrypt.ops == 10
varnish v1 -expect ECE.vfp.ece_encrypt.calls >= 10
varnish v1 -expect ECE.vfp.ece_encrypt.in > 0
varnish v1 -expect ECE.vfp.ece_encrypt.out > 0
varnish v1 -expect ECE.vfp.ece_encrypt.errs == 0
varnish v1 -expect ECE.vfp.ece_decrypt.ops == 10
varnish v1 -expect ECE.vfp.ece_decrypt.calls >= 10
varnish v1 -expect ECE.vfp.ece_decrypt.in > 0
varnish v1 -expect ECE.vfp.ece_decrypt.out > 0
varnish v1 -expect ECE.vfp.ece_decrypt.errs == 0
varnish v1 -vcl+backend {
import ${vmod_ece};
...
...
@@ -67,11 +71,14 @@ varnish v1 -cliok "vcl.list"
varnish v1 -vsc ECE.*
varnish v1 -expect ECE.vfp.ece_encrypt.ops == 10
varnish v1 -expect ECE.vfp.ece_encrypt.calls >= 10
varnish v1 -expect ECE.vfp.ece_encrypt.in > 0
varnish v1 -expect ECE.vfp.ece_encrypt.out > 0
varnish v1 -expect ECE.vfp.ece_decrypt.ops == 10
varnish v1 -expect ECE.vfp.ece_decrypt.calls >= 10
varnish v1 -expect ECE.vfp.ece_decrypt.in > 0
varnish v1 -expect ECE.vfp.ece_decrypt.out > 0
varnish v1 -expect ECE.vfp.ece_decrypt.errs == 0
server s1 -wait
server s1 -start
...
...
@@ -79,17 +86,24 @@ client c1 -run
varnish v1 -vsc ECE.*
varnish v1 -expect ECE.vfp.ece_encrypt.ops == 10
varnish v1 -expect ECE.vfp.ece_encrypt.calls >= 10
varnish v1 -expect ECE.vfp.ece_encrypt.in > 0
varnish v1 -expect ECE.vfp.ece_encrypt.out > 0
varnish v1 -expect ECE.vfp.ece_decrypt.ops == 10
varnish v1 -expect ECE.vfp.ece_decrypt.calls >= 10
varnish v1 -expect ECE.vfp.ece_decrypt.in > 0
varnish v1 -expect ECE.vfp.ece_decrypt.out > 0
varnish v1 -expect ECE.vfp.ece_decrypt.errs == 0
varnish v1 -expect ECE.vfp.vcl2.my_encrypt.ops == 10
varnish v1 -expect ECE.vfp.vcl2.my_encrypt.calls >= 10
varnish v1 -expect ECE.vfp.vcl2.my_encrypt.in > 0
varnish v1 -expect ECE.vfp.vcl2.my_encrypt.out > 0
varnish v1 -expect ECE.vfp.vcl2.my_encrypt.errs == 0
varnish v1 -expect ECE.vfp.vcl2.my_decrypt.ops == 10
varnish v1 -expect ECE.vfp.vcl2.my_decrypt.calls >= 10
varnish v1 -expect ECE.vfp.vcl2.my_decrypt.in > 0
varnish v1 -expect ECE.vfp.vcl2.my_decrypt.out > 0
varnish v1 -expect ECE.vfp.vcl2.my_decrypt.errs == 0
varnish v1 -vcl+backend {}
...
...
@@ -99,27 +113,37 @@ varnish v1 -cliok "vcl.state vcl2 cold"
# This has to be checked manually in the log.
varnish v1 -vsc ECE.vfp.vcl2.*
varnish v1 -expect ECE.vfp.ece_encrypt.ops == 10
varnish v1 -expect ECE.vfp.ece_encrypt.calls >= 10
varnish v1 -expect ECE.vfp.ece_encrypt.in > 0
varnish v1 -expect ECE.vfp.ece_encrypt.out > 0
varnish v1 -expect ECE.vfp.ece_decrypt.ops == 10
varnish v1 -expect ECE.vfp.ece_decrypt.calls >= 10
varnish v1 -expect ECE.vfp.ece_decrypt.in > 0
varnish v1 -expect ECE.vfp.ece_decrypt.out > 0
varnish v1 -expect ECE.vfp.ece_decrypt.errs == 0
varnish v1 -cliok "vcl.state vcl2 warm"
# With vcl2 back in the warm state, stats for vcl2.* appear again.
varnish v1 -expect ECE.vfp.ece_encrypt.ops == 10
varnish v1 -expect ECE.vfp.ece_encrypt.calls >= 10
varnish v1 -expect ECE.vfp.ece_encrypt.in > 0
varnish v1 -expect ECE.vfp.ece_encrypt.out > 0
varnish v1 -expect ECE.vfp.ece_decrypt.ops == 10
varnish v1 -expect ECE.vfp.ece_decrypt.calls >= 10
varnish v1 -expect ECE.vfp.ece_decrypt.in > 0
varnish v1 -expect ECE.vfp.ece_decrypt.out > 0
varnish v1 -expect ECE.vfp.ece_decrypt.errs == 0
varnish v1 -expect ECE.vfp.vcl2.my_encrypt.ops == 10
varnish v1 -expect ECE.vfp.vcl2.my_encrypt.calls >= 10
varnish v1 -expect ECE.vfp.vcl2.my_encrypt.in > 0
varnish v1 -expect ECE.vfp.vcl2.my_encrypt.out > 0
varnish v1 -expect ECE.vfp.vcl2.my_encrypt.errs == 0
varnish v1 -expect ECE.vfp.vcl2.my_decrypt.ops == 10
varnish v1 -expect ECE.vfp.vcl2.my_decrypt.calls >= 10
varnish v1 -expect ECE.vfp.vcl2.my_decrypt.in > 0
varnish v1 -expect ECE.vfp.vcl2.my_decrypt.out > 0
varnish v1 -expect ECE.vfp.vcl2.my_decrypt.errs == 0
varnish v1 -cliok "vcl.state vcl2 cold"
varnish v1 -cliok "vcl.discard vcl2"
...
...
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