]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REGTEST: mailers: add new test for 'mailers' section
authorPiBa-NL <PiBa.NL.dev@gmail.com>
Sun, 23 Dec 2018 20:06:31 +0000 (21:06 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 8 Jan 2019 09:03:52 +0000 (10:03 +0100)
commitc3949d4c000ee6e863950663f89e74ed7e2fc253
tree1a46901cc5c8cf683b1c56bb78d9e10e3f0d3dfb
parenta1065a1a4f7cb1f18d3036751c6451a7666cae5b
REGTEST: mailers: add new test for 'mailers' section

This test verifies the mailers section works properly by checking that
it sends the proper amount of mails when health-checks are changing and
or marking a server up/down

The test currently fails on all versions of haproxy i tried with varying
results:

- 1.9.0 produces thousands of mails.
- 1.8.14 only sends 1 mail, needs a 200ms 'timeout mail' to succeed
- 1.7.11 only sends 1 mail, needs a 200ms 'timeout mail' to succeed
- 1.6 only sends 1 mail, (does not have the 'timeout mail' setting implemented)
reg-tests/mailers/k_healthcheckmail.lua [new file with mode: 0644]
reg-tests/mailers/k_healthcheckmail.vtc [new file with mode: 0644]