r2884 - trunk/varnish-cache/bin/varnishtest/tests
phk at projects.linpro.no
phk at projects.linpro.no
Mon Jul 7 19:42:42 CEST 2008
Author: phk
Date: 2008-07-07 19:42:42 +0200 (Mon, 07 Jul 2008)
New Revision: 2884
Modified:
trunk/varnish-cache/bin/varnishtest/tests/v00002.vtc
Log:
Add a test-case for backend reference errors.
Modified: trunk/varnish-cache/bin/varnishtest/tests/v00002.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/v00002.vtc 2008-07-07 17:42:27 UTC (rev 2883)
+++ trunk/varnish-cache/bin/varnishtest/tests/v00002.vtc 2008-07-07 17:42:42 UTC (rev 2884)
@@ -34,3 +34,13 @@
.connect_timeout = 1m;
}
}
+
+# Check backend reference by name
+varnish v1 -badvcl {
+ backend b1 { .host = "127.0.0.2"; }
+ director r1 random {
+ { .weight = 1; .backend = b1; }
+ { .weight = 1; .backend = { .host = "127.0.0.3"; } }
+ { .weight = 1; .backend = 3745; } // Brownie points for getting the joke
+ }
+}
More information about the varnish-commit
mailing list