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
3633f955
Commit
3633f955
authored
Oct 24, 2015
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sharpen the test for setting the port
parent
ce331e71
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
8 deletions
+20
-8
test01.vtc
src/tests/test01.vtc
+20
-8
No files found.
src/tests/test01.vtc
View file @
3633f955
varnishtest "Test
VMOD oob_probe
(cf. v00014.vtc)"
varnishtest "Test
setting the probe port
(cf. v00014.vtc)"
server s1 {
rxreq
expect req.url == "/"
txresp -body "slash"
rxreq
expect req.url == "/foo"
txresp -body "foo"
expect req.url == "/baz"
txresp -body "backend"
} -start
server s2 {
rxreq
sema r1 sync 2
expect req.url == "/"
txresp -body "one"
sema r1 sync 2
accept
rxreq
sema r2 sync 2
expect req.url == "/"
txresp -body "two"
sema r2 sync 2
accept
rxreq
expect req.url == "/"
txresp -body "three"
} -start
varnish v1 -vcl {
...
...
@@ -47,6 +47,9 @@ varnish v1 -vcl {
}
sub vcl_recv {
if (req.url == "/baz") {
return(pass);
}
if (std.healthy(default)) {
return(synth(200,"Backend healthy"));
} else {
...
...
@@ -61,12 +64,21 @@ client c1 {
txreq
rxresp
expect resp.status == 500
expect resp.body ~ "Backend sick"
sema r1 sync 2
txreq -url "/foo"
rxresp
expect resp.status == 500
expect resp.body ~ "Backend sick"
sema r2 sync 2
txreq -url "/bar"
rxresp
expect resp.status == 200
expect resp.body ~ "Backend healthy"
txreq -url "/baz"
rxresp
expect resp.status == 200
expect resp.body == "backend"
} -run
varnish v1 -expect VBE.vcl1.default.happy > 0
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