diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-10-30 09:51:32 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-10-30 18:58:19 +0300 |
commit | 046e1b263ac2200a00839a59ebd392169c345bb9 (patch) | |
tree | e5898d11190e92ddffceb67049b6fbd69cd82c57 /test/functional/lua/composites.lua | |
parent | a8b22f9aacad391cdaa865039f38a13f622fdbc3 (diff) | |
download | rspamd-046e1b263ac2200a00839a59ebd392169c345bb9.tar.gz rspamd-046e1b263ac2200a00839a59ebd392169c345bb9.zip |
[Test] Add composites test
Diffstat (limited to 'test/functional/lua/composites.lua')
-rw-r--r-- | test/functional/lua/composites.lua | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/test/functional/lua/composites.lua b/test/functional/lua/composites.lua new file mode 100644 index 000000000..de4642c3b --- /dev/null +++ b/test/functional/lua/composites.lua @@ -0,0 +1,93 @@ +rspamd_config:register_symbol({ + name = 'EXPRESSIONS_B', + score = 1.0, + callback = function() + return true, 'Fires always' + end +}) + +rspamd_config:register_symbol({ + name = 'POLICY_REMOVE_WEIGHT_A', + score = 1.0, + callback = function() + return true, 'Fires always' + end +}) +rspamd_config:register_symbol({ + name = 'POLICY_REMOVE_WEIGHT_B', + score = 1.0, + callback = function() + return true, 'Fires always' + end +}) +rspamd_config:register_symbol({ + name = 'POLICY_FORCE_REMOVE_A', + score = 1.0, + callback = function() + return true, 'Fires always' + end +}) +rspamd_config:register_symbol({ + name = 'POLICY_FORCE_REMOVE_B', + score = 1.0, + callback = function() + return true, 'Fires always' + end +}) +rspamd_config:register_symbol({ + name = 'POLICY_LEAVE_A', + score = 1.0, + callback = function() + return true, 'Fires always' + end +}) +rspamd_config:register_symbol({ + name = 'POLICY_LEAVE_B', + score = 1.0, + callback = function() + return true, 'Fires always' + end +}) + +rspamd_config:register_symbol({ + name = 'DEFAULT_POLICY_REMOVE_WEIGHT_A', + score = 1.0, + callback = function() + return true, 'Fires always' + end +}) +rspamd_config:register_symbol({ + name = 'DEFAULT_POLICY_REMOVE_WEIGHT_B', + score = 1.0, + callback = function() + return true, 'Fires always' + end +}) +rspamd_config:register_symbol({ + name = 'DEFAULT_POLICY_REMOVE_SYMBOL_A', + score = 1.0, + callback = function() + return true, 'Fires always' + end +}) +rspamd_config:register_symbol({ + name = 'DEFAULT_POLICY_REMOVE_SYMBOL_B', + score = 1.0, + callback = function() + return true, 'Fires always' + end +}) +rspamd_config:register_symbol({ + name = 'DEFAULT_POLICY_LEAVE_A', + score = 1.0, + callback = function() + return true, 'Fires always' + end +}) +rspamd_config:register_symbol({ + name = 'DEFAULT_POLICY_LEAVE_B', + score = 1.0, + callback = function() + return true, 'Fires always' + end +}) |