]> source.dussan.org Git - rspamd.git/commitdiff
[Test] Some tests for SPF 974/head
authorAndrew Lewis <nerf@judo.za.org>
Wed, 21 Sep 2016 15:25:21 +0000 (17:25 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Wed, 21 Sep 2016 15:37:24 +0000 (17:37 +0200)
test/functional/cases/115_dmarc.robot

index 01692b4b5e1f828ab69251605e94fd61ba5b486a..2f2c51aa5fad81ce2f9e376e114ea501575664d6 100644 (file)
@@ -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