]> err.no Git - varnish/commitdiff
More vcc_acl.c coverage testing
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 5 Oct 2008 20:51:01 +0000 (20:51 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 5 Oct 2008 20:51:01 +0000 (20:51 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3252 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishtest/tests/v00017.vtc

index 4cafb6c9e5d301c1ff74dfb1dd41eb56ef923638..94ccf75d6a50b6775f197627fa8ee1cca5d1a259 100644 (file)
@@ -17,8 +17,8 @@ varnish v1 -badvcl {
 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 -badvcl {
 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; } }
+}
+