Debian Codegraph @

test/functional/cases/410_replies.robot

raw
1 *** Settings ***
2 Suite Setup Rspamd Redis 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/replies.conf
10 ${SETTINGS_REPLIES} {symbols_enabled = [REPLIES_CHECK, REPLIES_SET, REPLY]}
11 ${SYMBOL} REPLY
12 ${REDIS_SCOPE} Suite
13 ${RSPAMD_SCOPE} Suite
14
15 *** Test Cases ***
16 Reply to 1 sender 1 recipients
17 Scan File ${RSPAMD_TESTDIR}/messages/set_replyto_1_1.eml
18 ... IP=8.8.8.8
19 ... [email protected]
20 ... [email protected]
21 ... Settings=${SETTINGS_REPLIES}
22 ... [email protected]
23 Scan File ${RSPAMD_TESTDIR}/messages/replyto_1_1.eml
24 ... IP=8.8.8.8
25 ... [email protected]
26 ... Settings=${SETTINGS_REPLIES}
27 ... [email protected]
28 Expect Symbol ${SYMBOL}
29
30 Reply to 1 sender 2 recipients but SMTP recipient matches
31 Scan File ${RSPAMD_TESTDIR}/messages/set_replyto_1_2_first.eml
32 ... IP=8.8.8.8
33 ... [email protected]
34 ... Settings=${SETTINGS_REPLIES}
35 Scan File ${RSPAMD_TESTDIR}/messages/replyto_1_2.eml
36 ... IP=8.8.8.8
37 ... [email protected]
38 ... Settings=${SETTINGS_REPLIES}
39 Expect Symbol ${SYMBOL}
40
41 Reply to 1 sender 2 recipients but SMTP recipient NOT matches
42 Scan File ${RSPAMD_TESTDIR}/messages/set_replyto_1_2_first.eml
43 ... IP=8.8.8.8
44 ... [email protected]
45 ... Settings=${SETTINGS_REPLIES}
46 Scan File ${RSPAMD_TESTDIR}/messages/replyto_1_2.eml
47 ... IP=8.8.8.8 [email protected]
48 ... [email protected]
49 ... Settings=${SETTINGS_REPLIES}
50 Do Not Expect Symbol ${SYMBOL}