blob: b06dd14927eee308bb1c978ba3836f16bf50c7a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
*** Settings ***
Library ${RSPAMD_TESTDIR}/lib/rspamd.py
Resource ${RSPAMD_TESTDIR}/lib/rspamd.robot
Variables ${RSPAMD_TESTDIR}/lib/vars.py
*** Variables ***
${GTUBE} ${RSPAMD_TESTDIR}/messages/gtube.eml
${SETTINGS_NOSYMBOLS} {symbols_enabled = []}
*** Test Cases ***
GTUBE
Scan File ${GTUBE}
... Settings=${SETTINGS_NOSYMBOLS}
Expect Symbol GTUBE
GTUBE - Encrypted
${result} = Run Rspamc -p -h ${RSPAMD_LOCAL_ADDR}:${RSPAMD_PORT_NORMAL} --key ${RSPAMD_KEY_PUB1}
... ${GTUBE} --header=Settings=${SETTINGS_NOSYMBOLS}
Check Rspamc ${result} GTUBE (
GTUBE - Scan File feature
Scan File By Reference ${GTUBE}
... Settings=${SETTINGS_NOSYMBOLS}
Expect Symbol GTUBE
GTUBE - Scan File feature (encoded)
${encoded} = Encode Filename ${GTUBE}
Scan File By Reference ${encoded}
... Settings=${SETTINGS_NOSYMBOLS}
Expect Symbol GTUBE
GTUBE - SPAMC
${result} = Spamc ${RSPAMD_LOCAL_ADDR} ${RSPAMD_PORT_NORMAL} ${GTUBE}
Should Contain ${result} GTUBE
GTUBE - RSPAMC
${result} = Rspamc ${RSPAMD_LOCAL_ADDR} ${RSPAMD_PORT_NORMAL} ${GTUBE}
Should Contain ${result} GTUBE
EMAILS DETECTION 1
Scan File ${RSPAMD_TESTDIR}/messages/emails1.eml
... URL-Format=Extended Settings=${SETTINGS_NOSYMBOLS}
Expect Email jim@example.net
Expect Email bob@example.net
Expect Email rupert@example.net
EMAILS DETECTION ZEROFONT
Scan File ${RSPAMD_TESTDIR}/messages/zerofont.eml
... Settings={symbols_enabled = [MANY_INVISIBLE_PARTS, ZERO_FONT]}
Expect Symbol MANY_INVISIBLE_PARTS
Expect Symbol ZERO_FONT
|