]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTESTS: healthcheckmail: Relax health-check failure condition
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 8 Jun 2022 14:55:21 +0000 (16:55 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 8 Jun 2022 14:58:07 +0000 (16:58 +0200)
The info field in the log message may change. For instance, on FreeBSD, a
"broken pipe" is reported. Thus, the expected log message must be more
generic.

reg-tests/mailers/healthcheckmail.vtc

index 92b0967a1833eb2fde574ce3b46211d6494a83d1..00704e6015e800b3e204a92d4825d336cae03f79 100644 (file)
@@ -5,7 +5,7 @@ feature ignore_unknown_macro
 
 syslog S1 -level notice {
     recv
-    expect ~ "[^:\\[ ]\\[${h1_pid}\\]: Health check for server be1/srv1 failed.+reason: Socket error.+info: \"Connection reset by peer\".+check duration: [[:digit:]]+ms.+status: 0/1 DOWN."
+    expect ~ "[^:\\[ ]\\[${h1_pid}\\]: Health check for server be1/srv1 failed.+reason: Socket error.+info: \".+\".+check duration: [[:digit:]]+ms.+status: 0/1 DOWN."
     recv info
     expect ~ "[^:\\[ ]\\[${h1_pid}\\]: Result=SUCCESS Bytes=[[:digit:]]+"
 } -start