]> source.dussan.org Git - rspamd.git/commitdiff
[Test] Add testing for the augmentations logic
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 14 May 2022 13:52:08 +0000 (14:52 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 14 May 2022 13:52:08 +0000 (14:52 +0100)
test/functional/cases/001_merged/102_multimap.robot
test/functional/configs/merged-override.conf

index fcd75a8bcd29c76b5869885c8ae0af622e928d09..0312c750b3af1f0a8f33331f02077f871eb55ed1 100644 (file)
@@ -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
index ab0779fdfdb7717ee695d01e91818c7a7662a01c..d25cce27b4d02ddc8d6c08cb17e7624358f913b3 100644 (file)
@@ -220,7 +220,7 @@ multimap {
     }
     expression = "from & ip";
     score = 10;
-    prefilter = true;
+    action = "no action"
   }
   COMBINED_MAP_OR {
     type = "combined";