sub vcl_miss { restart rollback; }
}
+varnish v1 -badvcl {
+ backend b { .host = "127.0.0.1"; }
+ sub vcl_hit { restart 2 ; }
+}
+
varnish v1 -vcl {
backend b { .host = "127.0.0.1"; }
sub vcl_fetch { error obj.status ; }
sub vcl_fetch { error obj.status req.url; }
}
+varnish v1 -badvcl {
+ backend b { .host = "127.0.0.1"; }
+ sub vcl_fetch { error 404 req.grace; }
+}
+
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
sub vcl_miss { set server.port = 1000; }
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
/* XXX: This should not really be an error */
- sub vcl_recv { set req.url = "foo" 2 "bar"; }
+ sub vcl_recv { set req.url = "foo" if "bar"; }
+}
+
+varnish v1 -badvcl {
+ backend b { .host = "127.0.0.1"; }
+ sub vcl_hash { set req.hash += 1; }
+}
+
+varnish v1 -badvcl {
+ backend b { .host = "127.0.0.1"; }
+ sub vcl_recv { set req.url = 1; }
}
varnish v1 -badvcl {
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
- sub vcl_recv { purge_url (3); }
+ sub vcl_recv { purge_url (if); }
}
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
- sub vcl_recv { purge_hash (3); }
+ sub vcl_recv { purge_hash (if); }
}
varnish v1 -vcl {
varnish v1 -badvcl {
backend b { .host = "127.0.0.1"; }
- sub vcl_recv { panic 3; }
+ sub vcl_recv { panic if; }
}
varnish v1 -badvcl {
sub vcl_recv { kluf ; }
}
+
+varnish v1 -badvcl {
+ backend b { .host = "127.0.0.1"; }
+ sub vcl_error { synthetic if "foo"; }
+}
+