From: Aurelien DARRAGON Date: Wed, 3 May 2023 14:55:52 +0000 (+0200) Subject: REGTESTS: use lua mailer script for mailers tests X-Git-Tag: v2.8-dev10~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7963fb5;p=thirdparty%2Fhaproxy.git REGTESTS: use lua mailer script for mailers tests Since mailers/healthcheckmail.vtc already requires lua to emulate the SMTP server for the test, force it to use lua mailers example script to send email-alerts so we don't rely anymore on legacy tcpcheck mailers implementation. This is done by simply loading examples/mailers.lua (as a symlink) from haproxy config file. --- diff --git a/reg-tests/mailers/healthcheckmail.vtc b/reg-tests/mailers/healthcheckmail.vtc index 821250fc83..208d350f6f 100644 --- a/reg-tests/mailers/healthcheckmail.vtc +++ b/reg-tests/mailers/healthcheckmail.vtc @@ -12,6 +12,7 @@ syslog S1 -level notice { haproxy h1 -conf { global + lua-load ${testdir}/mailers.lua lua-load ${testdir}/healthcheckmail.lua defaults diff --git a/reg-tests/mailers/mailers.lua b/reg-tests/mailers/mailers.lua new file mode 120000 index 0000000000..5ea4673d63 --- /dev/null +++ b/reg-tests/mailers/mailers.lua @@ -0,0 +1 @@ +../../examples/lua/mailers.lua \ No newline at end of file