# $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 {
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; }
+ }
+}
+