]> err.no Git - varnish/commitdiff
testcase for unknown backend field
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 7 Jul 2008 21:09:05 +0000 (21:09 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 7 Jul 2008 21:09:05 +0000 (21:09 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2891 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishtest/tests/v00002.vtc

index 8a4cdc560a7dd7702ed6d1d4170d47842ef2b6f1..33a5718e03b091207b0425a22728e790fc5c61ba 100644 (file)
@@ -49,6 +49,14 @@ varnish v1 -badvcl {
        }
 }
 
+# unknown field
+varnish v1 -badvcl {
+       backend b1 {
+               .host = "localhost";
+               .foobar = 123;
+       }
+}
+
 # Check backend reference by name
 varnish v1 -badvcl {
        backend b1 { .host = "127.0.0.2"; }
@@ -79,7 +87,6 @@ varnish v1 -badvcl {
 }
 
 # Old backend syntax
-
 varnish v1 -badvcl {
        backend b1 {
                set host = "localhost";