aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-05-15 09:06:45 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-05-15 09:06:45 +0100
commitce2fe26509626b367d646718248f25365f2aa6af (patch)
treedd45ff818b30e951a6cd94f5ae2264769abb7b4b
parent0b7f9101e38473b5c42d068aea884a527ec506b6 (diff)
downloadrspamd-ce2fe26509626b367d646718248f25365f2aa6af.tar.gz
rspamd-ce2fe26509626b367d646718248f25365f2aa6af.zip
[Test] Add multimap options test
-rw-r--r--test/functional/cases/001_merged/102_multimap.robot5
-rw-r--r--test/functional/configs/maps/multiple.list2
2 files changed, 7 insertions, 0 deletions
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@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@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