aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-04-17 11:56:21 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-04-17 11:56:21 +0100
commitbdb0a5283582c205603593256c241558221653ab (patch)
tree3cfeb102c7533c5bda590bac746792932e220aeb /test
parent848ad884606738f882190a6311bd32d579737a94 (diff)
downloadrspamd-bdb0a5283582c205603593256c241558221653ab.tar.gz
rspamd-bdb0a5283582c205603593256c241558221653ab.zip
[Test] Enrich rbl tests
Diffstat (limited to 'test')
-rw-r--r--test/functional/cases/300_rbl.robot3
-rw-r--r--test/functional/configs/rbl.conf1
2 files changed, 3 insertions, 1 deletions
diff --git a/test/functional/cases/300_rbl.robot b/test/functional/cases/300_rbl.robot
index ef858558c..a8f72aed6 100644
--- a/test/functional/cases/300_rbl.robot
+++ b/test/functional/cases/300_rbl.robot
@@ -35,6 +35,7 @@ RBL RECEIVED HIT
RBL FROM HIT WL
${result} = Scan Message With Rspamc ${MESSAGE} -i 4.3.2.4
Check Rspamc ${result} FAKE_RBL_CODE_2 inverse=True
+ Should Contain ${result.stdout} FAKE_WL_RBL_CODE_2 (1.00)[4.3.2.4:from, FAKE_RBL_UNKNOWN]
EMAILBL Compose Map 1
${result} = Scan Message With Rspamc ${TESTDIR}/messages/url14.eml
@@ -47,7 +48,7 @@ EMAILBL Compose Map 2
EMAILBL Compose Map 3
${result} = Scan Message With Rspamc ${TESTDIR}/messages/url16.eml
Should Contain ${result.stdout} RSPAMD_EMAILBL (0.00)[41.black.sanchez.com:email]
-
+
*** Keywords ***
Rbl Setup
diff --git a/test/functional/configs/rbl.conf b/test/functional/configs/rbl.conf
index da5c59b53..2318f5b81 100644
--- a/test/functional/configs/rbl.conf
+++ b/test/functional/configs/rbl.conf
@@ -34,6 +34,7 @@ rbl {
RSPAMD_EMAILBL {
rbl = "test8.uribl";
url_compose_map = "${TESTDIR}/configs/maps/url_compose_map_for_mails.list";
+ ignore_defaults = true;
emails = true;
emails_domainonly = true
returncodes = {