aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional/cases
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-08-11 16:20:49 +0100
committerAndrew Lewis <nerf@judo.za.org>2016-08-11 16:20:49 +0100
commitfde7a15af4418789b037d3f275201e436eb42578 (patch)
treeb2ddfbed1edb18a1734a0107531f6d78a659075f /test/functional/cases
parent987e1afced8e3f8160cd928205743205d57dedb6 (diff)
downloadrspamd-fde7a15af4418789b037d3f275201e436eb42578.tar.gz
rspamd-fde7a15af4418789b037d3f275201e436eb42578.zip
[Test] Some tests for SpamAssassin WLBLEval
Diffstat (limited to 'test/functional/cases')
-rw-r--r--test/functional/cases/135_spamassassin.robot27
1 files changed, 21 insertions, 6 deletions
diff --git a/test/functional/cases/135_spamassassin.robot b/test/functional/cases/135_spamassassin.robot
index 09904651d..f2c24a294 100644
--- a/test/functional/cases/135_spamassassin.robot
+++ b/test/functional/cases/135_spamassassin.robot
@@ -11,23 +11,38 @@ ${RSPAMD_SCOPE} Suite
*** Test Cases ***
Freemail Scan
- Set Suite Variable ${FREEMAIL_RESULT} ${EMPTY}
${FREEMAIL_RESULT} = Scan Message With Rspamc ${TESTDIR}/messages/freemail.eml
... --from faked.asdfjisiwosp372@outlook.com
+ Set Suite Variable ${FREEMAIL_RESULT} ${FREEMAIL_RESULT}
Check Rspamc ${FREEMAIL_RESULT} ${EMPTY}
- Set Suite Variable ${FREEMAIL_RESULT} ${FREEMAIL_RESULT.stdout}
Freemail From
- Should Contain ${FREEMAIL_RESULT} FREEMAIL_FROM
+ Should Contain ${FREEMAIL_RESULT.stdout} FREEMAIL_FROM
Freemail From Enddigit
- Should Contain ${FREEMAIL_RESULT} FREEMAIL_ENVFROM_END_DIGIT
+ Should Contain ${FREEMAIL_RESULT.stdout} FREEMAIL_ENVFROM_END_DIGIT
Freemail Subject
- Should Contain ${FREEMAIL_RESULT} FREEMAIL_SUBJECT
+ Should Contain ${FREEMAIL_RESULT.stdout} FREEMAIL_SUBJECT
Metas
- Should Contain ${FREEMAIL_RESULT} TEST_META3
+ Should Contain ${FREEMAIL_RESULT.stdout} TEST_META3
+
+WLBL From Whitelist
+ ${BAD_MESSAGE_RESULT} = Scan Message With Rspamc ${TESTDIR}/messages/bad_message.eml
+ Set Suite Variable ${BAD_MESSAGE_RESULT} ${BAD_MESSAGE_RESULT}
+ Check Rspamc ${BAD_MESSAGE_RESULT} USER_IN_WHITELIST (
+
+WLBL To Whitelist
+ Should Contain ${BAD_MESSAGE_RESULT.stdout} USER_IN_WHITELIST_TO
+
+WLBL From Blacklist
+ ${UTF_RESULT} = Scan Message With Rspamc ${TESTDIR}/messages/utf.eml
+ Set Suite Variable ${UTF_RESULT} ${UTF_RESULT}
+ Check Rspamc ${UTF_RESULT} USER_IN_BLACKLIST (
+
+WLBL To Blacklist
+ Should Contain ${UTF_RESULT.stdout} USER_IN_BLACKLIST_TO
*** Keywords ***
SpamAssassin Setup