summaryrefslogtreecommitdiffstats
path: root/test/functional/cases/114_phishing.robot
blob: 732abc0cd9b3465e18f5b1ad11fc3bf41cf11b0b (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
*** Settings ***
Suite Setup     Phishing Setup
Suite Teardown  Simple Teardown
Library         ${RSPAMD_TESTDIR}/lib/rspamd.py
Resource        ${RSPAMD_TESTDIR}/lib/rspamd.robot
Variables       ${RSPAMD_TESTDIR}/lib/vars.py

*** Variables ***
${CONFIG}        ${RSPAMD_TESTDIR}/configs/phishing.conf
${MESSAGE1}       ${RSPAMD_TESTDIR}/messages/phishing1.eml
${MESSAGE2}      ${RSPAMD_TESTDIR}/messages/phishing2.eml
${MESSAGE3}      ${RSPAMD_TESTDIR}/messages/phishing3.eml
${RSPAMD_SCOPE}  Suite
${RSPAMD_URL_TLD}       ${RSPAMD_TESTDIR}/../../contrib/publicsuffix/effective_tld_names.dat

*** Test Cases ***
TEST PHISHING
  Scan File  ${MESSAGE1}
  Expect Symbol  PHISHING

TEST PHISHING STRICT ONE
  Scan File  ${MESSAGE2}
  Expect Symbol  STRICT_PHISHING

TEST PHISHING STRICT TWO
  Scan File  ${MESSAGE3}
  Expect Symbol  STRICTER_PHISHING

*** Keywords ***
Phishing Setup
  New Setup