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
eadac954
Commit
eadac954
authored
Mar 20, 2019
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
generalize *_selected vtc to real_selected
parent
329c810f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
16 deletions
+31
-16
Makefile.am
src/Makefile.am
+8
-8
selected.vtc
src/vtc/selected.vtc
+23
-8
No files found.
src/Makefile.am
View file @
eadac954
...
...
@@ -27,14 +27,14 @@ AM_VTC_LOG_FLAGS = \
-p
vmod_path
=
"
$(abs_builddir)
/.libs:
$(vmoddir)
"
TESTS
=
\
vtc/cfg.vtc
\
vtc/cld.vtc
\
vtc/
cluster_
selected.vtc
\
vtc/deep.vtc
\
vtc/deep_stk.vtc
\
vtc/direct.vtc
\
vtc/shallow.vtc
\
vtc/lazy.vtc
\
vtc/cfg.vtc
\
vtc/cld.vtc
\
vtc/selected.vtc
\
vtc/deep.vtc
\
vtc/deep_stk.vtc
\
vtc/direct.vtc
\
vtc/shallow.vtc
\
vtc/lazy.vtc
\
vtc/lazy_shard.vtc
# Documentation
...
...
src/vtc/
cluster_
selected.vtc
→
src/vtc/selected.vtc
View file @
eadac954
varnishtest "test .
cluster
_selected"
varnishtest "test .
*
_selected"
varnish v1 -vcl {
import cluster;
...
...
@@ -20,17 +20,27 @@ varnish v1 -vcl {
}
sub vcl_backend_fetch {
set bereq.http.c1 = cl.cluster_selected();
set bereq.http.b1 = bereq.backend;
set bereq.http.b
c
1 = bereq.backend;
set bereq.http.c2 = cl.cluster_selected();
set bereq.http.b2 = bereq.backend;
set bereq.http.bc2 = bereq.backend;
set bereq.http.r1 = cl.real_selected();
set bereq.http.br1 = bereq.backend;
set bereq.http.r2 = cl.real_selected();
set bereq.http.br2 = bereq.backend;
}
sub vcl_backend_error {
set beresp.status = 200;
set beresp.http.c1 = bereq.http.c1;
set beresp.http.b
1 = bereq.http.b
1;
set beresp.http.b
c1 = bereq.http.bc
1;
set beresp.http.c2 = bereq.http.c2;
set beresp.http.b2 = bereq.http.b2;
}
set beresp.http.bc2 = bereq.http.bc2;
set beresp.http.r1 = bereq.http.r1;
set beresp.http.br1 = bereq.http.br1;
set beresp.http.r2 = bereq.http.r2;
set beresp.http.br2 = bereq.http.br2;
}
} -start
client c1 {
...
...
@@ -38,7 +48,12 @@ client c1 {
rxresp
expect resp.status == 200
expect resp.http.c1 == true
expect resp.http.b1 == s1
expect resp.http.b
c
1 == s1
expect resp.http.c2 == false
expect resp.http.b2 == real
expect resp.http.bc2 == real
expect resp.http.r1 == false
expect resp.http.br1 == s1
expect resp.http.r2 == true
expect resp.http.br2 == real
} -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