]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Test] Add multimap options test
authorVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 15 May 2023 08:06:45 +0000 (09:06 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 15 May 2023 08:06:45 +0000 (09:06 +0100)
test/functional/cases/001_merged/102_multimap.robot
test/functional/configs/maps/multiple.list

index f07cc1e25346dae0be86d63316789c1864f2a2f8..99bc138ba00756b454982a65130f473e9b9d383d 100644 (file)
@@ -167,6 +167,11 @@ MAP - MULSYM SYMBOL + SCORE
   ...   Settings={symbols_enabled = [RCPT_MAP, SYM1]}
   Expect Symbol With Score  SYM1  -10.1
 
+MAP - MULSYM SYMBOL + SCORE + OPTS
+  Scan File  ${MESSAGE}  Rcpt=user6@example.com
+  ...   Settings={symbols_enabled = [RCPT_MAP, SYM1]}
+  Expect Symbol With Score And Exact Options  SYM1  -10.1  opt1  opt2
+
 MAP - UTF
   Scan File  ${UTF_MESSAGE}
   ...   Settings={symbols_enabled = [HEADER_MAP]}
index 24444f1823a353c5cc96f2ac41697e606b3d214c..3d4f32f158cbd38ea94067b3dec6393aac784eff 100644 (file)
@@ -8,3 +8,5 @@ user3@example.com SYM1
 user4@example.com SYM2
 #symbol + score
 user5@example.com SYM1:-10.1
+#symbol + score + options
+user6@example.com SYM1:-10.1:opt1,opt2