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

phk at projects.linpro.no phk at projects.linpro.no
Sun Oct 5 22:51:01 CEST 2008


Author: phk
Date: 2008-10-05 22:51:01 +0200 (Sun, 05 Oct 2008)
New Revision: 3252

Modified:
   trunk/varnish-cache/bin/varnishtest/tests/v00017.vtc
Log:
More vcc_acl.c coverage testing



Modified: trunk/varnish-cache/bin/varnishtest/tests/v00017.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/v00017.vtc	2008-10-05 20:37:15 UTC (rev 3251)
+++ trunk/varnish-cache/bin/varnishtest/tests/v00017.vtc	2008-10-05 20:51:01 UTC (rev 3252)
@@ -17,8 +17,8 @@
 varnish v1 -vcl {
 	backend b { .host = "127.0.0.1"; }
 	acl a {
-		"1.2.3.4";
-		"1.2.3.4";
+		"1.2.3.4"/31;
+		"1.2.3.4"/31;
 	}
 	sub vcl_recv { if (client.ip ~ a) { pass; } }
 }
@@ -59,9 +59,33 @@
 varnish v1 -vcl {
 	backend b { .host = "127.0.0.1"; }
 	acl a {
-		"10.1.3"; 
+		! "10.1.3"; 
 		("en.lille.nisse.rejste"); 
 	}
 	sub vcl_recv { if (client.ip ~ a) { pass; } }
 }
 
+varnish v1 -vcl {
+	backend b { .host = "127.0.0.1"; }
+	sub vcl_recv { if (client.ip == "127.0.0.1") { pass; } }
+	sub vcl_miss { if (client.ip != "127.0.0.1") { pass; } }
+}
+
+varnish v1 -badvcl {
+	backend b { .host = "127.0.0.1"; }
+	sub vcl_recv { if (client.ip > "127.0.0.1") { pass; } }
+}
+
+varnish v1 -vcl {
+	backend b { .host = "127.0.0.1"; }
+	acl a {
+		"10.1.1"/25; 
+		"10.1.3"/26; 
+		"10.1.3"/25; 
+		"10.1.2"/25; 
+		"10.1.2"/26; 
+		"10.1.4"/25; 
+	}
+	sub vcl_recv { if (client.ip ~ a) { pass; } }
+}
+




More information about the varnish-commit mailing list