[master] b999dba add coverage for obj.status
Poul-Henning Kamp
phk at FreeBSD.org
Mon Sep 7 12:06:56 CEST 2015
commit b999dba2308474d2ac70c2d644a753bc6ab3bf4f
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Sep 7 10:06:41 2015 +0000
add coverage for obj.status
diff --git a/bin/varnishtest/tests/v00025.vtc b/bin/varnishtest/tests/v00025.vtc
index fbb0fb8..02788d4 100644
--- a/bin/varnishtest/tests/v00025.vtc
+++ b/bin/varnishtest/tests/v00025.vtc
@@ -42,6 +42,7 @@ varnish v1 -arg "-i J.F.Nobody" -vcl+backend {
}
sub vcl_hit {
+ if (obj.status != 200) { return(synth(700)); }
if (obj.proto) { }
if (obj.reason) { }
if (obj.keep > 1m) { }
More information about the varnish-commit
mailing list