Mailing List Archive

[master] 72fba6f5e Failure coverage for vcl_recv
commit 72fba6f5ebc97493929deecae98b454ec31df209
Author: Dridi Boukelmoune <dridi.boukelmoune@gmail.com>
Date: Fri Jun 5 16:27:46 2020 +0200

Failure coverage for vcl_recv

Refs #3303

diff --git a/bin/varnishtest/tests/b00072.vtc b/bin/varnishtest/tests/b00072.vtc
new file mode 100644
index 000000000..55e19b9d9
--- /dev/null
+++ b/bin/varnishtest/tests/b00072.vtc
@@ -0,0 +1,21 @@
+varnishtest "failure in vcl_recv"
+
+varnish v1 -vcl {
+ import vtc;
+
+ backend be none;
+
+ sub vcl_recv {
+ return (fail);
+ }
+
+ sub vcl_hash {
+ vtc.panic("unreachable");
+ }
+} -start
+
+client c1 {
+ txreq
+ rxresp
+ expect resp.status == 503
+} -run
_______________________________________________
varnish-commit mailing list
varnish-commit@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit