diff options
author | korgoth1 <vladislav.stakhov@gmail.com> | 2019-09-03 20:50:07 +0300 |
---|---|---|
committer | korgoth1 <vladislav.stakhov@gmail.com> | 2019-09-03 20:50:07 +0300 |
commit | cf5e77768bac5942eb26b015e6d10a1c96021af9 (patch) | |
tree | 9efcf614a969078fef688a126856728bf1dbbe22 /test/functional/cases/123_whitelist.robot | |
parent | df38d4c53c3509e1e725eaeb610d012e5e14a4be (diff) | |
download | rspamd-cf5e77768bac5942eb26b015e6d10a1c96021af9.tar.gz rspamd-cf5e77768bac5942eb26b015e6d10a1c96021af9.zip |
[Test] WHITELIST_SPF_DKIM
Diffstat (limited to 'test/functional/cases/123_whitelist.robot')
-rw-r--r-- | test/functional/cases/123_whitelist.robot | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/functional/cases/123_whitelist.robot b/test/functional/cases/123_whitelist.robot index 570c43bf8..07eb848cf 100644 --- a/test/functional/cases/123_whitelist.robot +++ b/test/functional/cases/123_whitelist.robot @@ -12,6 +12,7 @@ ${M_DMARC_BAD} ${TESTDIR}/messages/dmarc/fail_none.eml ${M_DKIM_RSPAMD_OK} ${TESTDIR}/messages/dmarc/good_dkim_rspamd.eml ${M_DKIM_RSPAMD_BAD} ${TESTDIR}/messages/dmarc/bad_dkim_rspamd.eml +${M_NO_DKIM_VALID_SPF} ${TESTDIR}/messages/dmarc/no_dkim_valid_spf.eml ${UTF_MESSAGE} ${TESTDIR}/messages/utf.eml ${RSPAMD_SCOPE} Suite @@ -60,6 +61,27 @@ BLACKLISTS_WL_ONLY Should Not Contain ${result.stdout} WHITELIST_DKIM ( Should Not Contain ${result.stdout} BLACKLIST_DKIM ( +VALID SPF and VALID DKIM + ${result} = Scan Message With Rspamc ${M_DKIM_RSPAMD_OK} + Should Contain ${result.stdout} R_SPF_ALLOW ( + Should Contain ${result.stdout} R_DKIM_ALLOW ( + Should Contain ${result.stdout} WHITELIST_SPF_DKIM ( + +VALID SPF and NOT VALID DKIM + ${result} = Scan Message With Rspamc ${M_DKIM_RSPAMD_BAD} + Should Contain ${result.stdout} R_SPF_ALLOW ( + Should Contain ${result.stdout} R_DKIM_REJECT ( + Should Not Contain ${result.stdout} WHITELIST_SPF_DKIM ( + Should Not Contain ${result.stdout} R_DKIM_ALLOW ( + +VALID SPF and NO DKIM + ${result} = Scan Message With Rspamc ${M_NO_DKIM_VALID_SPF} + Should Contain ${result.stdout} R_SPF_ALLOW ( + Should Contain ${result.stdout} R_DKIM_NA ( + Should Not Contain ${result.stdout} R_DKIM_REJECT ( + Should Not Contain ${result.stdout} WHITELIST_SPF_DKIM ( + Should Not Contain ${result.stdout} R_DKIM_ALLOW ( + *** Keywords *** Whitelist Setup ${PLUGIN_CONFIG} = Get File ${TESTDIR}/configs/whitelist.conf |