diff options
Diffstat (limited to 'test/functional/cases/001_merged/106_mid.robot')
-rw-r--r-- | test/functional/cases/001_merged/106_mid.robot | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/test/functional/cases/001_merged/106_mid.robot b/test/functional/cases/001_merged/106_mid.robot new file mode 100644 index 0000000..c5510bb --- /dev/null +++ b/test/functional/cases/001_merged/106_mid.robot @@ -0,0 +1,36 @@ +*** Settings *** +Library ${RSPAMD_TESTDIR}/lib/rspamd.py +Resource ${RSPAMD_TESTDIR}/lib/rspamd.robot +Variables ${RSPAMD_TESTDIR}/lib/vars.py + +*** Variables *** +${SETTINGS_MID} {symbols_enabled = [DKIM_CHECK,INVALID_MSGID,INVALID_MSGID_ALLOWED,KNOWN_NO_MID,KNOWN_MID,MISSING_MID,MISSING_MID_ALLOWED]} + +*** Test Cases *** +MID - invalid Message-ID + Scan File ${RSPAMD_TESTDIR}/messages/fws_fp.eml + ... Settings=${SETTINGS_MID} + Expect Symbol With Score INVALID_MSGID 1.70 + Do Not Expect Symbol MISSING_MID + Do Not Expect Symbol INVALID_MSGID_ALLOWED + +MID - invalid Message-ID allowed + Scan File ${RSPAMD_TESTDIR}/messages/invalid_mid_allowed.eml + ... Settings=${SETTINGS_MID} + Expect Symbol With Score INVALID_MSGID_ALLOWED 0.00 + Do Not Expect Symbol MISSING_MID + Do Not Expect Symbol INVALID_MSGID + +MID - missing Message-ID + Scan File ${RSPAMD_TESTDIR}/messages/freemail.eml + ... Settings=${SETTINGS_MID} + Expect Symbol With Score MISSING_MID 2.50 + Do Not Expect Symbol MISSING_MID_ALLOWED + Do Not Expect Symbol INVALID_MSGID + +MID - missing Message-ID allowed + Scan File ${RSPAMD_TESTDIR}/messages/dmarc/onsubdomain_pass_relaxed.eml + ... Settings=${SETTINGS_MID} + Expect Symbol With Score MISSING_MID_ALLOWED 0.00 + Do Not Expect Symbol MISSING_MID + Do Not Expect Symbol INVALID_MSGID |