]> source.dussan.org Git - rspamd.git/commitdiff
[Test] Add tests for multimap combined scores
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 30 Sep 2020 15:37:39 +0000 (16:37 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 30 Sep 2020 15:37:39 +0000 (16:37 +0100)
test/functional/cases/102_multimap.robot
test/functional/configs/multimap.conf

index 09bc9e205e87ae47c83ecd6b652b213e85c24a05..701714264bea6d7f99483476efd0a761d19f05d1 100644 (file)
@@ -67,7 +67,7 @@ MAP - FROM
 
 MAP - COMBINED IP MASK FROM
   Scan File  ${MESSAGE}  IP=10.1.0.10  From=user@example.com
-  Expect Symbol  COMBINED_MAP_AND
+  Expect Symbol With Score  COMBINED_MAP_AND  10
   Expect Symbol  COMBINED_MAP_OR
 
 MAP - COMBINED IP MASK ONLY
index 36f2514e703bb2c8a85373b3e772a06ab8009254..d4fad0e16d14ff08ccd2d40194b61bddcc65ce94 100644 (file)
@@ -179,7 +179,9 @@ multimap {
         selector = "from:domain";
       }
     }
-    expression = "from & ip"
+    expression = "from & ip";
+    score = 10;
+    prefilter = true;
   }
   COMBINED_MAP_OR {
     type = "combined";