Debian Codegraph @

test/functional/cases/131_dkim_signing/003_eddsa.robot

raw
1 *** Settings ***
2 Suite Setup Rspamd Setup
3 Suite Teardown Rspamd Teardown
4 Library ${RSPAMD_TESTDIR}/lib/rspamd.py
5 Resource ${RSPAMD_TESTDIR}/lib/rspamd.robot
6 Variables ${RSPAMD_TESTDIR}/lib/vars.py
7
8 *** Variables ***
9 ${CONFIG} ${RSPAMD_TESTDIR}/configs/dkim_signing/eddsa.conf
10 ${MESSAGE_FAIL} ${RSPAMD_TESTDIR}/messages/dmarc/fail_none1.eml
11 ${MESSAGE} ${RSPAMD_TESTDIR}/messages/dmarc/fail_none.eml
12 ${REDIS_SCOPE} Suite
13 ${RSPAMD_SCOPE} Suite
14 ${RSPAMD_URL_TLD} ${RSPAMD_TESTDIR}/../lua/unit/test_tld.dat
15
16 *** Test Cases ***
17 TEST SIGNED
18 ${result} = Scan Message With Rspamc ${MESSAGE} -u [email protected]
19 Check Rspamc ${result} DKIM-Signature:
20 Should Contain ${result.stdout} DKIM_SIGNED
21
22 TEST NOT SIGNED - USERNAME WRONG DOMAIN
23 ${result} = Scan Message With Rspamc ${MESSAGE} -u [email protected]
24 Check Rspamc ${result} DKIM-Signature: inverse=1
25 Should Not Contain ${result.stdout} DKIM_SIGNED
26
27 TEST NOT SIGNED - USERNAME WRONG PUBKEY
28 ${result} = Scan Message With Rspamc ${MESSAGE_FAIL} -u [email protected]
29 Check Rspamc ${result} DKIM-Signature: inverse=1
30 Should Not Contain ${result.stdout} DKIM_SIGNED