commit 0f89e46: [Test] Fix phishing tests

Vsevolod Stakhov vsevolod at highsecure.ru
Thu Feb 25 19:42:10 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-02-25 19:37:50 +0000
URL: https://github.com/rspamd/rspamd/commit/0f89e4681faea53ad69bf0f9050cd905803163ab (HEAD -> master)

[Test] Fix phishing tests

---
 conf/modules.d/phishing.conf          |  2 +-
 test/functional/configs/phishing.conf | 12 ++++++++----
 2 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/conf/modules.d/phishing.conf b/conf/modules.d/phishing.conf
index b82854297..bd2e0bd86 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 3ea53a0d1..2b029f687 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"
+    ]
+  }
 }


More information about the Commits mailing list