mirror of
https://github.com/rspamd/rspamd.git
synced 2024-09-13 15:45:47 +02:00
[Test] Actually the functional test
This commit is contained in:
parent
31270b9fa0
commit
1d07d1445e
30
test/functional/cases/270_selector.robot
Normal file
30
test/functional/cases/270_selector.robot
Normal file
@ -0,0 +1,30 @@
|
||||
*** Settings ***
|
||||
Test Setup Regex Setup
|
||||
Test Teardown Regex Teardown
|
||||
Library ${TESTDIR}/lib/rspamd.py
|
||||
Resource ${TESTDIR}/lib/rspamd.robot
|
||||
Variables ${TESTDIR}/lib/vars.py
|
||||
|
||||
*** Variables ***
|
||||
${CONFIG} ${TESTDIR}/configs/plugins.conf
|
||||
${MESSAGE} ${TESTDIR}/messages/subject1.eml
|
||||
${UTF_MESSAGE} ${TESTDIR}/messages/utf.eml
|
||||
${URL_TLD} ${TESTDIR}/../lua/unit/test_tld.dat
|
||||
${RSPAMD_SCOPE} Test
|
||||
|
||||
|
||||
*** Test Cases ***
|
||||
Newlines
|
||||
${result} = Scan Message With Rspamc ${MESSAGE} --user test@user.com
|
||||
Check Rspamc ${result} CONFIG_SELECTOR_RE_RCPT_SUBJECT
|
||||
Check Rspamc ${result} LUA_SELECTOR_RE
|
||||
|
||||
|
||||
*** Keywords ***
|
||||
Regex Setup
|
||||
${PLUGIN_CONFIG} = Get File ${TESTDIR}/configs/selector.conf
|
||||
Set Suite Variable ${PLUGIN_CONFIG}
|
||||
Generic Setup PLUGIN_CONFIG
|
||||
|
||||
Regex Teardown
|
||||
Normal Teardown
|
Loading…
Reference in New Issue
Block a user