aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional/cases/321_arc_check.robot
blob: 6cbc00b44999ff17c425cd3ba911a0e1a44e2aa5 (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
*** Settings ***
Suite Setup     ARC Setup
Suite Teardown  Simple Teardown
Library         ${TESTDIR}/lib/rspamd.py
Resource        ${TESTDIR}/lib/rspamd.robot
Variables       ${TESTDIR}/lib/vars.py

*** Variables ***
${CONFIG}        ${TESTDIR}/configs/plugins.conf
${RSPAMD_SCOPE}  Suite
${URL_TLD}       ${TESTDIR}/../../contrib/publicsuffix/effective_tld_names.dat

*** Test Cases ***
ARC ALLOW CHECK
  Scan File  ${TESTDIR}/messages/arcallow.eml
  Expect Symbol  ARC_ALLOW

ARC BAD CHECK
  Scan File  ${TESTDIR}/messages/arcbad.eml
  Expect Symbol  ARC_INVALID


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