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
d0ea1b67
Unverified
Commit
d0ea1b67
authored
Jun 07, 2023
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Excercise a test of the BACKEND .resolve() method
motivated by #3935
parent
f53ec102
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
directors_b00001.vtc
vmod/tests/directors_b00001.vtc
+4
-0
No files found.
vmod/tests/directors_b00001.vtc
View file @
d0ea1b67
...
...
@@ -2,16 +2,19 @@ varnishtest "Test fallback director"
server s1 {
rxreq
expect req.http.resolved == "s1"
txresp -hdr "Foo: 1"
} -start
server s2 {
rxreq
expect req.http.resolved == "s2"
txresp -hdr "Foo: 2"
} -start
server s3 {
rxreq
expect req.http.resolved == "s3"
txresp -hdr "Foo: 3"
} -start
...
...
@@ -40,6 +43,7 @@ varnish v1 -vcl+backend {
sub vcl_backend_fetch {
set bereq.backend = fb1.backend();
set bereq.http.resolved = bereq.backend.resolve();
}
} -start
...
...
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