From: Andrew Lewis Date: Wed, 21 Sep 2016 15:25:21 +0000 (+0200) Subject: [Test] Some tests for SPF X-Git-Tag: 1.4.0~398^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F974%2Fhead;p=rspamd.git [Test] Some tests for SPF --- diff --git a/test/functional/cases/115_dmarc.robot b/test/functional/cases/115_dmarc.robot index 01692b4b5..2f2c51aa5 100644 --- a/test/functional/cases/115_dmarc.robot +++ b/test/functional/cases/115_dmarc.robot @@ -77,6 +77,31 @@ DKIM PERMFAIL BAD RECORD ... -i 37.48.67.26 Check Rspamc ${result} R_DKIM_PERMFAIL +SPF DNSFAIL UNRESOLVEABLE INCLUDE + ${result} = Scan Message With Rspamc ${TESTDIR}/messages/dmarc/bad_dkim1.eml + ... -i 37.48.67.26 -F x@openarena.za.net + Check Rspamc ${result} R_SPF_DNSFAIL + +SPF ALLOW UNRESOLVEABLE INCLUDE + ${result} = Scan Message With Rspamc ${TESTDIR}/messages/dmarc/bad_dkim1.eml + ... -i 8.8.8.8 -F x@openarena.za.net + Check Rspamc ${result} R_SPF_ALLOW + +SPF NA NA + ${result} = Scan Message With Rspamc ${TESTDIR}/messages/dmarc/bad_dkim1.eml + ... -i 8.8.8.8 -F x@za + Check Rspamc ${result} R_SPF_NA + +SPF NA NXDOMAIN + ${result} = Scan Message With Rspamc ${TESTDIR}/messages/dmarc/bad_dkim1.eml + ... -i 8.8.8.8 -F x@co.za + Check Rspamc ${result} R_SPF_NA + +SPF FAIL + ${result} = Scan Message With Rspamc ${TESTDIR}/messages/dmarc/bad_dkim1.eml + ... -i 8.8.8.8 -F x@example.net + Check Rspamc ${result} R_SPF_FAIL + *** Keywords *** DMARC Setup ${PLUGIN_CONFIG} = Get File ${TESTDIR}/configs/dmarc.conf