]> err.no Git - varnish/commitdiff
Test caching of synthetic error pages (broken since 2266). This will need revisiting...
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 24 Jul 2008 12:33:32 +0000 (12:33 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 24 Jul 2008 12:33:32 +0000 (12:33 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3014 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishtest/tests/b00015.vtc [new file with mode: 0644]

diff --git a/varnish-cache/bin/varnishtest/tests/b00015.vtc b/varnish-cache/bin/varnishtest/tests/b00015.vtc
new file mode 100644 (file)
index 0000000..32e1733
--- /dev/null
@@ -0,0 +1,19 @@
+# $Id$
+
+test "Check synthetic error page caching"
+
+server s1 {
+       rxreq
+       txresp -status 503 -msg "Server Error"
+} -start
+
+varnish v1 -vcl+backend { } -start
+
+client c1 {
+       txreq -url "/"
+       rxresp
+       expect resp.status == 503
+       txreq -url "/"
+       rxresp
+       expect resp.status == 503
+} -run