From: Vsevolod Stakhov Date: Sun, 3 May 2026 20:31:23 +0000 (+0100) Subject: [Fix] url_redirector tests: fix message format and variable syntax X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2552a80d1670c52d95ae28c40f4aeafb28d8ec8;p=thirdparty%2Frspamd.git [Fix] url_redirector tests: fix message format and variable syntax - Convert test messages to HTML format for proper URL extraction - Fix variable syntax error in test suite 164 - Ensure chain redirect tests work correctly in CI environment --- diff --git a/test/functional/cases/164_url_redirector_pr6014.robot b/test/functional/cases/164_url_redirector_pr6014.robot index 4b1b8219e2..be5ca5fd62 100644 --- a/test/functional/cases/164_url_redirector_pr6014.robot +++ b/test/functional/cases/164_url_redirector_pr6014.robot @@ -14,8 +14,7 @@ ${MULTIPART_MESSAGE} ${RSPAMD_TESTDIR}/messages/chain_multipart.eml ${REDIS_SCOPE} Suite ${RSPAMD_SCOPE} Suite ${RSPAMD_URL_TLD} ${RSPAMD_TESTDIR}/../lua/unit/test_tld.dat -${SETTINGS} {symbols_enabled=[URL_REDIRECTOR_CHECK]} -${SETTINGS_WITH_SYMBOL} {symbols_enabled=[URL_REDIRECTOR_CHECK,URL_REDIRECTOR]} +${SETTINGS} {symbols_enabled=[URL_REDIRECTOR_CHECK]} *** Test Cases *** CHAIN REDIRECT RESOLUTION WITH INTERMEDIATE HOPS diff --git a/test/functional/messages/chain_multipart.eml b/test/functional/messages/chain_multipart.eml index 1600170f62..e93285ec4b 100644 --- a/test/functional/messages/chain_multipart.eml +++ b/test/functional/messages/chain_multipart.eml @@ -1,7 +1,11 @@ MIME-Version: 1.0 -Content-Type: text/plain; charset="utf-8" +Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable -Test message with redirect chain -http://127.0.0.1:18080/chain1 -http://127.0.0.1:18080/redirect2 + + +

Test message with redirect chains

+Chain 1 +Redirect 2 + + diff --git a/test/functional/messages/chain_redirect.eml b/test/functional/messages/chain_redirect.eml index 6bbcd6748f..2c30f0fb25 100644 --- a/test/functional/messages/chain_redirect.eml +++ b/test/functional/messages/chain_redirect.eml @@ -1,3 +1,9 @@ -Content-type: text/plain +MIME-Version: 1.0 +Content-Type: text/html; charset="utf-8" +Content-Transfer-Encoding: quoted-printable -Test chain redirect http://127.0.0.1:18080/chain1 + + +chain link + +