aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-10-06 11:19:11 +0200
committerAndrew Lewis <nerf@judo.za.org>2016-10-06 11:19:11 +0200
commit07ce6c516a1d0b8a6d81697f3a9f93ea81878786 (patch)
treea5197c0527012bf6d4fca24414c97e69f0e9ea0f /test
parentdac58faa8449758b07b5f8c6705a1afa33ec3619 (diff)
downloadrspamd-07ce6c516a1d0b8a6d81697f3a9f93ea81878786.tar.gz
rspamd-07ce6c516a1d0b8a6d81697f3a9f93ea81878786.zip
[Test] More testcases for SPF
Diffstat (limited to 'test')
-rw-r--r--test/functional/cases/115_dmarc.robot10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/functional/cases/115_dmarc.robot b/test/functional/cases/115_dmarc.robot
index 04ba5823d..0bf680ebb 100644
--- a/test/functional/cases/115_dmarc.robot
+++ b/test/functional/cases/115_dmarc.robot
@@ -139,6 +139,11 @@ SPF PERMFAIL UNRESOLVEABLE REDIRECT
... -i 8.8.8.8 -F x@fail4.org.org.za
Check Rspamc ${result} R_SPF_PERMFAIL
+SPF REDIRECT NO USEABLE ELEMENTS
+ ${result} = Scan Message With Rspamc ${TESTDIR}/messages/dmarc/bad_dkim1.eml
+ ... -i 8.8.8.8 -F x@fail10.org.org.za
+ Check Rspamc ${result} R_SPF_PERMFAIL
+
SPF DNSFAIL FAILED REDIRECT
${result} = Scan Message With Rspamc ${TESTDIR}/messages/dmarc/bad_dkim1.eml
... -i 8.8.8.8 -F x@fail1.org.org.za
@@ -179,6 +184,11 @@ SPF DNSFAIL FAILED RECORD
... -i 1.2.3.4 -F x@www.dnssec-failed.org
Check Rspamc ${result} R_SPF_DNSFAIL
+SPF PASS INCLUDE
+ ${result} = Scan Message With Rspamc ${TESTDIR}/messages/dmarc/bad_dkim1.eml
+ ... -i 8.8.8.8 -F x@pass1.org.org.za
+ Check Rspamc ${result} R_SPF_ALLOW
+
*** Keywords ***
DMARC Setup
${PLUGIN_CONFIG} = Get File ${TESTDIR}/configs/dmarc.conf