aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional/configs
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-08-24 13:33:26 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-08-24 14:13:56 +0100
commitf72bc8f83e9b24b145a84d05ea93b11f4b788a32 (patch)
treed3fc973c369da1bd4915eb565b2442be8ca7c2c4 /test/functional/configs
parentcde1808617fb86932dc18cbd7a92f9852b32b632 (diff)
downloadrspamd-f72bc8f83e9b24b145a84d05ea93b11f4b788a32.tar.gz
rspamd-f72bc8f83e9b24b145a84d05ea93b11f4b788a32.zip
[Test] Increase resilence of the NN tests
Diffstat (limited to 'test/functional/configs')
-rw-r--r--test/functional/configs/neural.conf42
1 files changed, 42 insertions, 0 deletions
diff --git a/test/functional/configs/neural.conf b/test/functional/configs/neural.conf
index a6abad3e0..0a2ded95e 100644
--- a/test/functional/configs/neural.conf
+++ b/test/functional/configs/neural.conf
@@ -1,3 +1,45 @@
+options = {
+ url_tld = "${URL_TLD}"
+ pidfile = "${TMPDIR}/rspamd.pid"
+ lua_path = "${INSTALLROOT}/share/rspamd/lib/?.lua"
+ filters = [];
+ explicit_modules = ["settings"];
+}
+
+logging = {
+ type = "file",
+ level = "debug"
+ filename = "${TMPDIR}/rspamd.log"
+ log_usec = true;
+}
+metric = {
+ name = "default",
+ actions = {
+ reject = 100500,
+ add_header = 50500,
+ }
+ unknown_weight = 1
+}
+worker {
+ type = normal
+ bind_socket = ${LOCAL_ADDR}:${PORT_NORMAL}
+ count = 1
+ task_timeout = 10s;
+}
+worker {
+ type = controller
+ bind_socket = ${LOCAL_ADDR}:${PORT_CONTROLLER}
+ count = 1
+ secure_ip = ["127.0.0.1", "::1"];
+ stats_path = "${TMPDIR}/stats.ucl"
+}
+
+modules {
+ path = "${TESTDIR}/../../src/plugins/lua/"
+}
+
+lua = "${TESTDIR}/lua/test_coverage.lua";
+
neural {
rules {
SHORT {