aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional/cases
diff options
context:
space:
mode:
authorkorgoth1 <vladislav.stakhov@gmail.com>2020-09-02 21:31:57 +0300
committerkorgoth1 <vladislav.stakhov@gmail.com>2020-09-02 21:31:57 +0300
commitd569cbf2cf6ffec37f51d892fc2f4ffd54604a0b (patch)
tree752f219b678f3c73890bfb709454643b4c42ce8a /test/functional/cases
parent8f2ad1d853940a3d601f20d4aaa66bc9e9cb1103 (diff)
downloadrspamd-d569cbf2cf6ffec37f51d892fc2f4ffd54604a0b.tar.gz
rspamd-d569cbf2cf6ffec37f51d892fc2f4ffd54604a0b.zip
[TEST] FNames
Diffstat (limited to 'test/functional/cases')
-rw-r--r--test/functional/cases/280_rules.robot7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/cases/280_rules.robot b/test/functional/cases/280_rules.robot
index 6c5c1ac62..a9cf70533 100644
--- a/test/functional/cases/280_rules.robot
+++ b/test/functional/cases/280_rules.robot
@@ -7,6 +7,7 @@ Variables ${TESTDIR}/lib/vars.py
*** Variables ***
${CONFIG} ${TESTDIR}/configs/plugins.conf
+${LUA_SCRIPT} ${TESTDIR}/lua/test_fname.lua
${MESSAGE} ${TESTDIR}/messages/newlines.eml
${MESSAGE1} ${TESTDIR}/messages/fws_fn.eml
${MESSAGE2} ${TESTDIR}/messages/fws_fp.eml
@@ -110,6 +111,12 @@ PHISH_SENDER_ROUTING_PART
${result} = Scan Message With Rspamc ${TESTDIR}/messages/phish_sender6.eml
Should Contain ${result.stdout} FROM_INVALID
+FILE NAMES
+ ${result} = Scan Message With Rspamc ${TESTDIR}/messages/fname.eml
+ Should Contain ${result.stdout} TEST_FNAME
+ Should Contain ${result.stdout} [삼성생명]2020.08.14 데일리 경제뉴스.pdf, 01029_402110_10620_RGT06902_PRT180ML_20200803_101820.pdf
+
+
*** Keywords ***
Rules Setup
${PLUGIN_CONFIG} = Get File ${TESTDIR}/configs/regexp.conf