Commit fbea6c34 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

More coverage for vcc_backend.c



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3280 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 0cccb648
# $Id$
test "VCL: test syntax/semantic checks on backend decls."
test "VCL: test syntax/semantic checks on backend decls. (vcc_backend.c)"
# Missing backend
varnish v1 -badvcl {
......@@ -111,3 +111,77 @@ varnish v1 -badvcl {
varnish v1 -badvcl {
director r1 anarchy { .host = "127.0.0.1"; }
}
varnish v1 -badvcl {
/* too many IP numbers */
backend b1 { .host = "cnn.com"; }
}
varnish v1 -vcl {
backend b1 { .host = "////"; }
}
varnish v1 -vcl {
backend b1 { .host = "127.0.0.1"; .port = "70000"; }
}
varnish v1 -badvcl {
backend b1 {
.host = "127.0.0.1";
.foobar = "foo";
}
}
varnish v1 -badvcl {
backend b1 {
.host = "127.0.0.1";
.probe = {
.ice = "vanilla";
}
}
}
varnish v1 -badvcl {
backend b1 {
.host = "127.0.0.1";
.probe = { .window = 8; }
}
}
varnish v1 -badvcl {
backend b1 {
.host = "127.0.0.1";
.probe = { .threshold = 65; }
}
}
varnish v1 -vcl {
backend b1 {
.host = "127.0.0.1";
.probe = { .threshold = 64; }
}
}
varnish v1 -badvcl {
backend b1 {
.host = "127.0.0.1";
.probe = { .threshold = 32; .window = 65; }
}
}
varnish v1 -vcl {
backend b1 {
.host = "127.0.0.1";
.probe = { .threshold = 32; .window = 64; }
}
}
varnish v1 -badvcl {
backend b1 {
.host = "127.0.0.1";
.probe = { .threshold = 32; .window = 31; }
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment