aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional/cases
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2020-11-03 09:11:24 +0200
committerAndrew Lewis <nerf@judo.za.org>2020-11-03 09:17:10 +0200
commit4bb5f20e1f6e2826664744f717d0d317cf97c444 (patch)
tree4d05b96637ff70e53a44b1efce214510a591be5a /test/functional/cases
parent6e105da2247e85be60ff31f6046dc8e24c87d807 (diff)
downloadrspamd-4bb5f20e1f6e2826664744f717d0d317cf97c444.tar.gz
rspamd-4bb5f20e1f6e2826664744f717d0d317cf97c444.zip
[Test] Multiple conditions
Diffstat (limited to 'test/functional/cases')
-rw-r--r--test/functional/cases/101_lua.robot8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/functional/cases/101_lua.robot b/test/functional/cases/101_lua.robot
index 6e40c7300..215ecd086 100644
--- a/test/functional/cases/101_lua.robot
+++ b/test/functional/cases/101_lua.robot
@@ -61,6 +61,14 @@ Option Order
Expect Symbol With Exact Options OPTION_ORDER one two three 4 5 a
Expect Symbol With Exact Options TBL_OPTION_ORDER one two three 4 5 a
+Rule conditions
+ [Setup] Lua Replace Setup ${TESTDIR}/lua/conditions.lua
+ [Teardown] Lua Replace Teardown
+ Scan File ${MESSAGE}
+ Expect Symbol With Option ANY_A hello3
+ Expect Symbol With Option ANY_A hello1
+ Expect Symbol With Option ANY_A hello2
+
*** Keywords ***
Lua Setup
[Arguments] ${LUA_SCRIPT}