Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-blobdigest
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
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-blobdigest
Commits
bb1e3085
Commit
bb1e3085
authored
Mar 14, 2019
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove tests for error messages we do not get any more
parent
5a057fb5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
32 deletions
+36
-32
usage.vtc
src/tests/usage.vtc
+36
-32
No files found.
src/tests/usage.vtc
View file @
bb1e3085
...
@@ -248,18 +248,18 @@ logexpect l2 -wait
...
@@ -248,18 +248,18 @@ logexpect l2 -wait
varnish v2 -stop
varnish v2 -stop
# hmac constructor fails if the key is NULL
#
#
hmac constructor fails if the key is NULL
#
broken in varnish-cache master
#
# broken in varnish-cache master - but phk does not accept
# ref: https://github.com/varnishcache/varnish-cache/pull/2941
#
#
ref: https://github.com/varnishcache/varnish-cache/pull/2941
varnish v1 -errvcl {vmod blobdigest error: key is NULL in fail constructor} {
#
varnish v1 -errvcl {vmod blobdigest error: key is NULL in fail constructor} {
import blobdigest from "${vmod_topbuild}/src/.libs/libvmod_blobdigest.so";
#
import blobdigest from "${vmod_topbuild}/src/.libs/libvmod_blobdigest.so";
import blob;
#
import blob;
backend b { .host = "${bad_ip}"; }
#
backend b { .host = "${bad_ip}"; }
#
sub vcl_init {
#
sub vcl_init {
new fail = blobdigest.hmac(MD5, blob.decode(decoding=HEX, encoded="x"));
#
new fail = blobdigest.hmac(MD5, blob.decode(decoding=HEX, encoded="x"));
}
#
}
}
#
}
# hmac method and hmacf function fail if msg or key is NULL
# hmac method and hmacf function fail if msg or key is NULL
varnish v1 -vcl {
varnish v1 -vcl {
...
@@ -295,23 +295,25 @@ varnish v1 -vcl {
...
@@ -295,23 +295,25 @@ varnish v1 -vcl {
}
}
}
}
logexpect l3 -v v1 -d 0 -g vxid -q {ReqURL ~ "^/1"} {
# # broken in varnish-cache master - but phk does not accept
expect 0 * Begin req
# # ref: https://github.com/varnishcache/varnish-cache/pull/2941
expect * = VCL_Error "^vmod blobdigest error: msg is NULL in h.hmac..$"
#logexpect l3 -v v1 -d 0 -g vxid -q {ReqURL ~ "^/1"} {
expect * = End
# expect 0 * Begin req
} -start
# expect * = VCL_Error "^vmod blobdigest error: msg is NULL in h.hmac..$"
# expect * = End
logexpect l4 -v v1 -d 0 -g vxid -q {ReqURL ~ "^/2"} {
#} -start
expect 0 * Begin req
#
expect * = VCL_Error "^vmod blobdigest error: key is NULL in blobdigest.hmacf..$"
#logexpect l4 -v v1 -d 0 -g vxid -q {ReqURL ~ "^/2"} {
expect * = End
# expect 0 * Begin req
} -start
# expect * = VCL_Error "^vmod blobdigest error: key is NULL in blobdigest.hmacf..$"
# expect * = End
logexpect l5 -v v1 -d 0 -g vxid -q {ReqURL ~ "^/3"} {
#} -start
expect 0 * Begin req
#
expect * = VCL_Error "^vmod blobdigest error: msg is NULL in blobdigest.hmacf..$"
#logexpect l5 -v v1 -d 0 -g vxid -q {ReqURL ~ "^/3"} {
expect * = End
# expect 0 * Begin req
} -start
# expect * = VCL_Error "^vmod blobdigest error: msg is NULL in blobdigest.hmacf..$"
# expect * = End
#} -start
client c1 {
client c1 {
txreq -url "/1"
txreq -url "/1"
...
@@ -334,6 +336,8 @@ client c3 {
...
@@ -334,6 +336,8 @@ client c3 {
expect_close
expect_close
} -run
} -run
logexpect l3 -wait
# # broken in varnish-cache master - but phk does not accept
logexpect l4 -wait
# # ref: https://github.com/varnishcache/varnish-cache/pull/2941
logexpect l5 -wait
#logexpect l3 -wait
#logexpect l4 -wait
#logexpect l5 -wait
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