blob: 25feafda7ff772d972c239aca9c19289f5fc7fa7 (
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
|
*** Settings ***
Suite Setup Generic Setup
Suite Teardown Simple Teardown
Library ${TESTDIR}/lib/rspamd.py
Resource ${TESTDIR}/lib/rspamd.robot
Variables ${TESTDIR}/lib/vars.py
*** Variables ***
${CONFIG} ${TESTDIR}/configs/lua_script.conf
${LUA_SCRIPT} ${TESTDIR}/lua/magic.lua
${RSPAMD_SCOPE} Suite
${URL_TLD} ${TESTDIR}/../lua/unit/test_tld.dat
*** Test Cases ***
Magic detections bundle 1
${result} = Scan Message With Rspamc ${TESTDIR}/messages/gargantua.eml
Follow Rspamd Log
Should Contain ${result.stdout} MAGIC_SYM_ZIP_2
Should Contain ${result.stdout} MAGIC_SYM_RAR_3
Should Contain ${result.stdout} MAGIC_SYM_EXE_4
Should Contain ${result.stdout} MAGIC_SYM_ELF_5
Should Contain ${result.stdout} MAGIC_SYM_LNK_6
Should Contain ${result.stdout} MAGIC_SYM_CLASS_7
Should Contain ${result.stdout} MAGIC_SYM_RTF_8
Should Contain ${result.stdout} MAGIC_SYM_PDF_9
Should Contain ${result.stdout} MAGIC_SYM_PS_10
Should Contain ${result.stdout} MAGIC_SYM_CHM_11
Should Contain ${result.stdout} MAGIC_SYM_DJVU_12
Should Contain ${result.stdout} MAGIC_SYM_ARJ_13
Should Contain ${result.stdout} MAGIC_SYM_CAB_14
Should Contain ${result.stdout} MAGIC_SYM_ACE_15
Should Contain ${result.stdout} MAGIC_SYM_TAR_16
Should Contain ${result.stdout} MAGIC_SYM_BZ2_17
Should Contain ${result.stdout} MAGIC_SYM_XZ_18
Should Contain ${result.stdout} MAGIC_SYM_LZ4_19
Should Contain ${result.stdout} MAGIC_SYM_ZST_20
Should Contain ${result.stdout} MAGIC_SYM_DMG_21
Should Contain ${result.stdout} MAGIC_SYM_ISO_22
Should Contain ${result.stdout} MAGIC_SYM_ZOO_23
Should Contain ${result.stdout} MAGIC_SYM_EPUB_24
|