[master] 66c12d8 Add grouping and and/or precedence tests
Martin Blix Grydeland
martin at varnish-cache.org
Tue Oct 1 14:48:18 CEST 2013
commit 66c12d8feedce91eb67f81b4062fbc46df6a6844
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date: Fri Sep 20 16:29:35 2013 +0200
Add grouping and and/or precedence tests
diff --git a/bin/varnishtest/tests/l00001.vtc b/bin/varnishtest/tests/l00001.vtc
index 0de5614..4d8c12d 100644
--- a/bin/varnishtest/tests/l00001.vtc
+++ b/bin/varnishtest/tests/l00001.vtc
@@ -148,3 +148,17 @@ logexpect l1 -d 1 -g vxid -q "RespStatus == 404 or !RespStatus ~ '^404$'" {
expect * = ReqEnd
expect * = End
} -run
+
+# Test grouping
+logexpect l1 -d 1 -g vxid -q "(RespStatus == 200 or RespStatus == 404) and RespStatus == 200" {
+ expect 0 * Begin req
+ expect * = ReqEnd
+ expect * = End
+} -run
+
+# Test and/or precedence
+logexpect l1 -d 1 -g vxid -q "RespStatus == 200 or RespStatus == 503 and RespStatus == 404" {
+ expect 0 * Begin req
+ expect * = ReqEnd
+ expect * = End
+} -run
More information about the varnish-commit
mailing list