| 1 |
*** Settings *** |
| 2 |
Library ${RSPAMD_TESTDIR}/lib/rspamd.py |
| 3 |
Resource ${RSPAMD_TESTDIR}/lib/rspamd.robot |
| 4 |
Variables ${RSPAMD_TESTDIR}/lib/vars.py |
| 5 |
|
| 6 |
*** Variables *** |
| 7 |
${MESSAGE} ${RSPAMD_TESTDIR}/messages/spam_message.eml |
| 8 |
${MESSAGE2} ${RSPAMD_TESTDIR}/messages/spam.eml |
| 9 |
${MESSAGE3} ${RSPAMD_TESTDIR}/messages/freemail.eml |
| 10 |
${SETTINGS_GREYLIST} {symbols_enabled = [GREYLIST_CHECK, GREYLIST_SAVE], symbols = [FOUR_POINTS]} |
| 11 |
${SETTINGS_NOGREYLIST} {symbols_enabled = [GREYLIST_CHECK, GREYLIST_SAVE], symbols = [THREE_POINTS]} |
| 12 |
${SETTINGS_RESCORED} {actions { greylist = 3 }, symbols_enabled = [GREYLIST_CHECK, GREYLIST_SAVE], symbols = [THREE_POINTS]} |
| 13 |
${SETTINGS_REJECTED} {actions { greylist = 3 }, symbols_enabled = [GREYLIST_CHECK, GREYLIST_SAVE], symbols = [TWENTY_POINTS]} |
| 14 |
|
| 15 |
*** Test Cases *** |
| 16 |
GREYLIST NEW |
| 17 |
Scan File ${MESSAGE} |
| 18 |
... Settings=${SETTINGS_GREYLIST} |
| 19 |
Expect Symbol With Option GREYLIST greylisted |
| 20 |
Expect Action soft reject |
| 21 |
|
| 22 |
GREYLIST EARLY |
| 23 |
Scan File ${MESSAGE} |
| 24 |
... Settings=${SETTINGS_GREYLIST} |
| 25 |
Expect Symbol With Option GREYLIST greylisted |
| 26 |
Expect Action soft reject |
| 27 |
|
| 28 |
GREYLIST NOT GREYLISTED |
| 29 |
Scan File ${MESSAGE2} |
| 30 |
... Settings=${SETTINGS_NOGREYLIST} |
| 31 |
Do Not Expect Symbol GREYLIST |
| 32 |
Expect Action no action |
| 33 |
|
| 34 |
GREYLIST REJECTED |
| 35 |
Scan File ${MESSAGE3} |
| 36 |
... Settings=${SETTINGS_REJECTED} |
| 37 |
Do Not Expect Symbol GREYLIST |
| 38 |
Expect Action reject |
| 39 |
|
| 40 |
GREYLIST RESCORED |
| 41 |
Scan File ${MESSAGE2} |
| 42 |
... Settings=${SETTINGS_RESCORED} |
| 43 |
Expect Symbol With Option GREYLIST greylisted |
| 44 |
Expect Action soft reject |
| 45 |
|
| 46 |
GREYLIST PASS |
| 47 |
Sleep 4s Wait greylisting timeout |
| 48 |
Scan File ${MESSAGE} |
| 49 |
... Settings=${SETTINGS_GREYLIST} |
| 50 |
Expect Symbol With Option GREYLIST pass |
| 51 |
Expect Action no action |