From 1ced050cbc0f19aa6d7522df9a65d5ac98cd475e Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 7 Jul 2008 21:09:05 +0000 Subject: [PATCH] testcase for unknown backend field git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2891 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishtest/tests/v00002.vtc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/varnish-cache/bin/varnishtest/tests/v00002.vtc b/varnish-cache/bin/varnishtest/tests/v00002.vtc index 8a4cdc56..33a5718e 100644 --- a/varnish-cache/bin/varnishtest/tests/v00002.vtc +++ b/varnish-cache/bin/varnishtest/tests/v00002.vtc @@ -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"; -- 2.39.5