commit bdb0a52: [Test] Enrich rbl tests
Vsevolod Stakhov
vsevolod at highsecure.ru
Fri Apr 17 11:00:11 UTC 2020
Author: Vsevolod Stakhov
Date: 2020-04-17 11:56:21 +0100
URL: https://github.com/rspamd/rspamd/commit/bdb0a5283582c205603593256c241558221653ab (HEAD -> master)
[Test] Enrich rbl tests
---
test/functional/cases/300_rbl.robot | 3 ++-
test/functional/configs/rbl.conf | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
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 = {
More information about the Commits
mailing list