r3280 - trunk/varnish-cache/bin/varnishtest/tests

phk at projects.linpro.no phk at projects.linpro.no
Fri Oct 10 21:55:12 CEST 2008


Author: phk
Date: 2008-10-10 21:55:12 +0200 (Fri, 10 Oct 2008)
New Revision: 3280

Modified:
   trunk/varnish-cache/bin/varnishtest/tests/v00002.vtc
Log:
More coverage for vcc_backend.c



Modified: trunk/varnish-cache/bin/varnishtest/tests/v00002.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/v00002.vtc	2008-10-10 19:40:30 UTC (rev 3279)
+++ trunk/varnish-cache/bin/varnishtest/tests/v00002.vtc	2008-10-10 19:55:12 UTC (rev 3280)
@@ -1,6 +1,6 @@
 # $Id$
 
-test "VCL: test syntax/semantic checks on backend decls."
+test "VCL: test syntax/semantic checks on backend decls. (vcc_backend.c)"
 
 # Missing backend
 varnish v1 -badvcl {
@@ -111,3 +111,77 @@
 varnish v1 -badvcl {
 	director r1 anarchy { .host = "127.0.0.1"; }
 }
+
+varnish v1 -badvcl {
+	/* too many IP numbers */
+	backend b1 { .host = "cnn.com"; }
+}
+
+varnish v1 -vcl {
+	backend b1 { .host = "////"; }
+}
+
+varnish v1 -vcl {
+	backend b1 { .host = "127.0.0.1"; .port = "70000"; }
+}
+
+varnish v1 -badvcl {
+	backend b1 {
+		.host = "127.0.0.1";
+		.foobar = "foo";
+	}
+}
+
+varnish v1 -badvcl {
+	backend b1 {
+		.host = "127.0.0.1";
+		.probe = {
+			.ice = "vanilla";
+		}
+	}
+}
+
+varnish v1 -badvcl {
+	backend b1 {
+		.host = "127.0.0.1";
+		.probe = { .window = 8; }
+	}
+}
+
+varnish v1 -badvcl {
+	backend b1 {
+		.host = "127.0.0.1";
+		.probe = { .threshold = 65; }
+	}
+}
+
+varnish v1 -vcl {
+	backend b1 {
+		.host = "127.0.0.1";
+		.probe = { .threshold = 64; }
+	}
+}
+
+varnish v1 -badvcl {
+	backend b1 {
+		.host = "127.0.0.1";
+		.probe = { .threshold = 32; .window = 65; }
+	}
+}
+
+
+varnish v1 -vcl {
+	backend b1 {
+		.host = "127.0.0.1";
+		.probe = { .threshold = 32; .window = 64; }
+	}
+}
+
+
+varnish v1 -badvcl {
+	backend b1 {
+		.host = "127.0.0.1";
+		.probe = { .threshold = 32; .window = 31; }
+	}
+}
+




More information about the varnish-commit mailing list