Debian Codegraph @

test/functional/cases/320_arc_signing/002_redis.robot

raw
1 *** Settings ***
2 Suite Setup ARC Signing Setup
3 Suite Teardown Rspamd Redis 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/arc_signing/redis.conf
10 ${MESSAGE} ${RSPAMD_TESTDIR}/messages/dmarc/fail_none.eml
11 ${REDIS_SCOPE} Suite
12 ${RSPAMD_SCOPE} Suite
13 ${RSPAMD_URL_TLD} ${RSPAMD_TESTDIR}/../lua/unit/test_tld.dat
14
15 *** Test Cases ***
16 TEST SIGNED
17 ${result} = Scan Message With Rspamc ${MESSAGE} -u [email protected]
18 Should Contain ${result.stdout} ARC_SIGNED
19
20 TEST NOT SIGNED - USERNAME WRONG DOMAIN
21 ${result} = Scan Message With Rspamc ${MESSAGE} -u [email protected]
22 Should Not Contain ${result.stdout} ARC_SIGNED
23
24 *** Keywords ***
25 ARC Signing Setup
26 Rspamd Redis Setup
27 Redis HSET TEST_DKIM_SELECTORS cacophony.za.org arc
28 ${key} = Get File ${RSPAMD_TESTDIR}/configs/dkim.key
29 Redis HSET TEST_DKIM_KEYS arc.cacophony.za.org ${key}