REGTESTS: Add script to test abortonclose option
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 7 Apr 2021 12:37:07 +0000 (14:37 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 25 May 2021 08:37:22 +0000 (10:37 +0200)
commitc2471edc6075f8af6d03a372d9475e186a444c49
tree0ca50c1ecb56d034abc858ca3afa4482cb4eea59
parent10631d94b6bd1814f87d81ce99003d49583ecd85
REGTESTS: Add script to test abortonclose option

This script test abortonclose option for HTTP/1 client only. It may be
backported as far as 2.0. But on the 2.2 and prior, the syslog part must be
adapted to catch log messages emitted by proxy during HAProxy
startup. Following lines must be added :

    recv
    expect ~ "[^:\\[ ]\\[${h1_pid}\\]: Proxy fe1 started."
    recv
    expect ~ "[^:\\[ ]\\[${h1_pid}\\]: Proxy fe2 started."

(cherry picked from commit 16b37510bc1114ab7603240f8bbfeea20e5ee23b)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
reg-tests/http-messaging/http_abortonclose.vtc [new file with mode: 0644]