summaryrefslogtreecommitdiffstats
path: root/test/functional/cases
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-07-17 21:06:31 +0100
committerAndrew Lewis <nerf@judo.za.org>2016-07-17 21:06:31 +0100
commitd5c2f00bf967666cc923fff8f8fe776036f337c1 (patch)
tree4490a6d123340d01933782d6a38bde1811b74719 /test/functional/cases
parent1386abcfc2fcbb217b7ba9bc69f8a5c522231855 (diff)
downloadrspamd-d5c2f00bf967666cc923fff8f8fe776036f337c1.tar.gz
rspamd-d5c2f00bf967666cc923fff8f8fe776036f337c1.zip
[Test] Add test for pre & post filters
Diffstat (limited to 'test/functional/cases')
-rw-r--r--test/functional/cases/lua.robot6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/cases/lua.robot b/test/functional/cases/lua.robot
index f3a3567ec..5e5dff6c8 100644
--- a/test/functional/cases/lua.robot
+++ b/test/functional/cases/lua.robot
@@ -22,6 +22,12 @@ Dependencies
${result} = Scan Message With Rspamc ${MESSAGE}
Check Rspamc ${result} DEP10
+Pre and Post Filters
+ [Setup] Lua Setup ${TESTDIR}/lua/prepostfilters.lua
+ ${result} = Scan Message With Rspamc ${MESSAGE}
+ Check Rspamc ${result} TEST_PRE
+ Check Rspamc ${result} TEST_POST rc_nocheck=1
+
*** Keywords ***
Lua Setup
[Arguments] ${LUA_SCRIPT}