]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTEST: http-capture/h00000: Relax a regex matching the log message
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 28 Mar 2019 17:30:42 +0000 (18:30 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 1 Apr 2019 13:43:40 +0000 (15:43 +0200)
Size reported in logs may differ between legacy HTTP and HTX, at least for
now. So in the regtest http-capture/h00000.vtc, we need to relax the regex
matching the log message.

reg-tests/http-capture/h00000.vtc

index 9f6ec8c5d437e37b7fa544fda6d3dc8ecf5b93ff..378838ee445d76f35909188fb15dc9ebb7fc42c2 100644 (file)
@@ -7,7 +7,7 @@ feature ignore_unknown_macro
 
 syslog S -level info {
     recv
-    expect ~ "[^:\\[ ]\\[${h_pid}\\]: .* .* fe be/srv .* 200 17641 - - ---- .* .* {HPhx8n59qjjNBLjP} {htb56qDdCcbRVTfS} \"GET / HTTP/1\\.1\""
+    expect ~ "[^:\\[ ]\\[${h_pid}\\]: .* .* fe be/srv .* 200 1[0-9]{4} - - ---- .* .* {HPhx8n59qjjNBLjP} {htb56qDdCcbRVTfS} \"GET / HTTP/1\\.1\""
 } -start
 
 server s {