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
db72da16
Commit
db72da16
authored
Jan 31, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better test coverage of VCC error detection code
parent
dccd2814
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
1 deletion
+49
-1
m00000.vtc
bin/varnishtest/tests/m00000.vtc
+7
-0
v00020.vtc
bin/varnishtest/tests/v00020.vtc
+29
-1
v00033.vtc
bin/varnishtest/tests/v00033.vtc
+13
-0
No files found.
bin/varnishtest/tests/m00000.vtc
View file @
db72da16
...
...
@@ -34,3 +34,10 @@ varnish v1 -badvcl {
set resp.http.who = std.author(jfk);
}
}
varnish v1 -badvcl {
import std from "${topbuild}/lib/libvmod_std/.libs/libvmod_std.so.1" ;
sub vcl_deliver {
set resp.http.who = std.random("foo", "bar");
}
}
bin/varnishtest/tests/v00020.vtc
View file @
db72da16
...
...
@@ -27,7 +27,7 @@ varnish v1 -vcl {
varnish v1 -badvcl {
sub vcl_recv {
if (
req.restarts =
= req.url) {
if (
!req.restarts !
= req.url) {
set req.http.foo = "foo" + 3;
}
...
...
@@ -39,3 +39,31 @@ varnish v1 -badvcl {
set req.http.foo = vcl_recv;
}
}
varnish v1 -badvcl {
sub vcl_recv {
if (req.grace < 3s || req.grace) {
set req.http.foo = vcl_recv;
}
}
}
varnish v1 -badvcl {
sub vcl_recv {
if (req.grace < 3s && req.grace) {
set req.http.foo = vcl_recv;
}
}
}
varnish v1 -badvcl {
sub vcl_recv {
set req.http.foo = "bla" * "foo";
}
}
varnish v1 -badvcl {
sub vcl_fetch {
set req.http.foo = req.grace + beresp.status;
}
}
bin/varnishtest/tests/v00033.vtc
View file @
db72da16
...
...
@@ -38,3 +38,16 @@ client c1 {
expect resp.http.foo == 1100586419201.000
expect resp.http.bar == true
} -run
varnish v1 -badvcl {
sub vcl_recv {
if (storage.nowhere.free_space > 4 "X") {
}
}
}
varnish v1 -badvcl {
sub vcl_recv {
if (storage.nowhere.free_space > 4 X) {
}
}
}
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