[master] 28ba64820 It is now possible to match empty fields
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Thu Oct 24 16:58:06 UTC 2019
commit 28ba64820ac71a832e3169da3a706ba610b5b1dc
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Mon Dec 24 12:14:02 2018 +0100
It is now possible to match empty fields
The VSL query could in theory do that, but I don't think it was
actionable without double quotes to delimit empty fields or fields
containing spaces.
diff --git a/bin/varnishtest/tests/r02872.vtc b/bin/varnishtest/tests/r02872.vtc
index 657cd6c7f..e7d1174fe 100644
--- a/bin/varnishtest/tests/r02872.vtc
+++ b/bin/varnishtest/tests/r02872.vtc
@@ -39,3 +39,8 @@ shell -expect "Went healthy" {
varnishlog -d -n ${v1_name} -g raw \
-q 'Backend_health[10] eq "HTTP/1.1 200 OK"'
}
+
+# s1 starts sick before the first probe request is made
+shell -expect "Went sick" {
+ varnishlog -d -n ${v1_name} -g raw -q 'Backend_health[10] eq ""'
+}
More information about the varnish-commit
mailing list