Commit 07185c17 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add test-case or syntax-checks of backend decls.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2880 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 556753ed
# $Id$
test "VCL: test syntax/semantic checks on backend decls."
# Missing .host
varnish v1 -badvcl {
backend b1 {
.port = "http";
}
}
# Too many .host
varnish v1 -badvcl {
backend b1 {
.host = "foo";
.host = "bar";
}
}
# Too many .port
varnish v1 -badvcl {
backend b1 {
.host = "foo";
.port = "http";
.port = "https";
}
}
# Too many .connect_timeout
varnish v1 -badvcl {
backend b1 {
.host = "foo";
.connect_timeout = 1m;
.connect_timeout = 1m;
}
}
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