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
00ce8fcf
Commit
00ce8fcf
authored
Mar 16, 2015
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
White space OCD.
parent
4defdfc1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
20 deletions
+19
-20
r01684.vtc
bin/varnishtest/tests/r01684.vtc
+18
-19
v00044.vtc
bin/varnishtest/tests/v00044.vtc
+1
-1
No files found.
bin/varnishtest/tests/r01684.vtc
View file @
00ce8fcf
varnishtest "Regression test for #1684"
varnishtest "Regression test for #1684"
server s1 {
server s1 {
rxreq
rxreq
txresp -hdr "foo: 1"
txresp -hdr "foo: 1"
accept
accept
rxreq
rxreq
txresp -hdr "foo: 2"
txresp -hdr "foo: 2"
accept
accept
rxreq
rxreq
txresp -hdr "foo: 3"
txresp -hdr "foo: 3"
} -start
} -start
varnish v1 -vcl+backend {
varnish v1 -vcl+backend {
sub vcl_recv { return (pass); }
sub vcl_recv { return (pass); }
sub vcl_backend_response {
sub vcl_backend_response {
set beresp.http.bar = bereq.retries;
set beresp.http.bar = bereq.retries;
if (beresp.http.foo != bereq.http.stop) {
if (beresp.http.foo != bereq.http.stop) {
return (retry);
return (retry);
}
}
}
}
} -start
} -start
# check log for the aborted POST
# check log for the aborted POST
...
@@ -31,8 +31,7 @@ varnish v1 -cliok "param.set debug +syncvsl"
...
@@ -31,8 +31,7 @@ varnish v1 -cliok "param.set debug +syncvsl"
varnish v1 -cliok "param.set max_retries 2"
varnish v1 -cliok "param.set max_retries 2"
client c1 {
client c1 {
txreq -hdr "stop: 3"
txreq -hdr "stop: 3"
rxresp
rxresp
expect resp.http.foo == 3
expect resp.http.foo == 3
} -run
} -run
bin/varnishtest/tests/v00044.vtc
View file @
00ce8fcf
...
@@ -51,7 +51,7 @@ varnish v1 -expect VBE.vcl2.default.happy >= 0
...
@@ -51,7 +51,7 @@ varnish v1 -expect VBE.vcl2.default.happy >= 0
# and the unused one should go cold
# and the unused one should go cold
delay 4
delay 4
varnish v1 -expect !VBE.vcl2.default.happy
varnish v1 -expect !VBE.vcl2.default.happy
# Mark the used warm and use it the other
# Mark the used warm and use it the other
varnish v1 -cliok "vcl.state vcl1 warm"
varnish v1 -cliok "vcl.state vcl1 warm"
...
...
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