aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional/cases/115_dmarc.robot
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2020-09-07 15:14:22 +0200
committerAndrew Lewis <nerf@judo.za.org>2020-09-07 15:14:22 +0200
commitc07cb6a8c4f45d0cf35baacf539d5c78145fe1de (patch)
treeb67b987e045203d927aa87c1982dc43ea6fda5e6 /test/functional/cases/115_dmarc.robot
parent27ad207da620685499aa04c8e9c7d4e4eafa11dc (diff)
downloadrspamd-c07cb6a8c4f45d0cf35baacf539d5c78145fe1de.tar.gz
rspamd-c07cb6a8c4f45d0cf35baacf539d5c78145fe1de.zip
[Test] Use HTTP & simplified test style
Diffstat (limited to 'test/functional/cases/115_dmarc.robot')
-rw-r--r--test/functional/cases/115_dmarc.robot84
1 files changed, 42 insertions, 42 deletions
diff --git a/test/functional/cases/115_dmarc.robot b/test/functional/cases/115_dmarc.robot
index a3c60f83f..120e4461c 100644
--- a/test/functional/cases/115_dmarc.robot
+++ b/test/functional/cases/115_dmarc.robot
@@ -12,80 +12,80 @@ ${URL_TLD} ${TESTDIR}/../../contrib/publicsuffix/effective_tld_names.dat
*** Test Cases ***
DMARC NONE PASS DKIM
- ${result} = Scan Message With Rspamc ${TESTDIR}/messages/dmarc/pass_none.eml
- Check Rspamc ${result} DMARC_POLICY_ALLOW
+ Scan File ${TESTDIR}/messages/dmarc/pass_none.eml
+ Expect Symbol DMARC_POLICY_ALLOW
DMARC NONE PASS SPF
- ${result} = Scan Message With Rspamc ${TESTDIR}/messages/dmarc/fail_none.eml
- ... -i 8.8.4.4 --from foo@spf.cacophony.za.org
- Check Rspamc ${result} DMARC_POLICY_ALLOW
+ Scan File ${TESTDIR}/messages/dmarc/fail_none.eml
+ ... IP=8.8.4.4 From=foo@spf.cacophony.za.org
+ Expect Symbol DMARC_POLICY_ALLOW
DMARC NONE FAIL
- ${result} = Scan Message With Rspamc ${TESTDIR}/messages/dmarc/fail_none.eml
- Check Rspamc ${result} DMARC_POLICY_SOFTFAIL
+ Scan File ${TESTDIR}/messages/dmarc/fail_none.eml
+ Expect Symbol DMARC_POLICY_SOFTFAIL
DMARC REJECT FAIL
- ${result} = Scan Message With Rspamc ${TESTDIR}/messages/dmarc/fail_reject.eml
- Check Rspamc ${result} DMARC_POLICY_REJECT
+ Scan File ${TESTDIR}/messages/dmarc/fail_reject.eml
+ Expect Symbol DMARC_POLICY_REJECT
DMARC QUARANTINE FAIL
- ${result} = Scan Message With Rspamc ${TESTDIR}/messages/dmarc/fail_quarantine.eml
- Check Rspamc ${result} DMARC_POLICY_QUARANTINE
+ Scan File ${TESTDIR}/messages/dmarc/fail_quarantine.eml
+ Expect Symbol DMARC_POLICY_QUARANTINE
DMARC SP NONE FAIL
- ${result} = Scan Message With Rspamc ${TESTDIR}/messages/dmarc/subdomain_fail_none.eml
- Check Rspamc ${result} DMARC_POLICY_SOFTFAIL
+ Scan File ${TESTDIR}/messages/dmarc/subdomain_fail_none.eml
+ Expect Symbol DMARC_POLICY_SOFTFAIL
DMARC SP REJECT FAIL
- ${result} = Scan Message With Rspamc ${TESTDIR}/messages/dmarc/subdomain_fail_reject.eml
- Check Rspamc ${result} DMARC_POLICY_REJECT
+ Scan File ${TESTDIR}/messages/dmarc/subdomain_fail_reject.eml
+ Expect Symbol DMARC_POLICY_REJECT
DMARC SP QUARANTINE FAIL
- ${result} = Scan Message With Rspamc ${TESTDIR}/messages/dmarc/subdomain_fail_quarantine.eml
- Check Rspamc ${result} DMARC_POLICY_QUARANTINE
+ Scan File ${TESTDIR}/messages/dmarc/subdomain_fail_quarantine.eml
+ Expect Symbol DMARC_POLICY_QUARANTINE
DMARC SUBDOMAIN FAIL DKIM STRICT ALIGNMENT
- ${result} = Scan Message With Rspamc ${TESTDIR}/messages/dmarc/onsubdomain_fail_alignment.eml
- Check Rspamc ${result} DMARC_POLICY_REJECT
+ Scan File ${TESTDIR}/messages/dmarc/onsubdomain_fail_alignment.eml
+ Expect Symbol DMARC_POLICY_REJECT
DMARC SUBDOMAIN PASS DKIM RELAXED ALIGNMENT
- ${result} = Scan Message With Rspamc ${TESTDIR}/messages/dmarc/onsubdomain_pass_relaxed.eml
- Check Rspamc ${result} DMARC_POLICY_ALLOW
+ Scan File ${TESTDIR}/messages/dmarc/onsubdomain_pass_relaxed.eml
+ Expect Symbol DMARC_POLICY_ALLOW
DMARC SUBDOMAIN PASS SPF STRICT ALIGNMENT
- ${result} = Scan Message With Rspamc ${TESTDIR}/messages/dmarc/onsubdomain_fail_alignment.eml
- ... -i 37.48.67.26 --from foo@yo.mom.za.org
- Check Rspamc ${result} DMARC_POLICY_ALLOW
+ Scan File ${TESTDIR}/messages/dmarc/onsubdomain_fail_alignment.eml
+ ... IP=37.48.67.26 From=foo@yo.mom.za.org
+ Expect Symbol DMARC_POLICY_ALLOW
DMARC SUBDOMAIN FAIL SPF STRICT ALIGNMENT
- ${result} = Scan Message With Rspamc ${TESTDIR}/messages/dmarc/onsubdomain_fail_alignment.eml
- ... -i 37.48.67.26 --from foo@mom.za.org
- Check Rspamc ${result} DMARC_POLICY_REJECT
+ Scan File ${TESTDIR}/messages/dmarc/onsubdomain_fail_alignment.eml
+ ... IP=37.48.67.26 From=foo@mom.za.org
+ Expect Symbol DMARC_POLICY_REJECT
DMARC SUBDOMAIN PASS SPF RELAXED ALIGNMENT
- ${result} = Scan Message With Rspamc ${TESTDIR}/messages/dmarc/onsubdomain_fail.eml
- ... -i 37.48.67.26 --from foo@mom.za.org
- Check Rspamc ${result} DMARC_POLICY_ALLOW
+ Scan File ${TESTDIR}/messages/dmarc/onsubdomain_fail.eml
+ ... IP=37.48.67.26 From=foo@mom.za.org
+ Expect Symbol 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
+ Scan File ${TESTDIR}/messages/dmarc/dmarc_tmpfail.eml
+ ... IP=37.48.67.26 From=foo@mom.za.org
+ Expect Symbol 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
+ Scan File ${TESTDIR}/messages/utf.eml
+ ... IP=37.48.67.26 From=foo@mom.za.org
+ Expect Symbol DMARC_NA
DMARC PCT ZERO REJECT
- ${result} = Scan Message With Rspamc ${TESTDIR}/messages/dmarc/pct_none.eml
- ... -i 37.48.67.26 --from foo@mom.za.org
- Check Rspamc ${result} DMARC_POLICY_QUARANTINE
+ Scan File ${TESTDIR}/messages/dmarc/pct_none.eml
+ ... IP=37.48.67.26 From=foo@mom.za.org
+ Expect Symbol DMARC_POLICY_QUARANTINE
DMARC PCT ZERO SP QUARANTINE
- ${result} = Scan Message With Rspamc ${TESTDIR}/messages/dmarc/pct_none1.eml
- ... -i 37.48.67.26 --from foo@mom.za.org
- Check Rspamc ${result} DMARC_POLICY_SOFTFAIL
+ Scan File ${TESTDIR}/messages/dmarc/pct_none1.eml
+ ... IP=37.48.67.26 From=foo@mom.za.org
+ Expect Symbol DMARC_POLICY_SOFTFAIL
*** Keywords ***
DMARC Setup