commit ce2fe26: [Test] Add multimap options test

Vsevolod Stakhov vsevolod at rspamd.com
Mon May 15 08:21:03 UTC 2023


Author: Vsevolod Stakhov
Date: 2023-05-15 09:06:45 +0100
URL: https://github.com/rspamd/rspamd/commit/ce2fe26509626b367d646718248f25365f2aa6af

[Test] Add multimap options test

---
 test/functional/cases/001_merged/102_multimap.robot | 5 +++++
 test/functional/configs/maps/multiple.list          | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/test/functional/cases/001_merged/102_multimap.robot b/test/functional/cases/001_merged/102_multimap.robot
index f07cc1e25..99bc138ba 100644
--- a/test/functional/cases/001_merged/102_multimap.robot
+++ b/test/functional/cases/001_merged/102_multimap.robot
@@ -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 at 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]}
diff --git a/test/functional/configs/maps/multiple.list b/test/functional/configs/maps/multiple.list
index 24444f182..3d4f32f15 100644
--- a/test/functional/configs/maps/multiple.list
+++ b/test/functional/configs/maps/multiple.list
@@ -8,3 +8,5 @@ user3 at example.com SYM1
 user4 at example.com SYM2
 #symbol + score
 user5 at example.com SYM1:-10.1
+#symbol + score + options
+user6 at example.com SYM1:-10.1:opt1,opt2


More information about the Commits mailing list