From: Vsevolod Stakhov Date: Sat, 4 Oct 2025 20:35:19 +0000 (+0100) Subject: [Minor] Use FUZZY_INCLUDE for HTML fuzzy test configuration X-Git-Tag: 3.14.0~87^2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da3d967e540c2e7d06a8909b777e04b5d003fd75;p=thirdparty%2Frspamd.git [Minor] Use FUZZY_INCLUDE for HTML fuzzy test configuration Create fuzzy-html.conf with HTML-specific settings and use RSPAMD_FUZZY_INCLUDE variable to include it in the fuzzy rule. This is the correct way to add per-test rule settings. --- diff --git a/test/functional/cases/120_fuzzy/html-fuzzy.robot b/test/functional/cases/120_fuzzy/html-fuzzy.robot index 26be91392a..b27e9bd8c8 100644 --- a/test/functional/cases/120_fuzzy/html-fuzzy.robot +++ b/test/functional/cases/120_fuzzy/html-fuzzy.robot @@ -12,8 +12,8 @@ ${HTML_PHISHING} ${RSPAMD_TESTDIR}/messages/html_phishing.eml HTML Fuzzy Setup Mumhash Set Suite Variable ${RSPAMD_FUZZY_ALGORITHM} mumhash Set Suite Variable ${RSPAMD_FUZZY_SERVER_MODE} servers - # Use standard test flags and add HTML-specific settings - Set Suite Variable ${SETTINGS_FUZZY_CHECK} servers = "${RSPAMD_LOCAL_ADDR}:${RSPAMD_PORT_FUZZY}"; html_shingles = true; min_html_tags = 5; html_weight = 1.0; + # Include HTML-specific settings via FUZZY_INCLUDE + Set Suite Variable ${RSPAMD_FUZZY_INCLUDE} ${RSPAMD_TESTDIR}/configs/fuzzy-html.conf Rspamd Redis Setup HTML Fuzzy Add Test diff --git a/test/functional/configs/fuzzy-html.conf b/test/functional/configs/fuzzy-html.conf new file mode 100644 index 0000000000..8ad1849420 --- /dev/null +++ b/test/functional/configs/fuzzy-html.conf @@ -0,0 +1,4 @@ +# HTML fuzzy hashing settings for tests +html_shingles = true; +min_html_tags = 5; +html_weight = 1.0;