Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-cluster
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-cluster
Commits
747f4c7d
Commit
747f4c7d
authored
Sep 06, 2018
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better test coverage for changing the uncacheable_direct argument
parent
d234259d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
lazy.vtc
src/vtc/lazy.vtc
+10
-3
No files found.
src/vtc/lazy.vtc
View file @
747f4c7d
...
...
@@ -21,17 +21,20 @@ varnish v1 -vcl+backend {
new rr = directors.round_robin();
rr.add_backend(s1);
rr.add_backend(s2);
new cl = cluster.cluster(rr.backend(), deny=s2, real=s3,
uncacheable_direct=false);
new cl = cluster.cluster(rr.backend(), deny=s2, real=s3);
}
sub vcl_recv {
return (pass);
}
sub vcl_backend_fetch {
set bereq.backend = cl.backend();
set bereq.http.unc1 = cl.get_uncacheable_direct();
set bereq.backend = cl.backend(uncacheable_direct=false);
set bereq.http.unc2 = cl.get_uncacheable_direct();
}
sub vcl_backend_response {
set beresp.http.unc1 = bereq.http.unc1;
set beresp.http.backend = beresp.backend;
set beresp.http.unc2 = bereq.http.unc2;
}
} -start
...
...
@@ -39,9 +42,13 @@ client c1 {
txreq
rxresp
expect resp.status == 200
expect resp.http.unc1 == "true"
expect resp.http.backend == "s1"
expect resp.http.unc2 == "false"
txreq
rxresp
expect resp.status == 200
expect resp.http.unc1 == "true"
expect resp.http.backend == "s3"
expect resp.http.unc2 == "false"
} -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