From 7963fb5669ee2dbef5c4765b83afe6d336f4c8c5 Mon Sep 17 00:00:00 2001 From: Aurelien DARRAGON Date: Wed, 3 May 2023 16:55:52 +0200 Subject: [PATCH] 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. --- reg-tests/mailers/healthcheckmail.vtc | 1 + reg-tests/mailers/mailers.lua | 1 + 2 files changed, 2 insertions(+) create mode 120000 reg-tests/mailers/mailers.lua diff --git a/reg-tests/mailers/healthcheckmail.vtc b/reg-tests/mailers/healthcheckmail.vtc index 821250fc8..208d350f6 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 000000000..5ea4673d6 --- /dev/null +++ b/reg-tests/mailers/mailers.lua @@ -0,0 +1 @@ +../../examples/lua/mailers.lua \ No newline at end of file