diff options
author | Andrew Lewis <nerf@judo.za.org> | 2017-04-26 16:35:20 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2017-04-26 16:35:20 +0200 |
commit | 1ca24ef40609f571241fc18151d8c8cc7ef02e78 (patch) | |
tree | bb7af0f92a251c750bb688a699d51780ca83ee1e /test/functional/lua | |
parent | a31d3cddc4e366cbe2489a17cf2a124149e2fa21 (diff) | |
download | rspamd-1ca24ef40609f571241fc18151d8c8cc7ef02e78.tar.gz rspamd-1ca24ef40609f571241fc18151d8c8cc7ef02e78.zip |
[Test] Some tests for settings
Diffstat (limited to 'test/functional/lua')
-rw-r--r-- | test/functional/lua/settings.lua | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/functional/lua/settings.lua b/test/functional/lua/settings.lua new file mode 100644 index 000000000..0be6f71bf --- /dev/null +++ b/test/functional/lua/settings.lua @@ -0,0 +1,26 @@ +rspamd_config:register_symbol({ + name = 'SIMPLE_PRE', + score = 1.0, + priority = 9, -- after settings + type = 'prefilter', + callback = function() + return true, 'Fires always' + end +}) + +rspamd_config:register_symbol({ + name = 'SIMPLE_POST', + score = 1.0, + type = 'postfilter', + callback = function() + return true, 'Fires always' + end +}) + +rspamd_config:register_symbol({ + name = 'SIMPLE_TEST', + score = 1.0, + callback = function() + return true, 'Fires always' + end +}) |