aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional/cases/550_milter_headers.robot
blob: 737d0b42d0a4225e8275e2ac9a7c90ed4034aca9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
*** Settings ***
Suite Setup     Rspamd Setup
Suite Teardown  Rspamd Teardown
Library         ${RSPAMD_TESTDIR}/lib/rspamd.py
Resource        ${RSPAMD_TESTDIR}/lib/rspamd.robot
Variables       ${RSPAMD_TESTDIR}/lib/vars.py

*** Variables ***
${CONFIG}                ${RSPAMD_TESTDIR}/configs/milter_headers.conf
${MESSAGE}               ${RSPAMD_TESTDIR}/messages/zip.eml
${RSPAMD_SCOPE}          Suite
${RSPAMD_URL_TLD}        ${RSPAMD_TESTDIR}/../lua/unit/test_tld.dat
${SETTINGS_NOSYMBOLS}    {symbols_enabled = []}
${SETTINGS_TEST}         {symbols_enabled = [SIMPLE_TEST]}

*** Test Cases ***
CHECK HEADERS WITH TEST SYMBOL
  Scan File  ${MESSAGE}  Settings=${SETTINGS_TEST}
  Expect Removed Header  X-Virus
  Expect Added Header  X-Virus  Fires always