[master] 7abf829 Add testcase for the query operators
Martin Blix Grydeland
martin at varnish-cache.org
Tue Oct 1 14:48:17 CEST 2013
commit 7abf8292a063427ab7fbd585cca5f9d24d03cd8e
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date: Wed Sep 18 12:17:31 2013 +0200
Add testcase for the query operators
diff --git a/bin/varnishtest/tests/l00001.vtc b/bin/varnishtest/tests/l00001.vtc
new file mode 100644
index 0000000..a7c7f32
--- /dev/null
+++ b/bin/varnishtest/tests/l00001.vtc
@@ -0,0 +1,22 @@
+varnishtest "Test VSL query operators"
+
+server s1 {
+ rxreq
+ txresp
+} -start
+
+varnish v1 -vcl+backend {
+} -start
+
+logexpect l1 -v v1
+
+client c1 {
+ txreq -hdr "Foo: bar"
+ rxresp
+ expect resp.status == 200
+} -run
+
+logexpect l1 -d 1 -g request -q "Begin eq 'req 1000'" {
+ expect * * Begin
+ expect * = ReqEnd
+} -run
More information about the varnish-commit
mailing list