Browse Source

[Test] Fix phishing tests

tags/3.0
Vsevolod Stakhov 3 years ago
parent
commit
0f89e4681f
2 changed files with 9 additions and 5 deletions
  1. 1
    1
      conf/modules.d/phishing.conf
  2. 8
    4
      test/functional/configs/phishing.conf

+ 1
- 1
conf/modules.d/phishing.conf View File

@@ -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",

+ 8
- 4
test/functional/configs/phishing.conf View File

@@ -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"
]
}
}

Loading…
Cancel
Save