Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
e36573e2
Commit
e36573e2
authored
Feb 12, 2021
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a test-case for hash_data() in vcl_recv{}
parent
03fe0cee
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
b00076.vtc
bin/varnishtest/tests/b00076.vtc
+31
-0
No files found.
bin/varnishtest/tests/b00076.vtc
0 → 100644
View file @
e36573e2
varnishtest "hash_data() in vcl_recv{}"
server s1 {
rxreq
txresp -hdr "Same: One"
} -start
varnish v1 -vcl+backend {
sub vcl_recv {
if (req.url == "/2") {
hash_data(req.http.foo);
}
}
sub vcl_hash {
hash_data(req.url);
return (lookup);
}
} -start
varnish v1 -cliok "param.set vsl_mask +Hash"
client c1 {
txreq -url /1
rxresp
expect resp.status == 200
expect resp.http.same == One
txreq -url /2 -hdr "foo: /1"
rxresp
expect resp.status == 200
expect resp.http.same == One
} -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