[master] 2b7389394 vtc: Test case for #3706
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Tue Sep 28 15:47:05 UTC 2021
commit 2b7389394b84914a475272665930ad73540972e0
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Tue Sep 28 17:45:22 2021 +0200
vtc: Test case for #3706
diff --git a/bin/varnishtest/tests/r03706.vtc b/bin/varnishtest/tests/r03706.vtc
new file mode 100644
index 000000000..582c6f922
--- /dev/null
+++ b/bin/varnishtest/tests/r03706.vtc
@@ -0,0 +1,18 @@
+varnishtest "Null regex subject in ban expression"
+
+server s1 {
+ rxreq
+ txresp
+} -start
+
+varnish v1 -vcl+backend { } -start
+
+client c1 {
+ txreq
+ rxresp
+ expect resp.status == 200
+} -run
+
+varnish v1 -cliok "ban req.http.nonexistent ~ foo"
+
+client c1 -run
More information about the varnish-commit
mailing list