[master] adf520d (re)add the testcase for #1212
Poul-Henning Kamp
phk at varnish-cache.org
Thu Oct 25 10:12:40 CEST 2012
commit adf520dfad0e71f731f7f2b0940d631d1f4a3e78
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Thu Oct 25 08:12:00 2012 +0000
(re)add the testcase for #1212
Submitted by: Federico G. Schwindt
diff --git a/bin/varnishtest/tests/r01212.vtc b/bin/varnishtest/tests/r01212.vtc
new file mode 100644
index 0000000..ca8d5379
--- /dev/null
+++ b/bin/varnishtest/tests/r01212.vtc
@@ -0,0 +1,9 @@
+varnishtest "#1212 - Vmod with HEADER argument given a STRING asserts the VCL compiler"
+
+varnish v1 -errvcl {Wrong argument type. Expected HEADER. Got STRING.} {
+ import std from "${topbuild}/lib/libvmod_std/.libs/libvmod_std.so";
+ backend b { .host = "127.0.0.1"; }
+ sub vcl_recv {
+ std.collect("foo");
+ }
+}
More information about the varnish-commit
mailing list