]> git.kaiwu.me - haproxy.git/commitdiff
REGTESTS: tcp-check-ssl: also support errno reporting on second test
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 24 Nov 2026 15:30:55 +0000 (16:30 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 24 Nov 2026 15:34:53 +0000 (16:34 +0100)
The following patch adjusts the regexp pattern tested against health
check reported info, as newer OpenSSL now also provides an additional
errno status.

  5e92b1a23b0e7065e4dbef52c8a31d8ce03ae309
  REGTESTS: tcp-check-ssl: tolerate an errno info in the SSL handshake failure

This new check is fine, but the fix is not sufficient as a similar
pattern is reused later. Adjust it as well to ensure the test does not
fail anymore.

reg-tests/checks/tcp-check-ssl.vtc

index d8cca94dafb56a138b7683a05952400ed9e4b594..ca3515f5f0864335222f9cb63736b9b21ff5a16f 100644 (file)
@@ -23,7 +23,7 @@ syslog S3 -level notice {
 
 syslog S4 -level notice {
     recv
-    expect ~ "[^:\\[ ]\\[${h1_pid}\\]: Health check for server be4/srv failed, reason: Layer6 invalid response.+info: \"(Connection closed during SSL handshake|SSL handshake failure) at step 1 of tcp-check \\(connect\\)\".+check duration: [[:digit:]]+ms, status: 0/1 DOWN."
+    expect ~ "[^:\\[ ]\\[${h1_pid}\\]: Health check for server be4/srv failed, reason: Layer6 invalid response.+info: \"(Connection closed during SSL handshake|SSL handshake failure).* at step 1 of tcp-check \\(connect\\)\".+check duration: [[:digit:]]+ms, status: 0/1 DOWN."
 } -start