diff options
author | Mikhail Galanin <mgalanin@mimecast.com> | 2018-09-24 13:24:27 +0100 |
---|---|---|
committer | Mikhail Galanin <mgalanin@mimecast.com> | 2018-09-24 13:24:27 +0100 |
commit | 1d07d1445ee9bbf9331577165eeb2e003df24fc3 (patch) | |
tree | 63b627667b8920cf0eeaa50f8b8c13ba93bdb2df /test | |
parent | 31270b9fa06db3e630a32fa68fa6cec505a66007 (diff) | |
download | rspamd-1d07d1445ee9bbf9331577165eeb2e003df24fc3.tar.gz rspamd-1d07d1445ee9bbf9331577165eeb2e003df24fc3.zip |
[Test] Actually the functional test
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/cases/270_selector.robot | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test/functional/cases/270_selector.robot b/test/functional/cases/270_selector.robot new file mode 100644 index 000000000..4223429a2 --- /dev/null +++ b/test/functional/cases/270_selector.robot @@ -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 |