Use backend none more

parent 8d4640af
...@@ -8,14 +8,14 @@ varnish v1 -vcl { ...@@ -8,14 +8,14 @@ varnish v1 -vcl {
} }
varnish v1 -errvcl {include <string> not followed by semicolon.} { varnish v1 -errvcl {include <string> not followed by semicolon.} {
backend b { .host = "${localhost}"; } backend b none;
include "${tmpdir}/_varnishtest_empty_file" | include "${tmpdir}/_varnishtest_empty_file" |
} }
shell "rm -f ${tmpdir}/_varnishtest_empty_file" shell "rm -f ${tmpdir}/_varnishtest_empty_file"
varnish v1 -errvcl {include not followed by string constant.} { varnish v1 -errvcl {include not followed by string constant.} {
backend b { .host = "${localhost}"; } backend b none;
include << include <<
} }
...@@ -29,18 +29,18 @@ varnish v1 -errvcl {include not followed by string constant.} { ...@@ -29,18 +29,18 @@ varnish v1 -errvcl {include not followed by string constant.} {
} }
varnish v1 -errvcl {Unknown duration unit 'k'} { varnish v1 -errvcl {Unknown duration unit 'k'} {
backend b { .host = "${localhost}"; } backend b none;
sub vcl_backend_response { set beresp.ttl = 1. k; } sub vcl_backend_response { set beresp.ttl = 1. k; }
} }
varnish v1 -errvcl {Operator > not possible on BACKEND} { varnish v1 -errvcl {Operator > not possible on BACKEND} {
backend a { .host = "${localhost}"; } backend a none;
backend b { .host = "${localhost}"; } backend b none;
sub vcl_recv { if (a > b) { } } sub vcl_recv { if (a > b) { } }
} }
varnish v1 -errvcl {Unknown property 'foo' for type HTTP} { varnish v1 -errvcl {Unknown property 'foo' for type HTTP} {
backend b { .host = "${localhost}"; } backend b none;
sub vcl_hash { if (req.foo != "bar") { } } sub vcl_hash { if (req.foo != "bar") { } }
} }
...@@ -51,21 +51,21 @@ varnish v1 -errvcl {Symbol not found: 'foo.bar'} { ...@@ -51,21 +51,21 @@ varnish v1 -errvcl {Symbol not found: 'foo.bar'} {
} }
varnish v1 -errvcl {Cannot be set in subroutine 'vcl_pipe'} { varnish v1 -errvcl {Cannot be set in subroutine 'vcl_pipe'} {
backend b { .host = "${localhost}"; } backend b none;
sub vcl_pipe { sub vcl_pipe {
set bereq.first_byte_timeout = 10s; set bereq.first_byte_timeout = 10s;
} }
} }
varnish v1 -errvcl {Cannot be set in subroutine 'vcl_pipe'.} { varnish v1 -errvcl {Cannot be set in subroutine 'vcl_pipe'.} {
backend b { .host = "${localhost}"; } backend b none;
sub vcl_pipe { sub vcl_pipe {
set bereq.between_bytes_timeout = 10s; set bereq.between_bytes_timeout = 10s;
} }
} }
varnish v1 -errvcl {Undefined backend c, first reference:} { varnish v1 -errvcl {Undefined backend c, first reference:} {
backend b { .host = "${localhost}"; } backend b none;
sub vcl_backend_response { sub vcl_backend_response {
if (beresp.backend == c) { if (beresp.backend == c) {
set beresp.ttl = 1h; set beresp.ttl = 1h;
...@@ -74,7 +74,7 @@ varnish v1 -errvcl {Undefined backend c, first reference:} { ...@@ -74,7 +74,7 @@ varnish v1 -errvcl {Undefined backend c, first reference:} {
} }
varnish v1 -errvcl {Regexp compilation error:} { varnish v1 -errvcl {Regexp compilation error:} {
backend b { .host = "${localhost}"; } backend b none;
sub vcl_recv { sub vcl_recv {
if (req.url ~ "[a") {} if (req.url ~ "[a") {}
} }
...@@ -82,7 +82,7 @@ varnish v1 -errvcl {Regexp compilation error:} { ...@@ -82,7 +82,7 @@ varnish v1 -errvcl {Regexp compilation error:} {
varnish v1 -errvcl {Expression has type directors.shard, expected ACL} { varnish v1 -errvcl {Expression has type directors.shard, expected ACL} {
import directors; import directors;
backend b { .host = "${localhost}"; } backend b none;
sub vcl_init { sub vcl_init {
new foo = directors.shard(); new foo = directors.shard();
...@@ -96,7 +96,7 @@ varnish v1 -errvcl {Expression has type directors.shard, expected ACL} { ...@@ -96,7 +96,7 @@ varnish v1 -errvcl {Expression has type directors.shard, expected ACL} {
varnish v1 -syntax 4.0 -errvcl {Expression has type directors.shard, expected ACL} { varnish v1 -syntax 4.0 -errvcl {Expression has type directors.shard, expected ACL} {
import directors; import directors;
backend b { .host = "${localhost}"; } backend b none;
sub vcl_init { sub vcl_init {
new foo = directors.shard(); new foo = directors.shard();
...@@ -121,7 +121,7 @@ varnish v1 -errvcl {Undefined sub foo} { ...@@ -121,7 +121,7 @@ varnish v1 -errvcl {Undefined sub foo} {
varnish v1 -syntax 4.0 -errvcl {Symbol not found: 'directors.foo' varnish v1 -syntax 4.0 -errvcl {Symbol not found: 'directors.foo'
At:} { At:} {
import directors; import directors;
backend b { .host = "${localhost}"; } backend b none;
sub vcl_init { sub vcl_init {
new foo = directors.foo(); new foo = directors.foo();
...@@ -130,7 +130,7 @@ At:} { ...@@ -130,7 +130,7 @@ At:} {
# 'foo' overloaded # 'foo' overloaded
varnish v1 -syntax 4.0 -errvcl {Symbol not found: 'foo'} { varnish v1 -syntax 4.0 -errvcl {Symbol not found: 'foo'} {
backend b { .host = "${localhost}"; } backend b none;
acl foo -pedantic { acl foo -pedantic {
"${localhost}"/32; "${localhost}"/32;
......
...@@ -3,7 +3,7 @@ varnishtest "Various VCL compiler coverage tests - DNS dependent" ...@@ -3,7 +3,7 @@ varnishtest "Various VCL compiler coverage tests - DNS dependent"
feature dns feature dns
varnish v1 -errvcl {resolves to too many addresses} { varnish v1 -errvcl {resolves to too many addresses} {
backend b { .host = "${localhost}"; } backend b none;
sub vcl_recv { sub vcl_recv {
if (remote.ip == "dns-canary-multi.varnish-cache.org") {} if (remote.ip == "dns-canary-multi.varnish-cache.org") {}
} }
......
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