From: Vsevolod Stakhov Date: Thu, 25 Feb 2021 19:37:50 +0000 (+0000) Subject: [Test] Fix phishing tests X-Git-Tag: 3.0~641 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0f89e4681faea53ad69bf0f9050cd905803163ab;p=thirdparty%2Frspamd.git [Test] Fix phishing tests --- diff --git a/conf/modules.d/phishing.conf b/conf/modules.d/phishing.conf index b828542975..bd2e0bd861 100644 --- a/conf/modules.d/phishing.conf +++ b/conf/modules.d/phishing.conf @@ -21,7 +21,7 @@ phishing { # Phishtank is disabled by default in the module, so let's enable it here explicitly phishtank_enabled = true; - # Make exclusions for known redirectors + # Make exclusions for known redirectors and domains exceptions = { REDIRECTOR_FALSE = [ "https://maps.rspamd.com/rspamd/redirectors.inc.zst", diff --git a/test/functional/configs/phishing.conf b/test/functional/configs/phishing.conf index 3ea53a0d14..2b029f6874 100644 --- a/test/functional/configs/phishing.conf +++ b/test/functional/configs/phishing.conf @@ -1,7 +1,11 @@ phishing { symbol = "PHISHING"; - strict_domains = [ - "${TESTDIR}/configs/maps/strict.phishing:STRICT_PHISHING", - "${TESTDIR}/configs/maps/stricter.phishing:STRICTER_PHISHING" - ]; + strict_domains = { + STRICT_PHISHING = [ + "${TESTDIR}/configs/maps/strict.phishing", + ]; + STRICTER_PHISHING = [ + "${TESTDIR}/configs/maps/stricter.phishing" + ] + } }