diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-05-14 14:52:08 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-05-14 14:52:08 +0100 |
commit | 392294a3989adc711ac07bc1f6ef51ff3571fac3 (patch) | |
tree | 895842b06be4f450eaa05b2f0a0e1de133526d62 | |
parent | 20817548d32bd7280001f9a0f80a087ea7175ab1 (diff) | |
download | rspamd-392294a3989adc711ac07bc1f6ef51ff3571fac3.tar.gz rspamd-392294a3989adc711ac07bc1f6ef51ff3571fac3.zip |
[Test] Add testing for the augmentations logic
-rw-r--r-- | test/functional/cases/001_merged/102_multimap.robot | 3 | ||||
-rw-r--r-- | test/functional/configs/merged-override.conf | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/test/functional/cases/001_merged/102_multimap.robot b/test/functional/cases/001_merged/102_multimap.robot index fcd75a8bc..0312c750b 100644 --- a/test/functional/cases/001_merged/102_multimap.robot +++ b/test/functional/cases/001_merged/102_multimap.robot @@ -73,7 +73,8 @@ MAP - COMBINED IP MASK FROM Scan File ${MESSAGE} IP=10.1.0.10 From=user@example.com ... Settings={symbols_enabled = [COMBINED_MAP_AND, COMBINED_MAP_OR]} Expect Symbol With Score COMBINED_MAP_AND 10 - Expect Symbol COMBINED_MAP_OR + Do Not Expect Symbol COMBINED_MAP_OR + Expect Action no action MAP - COMBINED IP MASK ONLY Scan File ${MESSAGE} IP=10.1.0.10 diff --git a/test/functional/configs/merged-override.conf b/test/functional/configs/merged-override.conf index ab0779fdf..d25cce27b 100644 --- a/test/functional/configs/merged-override.conf +++ b/test/functional/configs/merged-override.conf @@ -220,7 +220,7 @@ multimap { } expression = "from & ip"; score = 10; - prefilter = true; + action = "no action" } COMBINED_MAP_OR { type = "combined"; |