r4305 - branches/2.0/varnish-cache/bin/varnishtest/tests
tfheen at projects.linpro.no
tfheen at projects.linpro.no
Thu Oct 8 16:09:55 CEST 2009
Author: tfheen
Date: 2009-10-08 16:09:54 +0200 (Thu, 08 Oct 2009)
New Revision: 4305
Added:
branches/2.0/varnish-cache/bin/varnishtest/tests/v00024.vtc
Log:
Merge r4187: New test for string comparisons.
Copied: branches/2.0/varnish-cache/bin/varnishtest/tests/v00024.vtc (from rev 4187, trunk/varnish-cache/bin/varnishtest/tests/v00024.vtc)
===================================================================
--- branches/2.0/varnish-cache/bin/varnishtest/tests/v00024.vtc (rev 0)
+++ branches/2.0/varnish-cache/bin/varnishtest/tests/v00024.vtc 2009-10-08 14:09:54 UTC (rev 4305)
@@ -0,0 +1,27 @@
+# $Id$
+
+test "Test that headers can be compared"
+
+server s1 {
+ rxreq
+ expect req.url == "/foo"
+ txresp -status 200 -body "1"
+} -start
+
+varnish v1 -vcl+backend {
+ sub vcl_recv {
+ if (req.http.etag == req.http.if-none-match) {
+ error 400 "FOO";
+ }
+ }
+} -start
+
+client c1 {
+ txreq -url "/foo"
+ rxresp
+ expect resp.status == 200
+ expect resp.bodylen == 1
+ txreq -url "/foo" -hdr "etag: foo" -hdr "if-none-match: foo"
+ rxresp
+ expect resp.status == 400
+} -run
More information about the varnish-commit
mailing list