]> err.no Git - varnish/commitdiff
Add bodylen expects to the ESI test cases
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 3 Feb 2009 17:34:08 +0000 (17:34 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 3 Feb 2009 17:34:08 +0000 (17:34 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3572 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishtest/tests/e00001.vtc
varnish-cache/bin/varnishtest/tests/e00002.vtc
varnish-cache/bin/varnishtest/tests/e00003.vtc
varnish-cache/bin/varnishtest/tests/e00004.vtc
varnish-cache/bin/varnishtest/tests/e00005.vtc
varnish-cache/bin/varnishtest/tests/e00006.vtc
varnish-cache/bin/varnishtest/tests/e00008.vtc
varnish-cache/bin/varnishtest/tests/e00009.vtc
varnish-cache/bin/varnishtest/tests/e00014.vtc

index 517fb9a2284281a42936946a274c659fbaacc96e..db84e6c2c0bed6c8fbcc6ca7f07e2e476e939fcb 100644 (file)
@@ -17,12 +17,13 @@ varnish v1 -vcl+backend {
        sub vcl_fetch {
                esi;
        }
-} -start
+} -start -cliok "param.set esi_syntax 4"
 
 client c1 {
        txreq 
        rxresp
        expect resp.status == 200
+       expect resp.bodylen == 35
 }
 
 client c1 -run
index 73d7d2e1899979caea13b50625c54884c8bac234..eb688a3d7cdd1901b406855c17002f41aa471208 100644 (file)
@@ -24,6 +24,7 @@ client c1 {
        txreq 
        rxresp
        expect resp.status == 200
+       expect resp.bodylen == 35
 }
 
 client c1 -run
index 61d8821006a008219ab455a64d3c5bcfe5dc71c4..b0d9b5407819b95667d97f8b0c370ba88faeca8e 100644 (file)
@@ -27,6 +27,7 @@ varnish v1 -vcl+backend {
 client c1 {
        txreq 
        rxresp
+       expect resp.bodylen == 65
        expect resp.status == 200
 }
 
index 1a4305076b9a1d3d4732f90e73c8a2a693d28683..564a21ea9a68d99eb9884026c1d53cf96168eeff 100644 (file)
@@ -28,6 +28,7 @@ client c1 {
        txreq 
        rxresp
        expect resp.status == 200
+       expect resp.bodylen == 67
 }
 
 client c1 -run
index b886b7d54a5807da169bbde1eec6429075b722b2..361e48b13639ca2258618842170eac37d754ed9a 100644 (file)
@@ -29,6 +29,7 @@ client c1 {
        txreq -url /foo/bar
        rxresp
        expect resp.status == 200
+       expect resp.bodylen == 67
 }
 
 client c1 -run
index d503900b64d4804de24684775e5a6ff399b1b612..b63f045cce53b8e63fd5ca46a050658392dd7d05 100644 (file)
@@ -40,6 +40,7 @@ client c1 {
        txreq -url /foo/bar -hdr "Host: froboz"
        rxresp
        expect resp.status == 200
+       expect resp.bodylen == 67
 }
 
 client c1 -run
index 9ff7fe0a8126143b6f2153b10481e6f1dc475db5..a95d0497fbfa40e03ee525c1553a4d5114ec8129 100644 (file)
@@ -67,6 +67,7 @@ client c1 {
        txreq 
        rxresp
        expect resp.status == 200
+       expect resp.bodylen == 231
 }
 
 client c1 -run
index 0b639cfd12be95195194fcd4fb22d22829f4a217..066edf877790340f3c9b615491fc99143b43bd70 100644 (file)
@@ -31,6 +31,7 @@ client c1 {
        txreq 
        rxresp
        expect resp.status == 200
+       expect resp.bodylen == 72
        expect resp.http.content-length == 72
 } -run
 
@@ -40,5 +41,6 @@ client c1 {
        txreq -url bar
        rxresp
        expect resp.status == 200
+       expect resp.bodylen == 37
        expect resp.http.transfer-encoding == "chunked"
 } -run
index 10d9e9e239a35bf9cd2e5691fad632d02c74eec0..16af7f07325ccc810e2b2bb13f616bbb61f7081e 100644 (file)
@@ -20,6 +20,7 @@ varnish v1 -cliok "debug.fragfetch 4"
 client c1 {
         txreq -url /foo
         rxresp
+       expect resp.bodylen == 49
 } -run
 
 varnish v1 -expect esi_parse == 0