aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-07-15 16:41:46 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-07-15 16:41:46 +0100
commitd61bd5017d8899defac876df4da2cfaacd0f3272 (patch)
tree2b93b36a86bad8275408a01adb96642e768f2d36 /test/functional/lua
parent834573afd5cb9495d12d5945bea07f64a6cae540 (diff)
downloadrspamd-d61bd5017d8899defac876df4da2cfaacd0f3272.tar.gz
rspamd-d61bd5017d8899defac876df4da2cfaacd0f3272.zip
[Test] Add functional tests for neural plugin
Diffstat (limited to 'test/functional/lua')
-rw-r--r--test/functional/lua/neural.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/functional/lua/neural.lua b/test/functional/lua/neural.lua
new file mode 100644
index 000000000..68d7ca2ae
--- /dev/null
+++ b/test/functional/lua/neural.lua
@@ -0,0 +1,15 @@
+rspamd_config:register_symbol({
+ name = 'SPAM_SYMBOL',
+ score = 1.0,
+ callback = function()
+ return true, 'Fires always'
+ end
+})
+
+rspamd_config:register_symbol({
+ name = 'HAM_SYMBOL',
+ score = -1.0,
+ callback = function()
+ return true, 'Fires always'
+ end
+}) \ No newline at end of file