diff options
Diffstat (limited to 'test/functional/cases/400_known_senders.robot')
-rw-r--r-- | test/functional/cases/400_known_senders.robot | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/test/functional/cases/400_known_senders.robot b/test/functional/cases/400_known_senders.robot new file mode 100644 index 0000000..f258113 --- /dev/null +++ b/test/functional/cases/400_known_senders.robot @@ -0,0 +1,36 @@ +*** Settings *** +Suite Setup Rspamd Redis Setup +Suite Teardown Rspamd Redis Teardown +Library ${RSPAMD_TESTDIR}/lib/rspamd.py +Resource ${RSPAMD_TESTDIR}/lib/rspamd.robot +Variables ${RSPAMD_TESTDIR}/lib/vars.py + +*** Variables *** +${CONFIG} ${RSPAMD_TESTDIR}/configs/known_senders.conf +${REDIS_SCOPE} Suite +${RSPAMD_SCOPE} Suite + +*** Test Cases *** +UNKNOWN SENDER + Scan File ${RSPAMD_TESTDIR}/messages/spam_message.eml + ... Settings={symbols_enabled [KNOWN_SENDER]} + Do Not Expect Symbol KNOWN_SENDER + Expect Symbol UNKNOWN_SENDER + +UNKNOWN SENDER BECOMES KNOWN + Scan File ${RSPAMD_TESTDIR}/messages/spam_message.eml + ... Settings={symbols_enabled [KNOWN_SENDER]} + Expect Symbol KNOWN_SENDER + Do Not Expect Symbol UNKNOWN_SENDER + +UNKNOWN SENDER WRONG DOMAIN + Scan File ${RSPAMD_TESTDIR}/messages/empty_part.eml + ... Settings={symbols_enabled [KNOWN_SENDER]} + Do Not Expect Symbol KNOWN_SENDER + Do Not Expect Symbol UNKNOWN_SENDER + +UNKNOWN SENDER WRONG DOMAIN RESCAN + Scan File ${RSPAMD_TESTDIR}/messages/empty_part.eml + ... Settings={symbols_enabled [KNOWN_SENDER]} + Do Not Expect Symbol KNOWN_SENDER + Do Not Expect Symbol UNKNOWN_SENDER |