[4.1] f108ad6 Adapt some test cases from master to avoid regression
PÃ¥l Hermunn Johansen
hermunn at varnish-software.com
Thu Apr 12 08:54:08 UTC 2018
commit f108ad62d1ce2e3d1fd13c2462cf9b91765d5d4f
Author: Pål Hermunn Johansen <hermunn at varnish-software.com>
Date: Thu Apr 12 10:28:51 2018 +0200
Adapt some test cases from master to avoid regression
Back port two VCC test cases from the master branch. The latter is from
4b48f886a5d9937fbd5b56a1560c755d by Nils Goroll <nils.goroll at uplex.de>
diff --git a/bin/varnishtest/tests/v00016.vtc b/bin/varnishtest/tests/v00016.vtc
index 990f39e..549f11c 100644
--- a/bin/varnishtest/tests/v00016.vtc
+++ b/bin/varnishtest/tests/v00016.vtc
@@ -127,3 +127,24 @@ varnish v1 -errvcl {Backend not found: 'c'} {
}
}
}
+
+varnish v1 -errvcl {Regexp compilation error:} {
+ backend b { .host = "127.0.0.1"; }
+ sub vcl_recv {
+ if (req.url ~ "[a") {}
+ }
+}
+
+varnish v1 -errvcl {Undefined acl foo} {
+ import ${vmod_directors};
+ backend b { .host = "127.0.0.1"; }
+
+ sub vcl_init {
+ new foo = directors.round_robin();
+ }
+ sub vcl_recv {
+ if (client.ip ~ foo) {
+ return (synth(200));
+ }
+ }
+}
More information about the varnish-commit
mailing list