Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oob_probe
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
oob_probe
Commits
52fc1a42
Commit
52fc1a42
authored
Oct 24, 2015
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add tests adapted from Varnish c00035.vtc
parent
feeab07c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
128 additions
and
0 deletions
+128
-0
test05.vtc
src/tests/test05.vtc
+64
-0
test06.vtc
src/tests/test06.vtc
+64
-0
No files found.
src/tests/test05.vtc
0 → 100644
View file @
52fc1a42
varnishtest "Dropping polling of a backend with an out-of-band probe port (cf. c00035.vtc)"
server s1 {
rxreq
expect req.url == /foo
txresp -bodylen 4
} -start
server s2 -repeat 40 {
rxreq
txresp
} -start
varnish v1 -vcl {
import oob_probe from "${vmod_topbuild}/src/.libs/libvmod_oob_probe.so";
probe p {
.window = 8;
.initial = 7;
.threshold = 8;
.interval = 0.1s;
}
backend s1 {
.host = "${s1_addr}";
.port = "${s1_port}";
}
sub vcl_init {
oob_probe.port(s1, p, "${s2_port}");
}
} -start
delay 1
varnish v1 -vcl {
import oob_probe from "${vmod_topbuild}/src/.libs/libvmod_oob_probe.so";
probe p {
.window = 8;
.initial = 7;
.threshold = 8;
.interval = 0.1s;
}
backend s1 {
.host = "${s1_addr}";
.port = "${s1_port}";
}
sub vcl_init {
oob_probe.port(s1, p, "${s2_port}");
}
} -cliok "vcl.use vcl2" -cliok "vcl.discard vcl1"
delay 1
varnish v1 -cliok "vcl.list"
varnish v1 -cliok "backend.list -p"
client c1 {
txreq -url /foo
rxresp
expect resp.status == 200
expect resp.bodylen == 4
} -run
src/tests/test06.vtc
0 → 100644
View file @
52fc1a42
varnishtest "Dropping polling of a backend with an out-of-band probe address (cf. c00035.vtc)"
server s1 {
rxreq
expect req.url == /foo
txresp -bodylen 4
} -start
server s2 -repeat 40 {
rxreq
txresp
} -start
varnish v1 -vcl {
import oob_probe from "${vmod_topbuild}/src/.libs/libvmod_oob_probe.so";
probe p {
.window = 8;
.initial = 7;
.threshold = 8;
.interval = 0.1s;
}
backend s1 {
.host = "${s1_addr}";
.port = "${s1_port}";
}
sub vcl_init {
oob_probe.addr(s1, p, "${s2_addr}", "${s2_port}");
}
} -start
delay 1
varnish v1 -vcl {
import oob_probe from "${vmod_topbuild}/src/.libs/libvmod_oob_probe.so";
probe p {
.window = 8;
.initial = 7;
.threshold = 8;
.interval = 0.1s;
}
backend s1 {
.host = "${s1_addr}";
.port = "${s1_port}";
}
sub vcl_init {
oob_probe.addr(s1, p, "${s2_addr}", "${s2_port}");
}
} -cliok "vcl.use vcl2" -cliok "vcl.discard vcl1"
delay 1
varnish v1 -cliok "vcl.list"
varnish v1 -cliok "backend.list -p"
client c1 {
txreq -url /foo
rxresp
expect resp.status == 200
expect resp.bodylen == 4
} -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