diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-08-01 12:58:13 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-08-01 12:58:13 +0100 |
commit | 066aa70abf2801d39ea7b9d433ec111f682616d2 (patch) | |
tree | b6db09036f35bc1f24fe15afe171668d2b63aa40 /test/functional/configs | |
parent | 645f327b7702aca39017dc0ab92c8641b40d4416 (diff) | |
download | rspamd-066aa70abf2801d39ea7b9d433ec111f682616d2.tar.gz rspamd-066aa70abf2801d39ea7b9d433ec111f682616d2.zip |
[Test] Add tests for group score limits
Diffstat (limited to 'test/functional/configs')
-rw-r--r-- | test/functional/configs/merged-local.conf | 39 | ||||
-rw-r--r-- | test/functional/configs/merged.conf | 1 |
2 files changed, 40 insertions, 0 deletions
diff --git a/test/functional/configs/merged-local.conf b/test/functional/configs/merged-local.conf index 2d914b075..2aef274c2 100644 --- a/test/functional/configs/merged-local.conf +++ b/test/functional/configs/merged-local.conf @@ -965,6 +965,45 @@ symbols { } } +group "test" { + max_score = 10; + min_score = -10; + + symbols = { + "GR_POSITIVE1" = { + score = 1.0; + }, + "GR_POSITIVE2" = { + score = 2.0; + }, + "GR_POSITIVE4" = { + score = 4.0; + }, + "GR_POSITIVE8" = { + score = 8.0; + }, + "GR_POSITIVE16" = { + score = 16.0; + }, + + "GR_NEGATIVE1" = { + score = -1.0; + }, + "GR_NEGATIVE2" = { + score = -2.0; + }, + "GR_NEGATIVE4" = { + score = -4.0; + }, + "GR_NEGATIVE8" = { + score = -8.0; + }, + "GR_NEGATIVE16" = { + score = -16.0; + }, + } +} + worker "controller" { bind_socket = "{= env.LOCAL_ADDR =}:{= env.PORT_CONTROLLER =}"; keypair { diff --git a/test/functional/configs/merged.conf b/test/functional/configs/merged.conf index 0ee224ceb..06a34308d 100644 --- a/test/functional/configs/merged.conf +++ b/test/functional/configs/merged.conf @@ -11,6 +11,7 @@ lua = "{= env.TESTDIR =}/lua/recipients.lua" lua = "{= env.TESTDIR =}/lua/remove_result.lua" lua = "{= env.TESTDIR =}/lua/tlds.lua" lua = "{= env.TESTDIR =}/lua/inject_url.lua" +lua = "{= env.TESTDIR =}/lua/limits.lua" # 104_get_from lua = "{= env.TESTDIR =}/lua/get_from.lua" |