Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-all_healthy
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-all_healthy
Commits
3aa55b1d
Commit
3aa55b1d
authored
Aug 13, 2018
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
backport to 4.1
parent
b2d026a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
12 deletions
+9
-12
Makefile.am
src/Makefile.am
+2
-4
vmod_all_healthy.vtc
src/vtc/vmod_all_healthy.vtc
+7
-8
No files found.
src/Makefile.am
View file @
3aa55b1d
...
...
@@ -16,13 +16,11 @@ nodist_libvmod_all_healthy_la_SOURCES = \
# Test suite
AM_TESTS_ENVIRONMENT
=
\
PATH
=
"
$(abs_builddir)
:
$(V
ARNISH
_TEST_PATH)
:
$(PATH)
"
\
PATH
=
"
$(abs_builddir)
:
$(V
MOD
_TEST_PATH)
:
$(PATH)
"
\
LD_LIBRARY_PATH
=
"
$(VARNISH_LIBRARY_PATH)
"
TEST_EXTENSIONS
=
.vtc
VTC_LOG_COMPILER
=
varnishtest
-v
AM_VTC_LOG_FLAGS
=
\
-p
vcl_path
=
"
$(abs_top_srcdir)
/vcl"
\
-p
vmod_path
=
"
$(abs_builddir)
/.libs:
$(vmoddir)
"
AM_VTC_LOG_FLAGS
=
-Dvmod_dir
=
"
$(abs_builddir)
/.libs"
TESTS
=
\
vtc/vmod_all_healthy.vtc
...
...
src/vtc/vmod_all_healthy.vtc
View file @
3aa55b1d
...
...
@@ -2,11 +2,10 @@ varnishtest "test vmod-all_healthy"
varnish v1 -vcl {
import std;
import vtc;
import all_healthy;
import all_healthy from "${vmod_dir}/libvmod_all_healthy.so";
backend be_a { .host = "${bad_
backend
}"; }
backend be_b { .host = "${bad_
backend
}"; }
backend be_a { .host = "${bad_
ip
}"; }
backend be_b { .host = "${bad_
ip
}"; }
sub vcl_init {
new be = all_healthy.director();
...
...
@@ -25,7 +24,7 @@ varnish v1 -vcl {
}
} -start
varnish v1 -cliok "backend.list
-j
"
varnish v1 -cliok "backend.list"
client c1 {
txreq
...
...
@@ -39,7 +38,7 @@ client c1 {
varnish v1 -cliok "backend.set_health be_a sick"
varnish v1 -cliok "backend.list
-j
"
varnish v1 -cliok "backend.list"
client c1 {
txreq
...
...
@@ -54,7 +53,7 @@ client c1 {
varnish v1 -cliok "backend.set_health be_a healthy"
varnish v1 -cliok "backend.set_health be_b sick"
varnish v1 -cliok "backend.list
-j
"
varnish v1 -cliok "backend.list"
client c1 {
txreq
...
...
@@ -68,7 +67,7 @@ client c1 {
varnish v1 -cliok "backend.set_health be_b healthy"
varnish v1 -cliok "backend.list
-j
"
varnish v1 -cliok "backend.list"
client c1 {
txreq
...
...
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