Commit e942b008 authored by Geoff Simmons's avatar Geoff Simmons

Test all of the VFP stats in stats.vtc.

parent aea18de6
......@@ -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"
......
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