aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional/cases/281_fnames.robot
blob: 9e3d37b5700d8f81211f60a5aa10dd2d0dd397b2 (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
*** Settings ***
Suite Setup     Fnames Setup
Suite Teardown  Fnames 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/test_fname.lua
${RSPAMD_SCOPE}  Suite
${URL_TLD}      ${TESTDIR}/../lua/unit/test_tld.dat


*** Test Cases ***
FILE NAMES
  ${result} =  Scan Message With Rspamc  ${TESTDIR}/messages/fname.eml
  Should Contain  ${result.stdout}  TEST_FNAME
  Should Contain  ${result.stdout}  [삼성생명]2020.08.14 데일리 경제뉴스.pdf, 01029_402110_10620_RGT06902_PRT180ML_20200803_101820.pdf


*** Keywords ***
Fnames Setup
  ${PLUGIN_CONFIG} =  Get File  ${TESTDIR}/configs/regexp.conf
  Set Suite Variable  ${PLUGIN_CONFIG}
  Generic Setup  PLUGIN_CONFIG

Fnames Teardown
  Normal Teardown
  Terminate All Processes    kill=True