diff options
author | Andrew Lewis <nerf@judo.za.org> | 2016-10-04 16:22:37 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2016-10-04 16:29:45 +0200 |
commit | 6069b963704a240d83e4fd0d3c516b73dab5a37f (patch) | |
tree | 433b9bbee6a2fe268b0ede95fbf0fc6168da6195 /test/functional/cases/115_dmarc.robot | |
parent | d7d8e603ee984d33c014baf2464c7c754b7dbeb8 (diff) | |
download | rspamd-6069b963704a240d83e4fd0d3c516b73dab5a37f.tar.gz rspamd-6069b963704a240d83e4fd0d3c516b73dab5a37f.zip |
[Test] Add some missing testcases for DKIM/DMARC
Diffstat (limited to 'test/functional/cases/115_dmarc.robot')
-rw-r--r-- | test/functional/cases/115_dmarc.robot | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/functional/cases/115_dmarc.robot b/test/functional/cases/115_dmarc.robot index 2a7d72580..04ba5823d 100644 --- a/test/functional/cases/115_dmarc.robot +++ b/test/functional/cases/115_dmarc.robot @@ -67,6 +67,16 @@ DMARC SUBDOMAIN PASS SPF RELAXED ALIGNMENT ... -i 37.48.67.26 --from foo@mom.za.org Check Rspamc ${result} DMARC_POLICY_ALLOW +DMARC DNSFAIL + ${result} = Scan Message With Rspamc ${TESTDIR}/messages/dmarc/dmarc_tmpfail.eml + ... -i 37.48.67.26 --from foo@mom.za.org + Check Rspamc ${result} DMARC_DNSFAIL + +DMARC NA NXDOMAIN + ${result} = Scan Message With Rspamc ${TESTDIR}/messages/utf.eml + ... -i 37.48.67.26 --from foo@mom.za.org + Check Rspamc ${result} DMARC_NA + DKIM PERMFAIL NXDOMAIN ${result} = Scan Message With Rspamc ${TESTDIR}/messages/dmarc/bad_dkim2.eml ... -i 37.48.67.26 @@ -77,6 +87,17 @@ DKIM PERMFAIL BAD RECORD ... -i 37.48.67.26 Check Rspamc ${result} R_DKIM_PERMFAIL +DKIM TEMPFAIL SERVFAIL + ${result} = Scan Message With Rspamc ${TESTDIR}/messages/dmarc/bad_dkim3.eml + ... -i 37.48.67.26 + Check Rspamc ${result} R_DKIM_TEMPFAIL + Should Contain ${result.stdout} DMARC_DNSFAIL + +DKIM NA NOSIG + ${result} = Scan Message With Rspamc ${TESTDIR}/messages/utf.eml + ... -i 37.48.67.26 + Check Rspamc ${result} R_DKIM_NA + SPF PERMFAIL UNRESOLVEABLE INCLUDE ${result} = Scan Message With Rspamc ${TESTDIR}/messages/dmarc/bad_dkim1.eml ... -i 37.48.67.26 -F x@fail3.org.org.za @@ -86,6 +107,7 @@ SPF DNSFAIL FAILED INCLUDE ${result} = Scan Message With Rspamc ${TESTDIR}/messages/dmarc/bad_dkim1.eml ... -i 8.8.8.8 -F x@fail2.org.org.za Check Rspamc ${result} R_SPF_DNSFAIL + Should Contain ${result.stdout} DMARC_DNSFAIL SPF ALLOW UNRESOLVEABLE INCLUDE ${result} = Scan Message With Rspamc ${TESTDIR}/messages/dmarc/bad_dkim1.eml |