From: Vsevolod Stakhov Date: Mon, 15 May 2023 08:06:45 +0000 (+0100) Subject: [Test] Add multimap options test X-Git-Tag: 3.6~118 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ce2fe26509626b367d646718248f25365f2aa6af;p=thirdparty%2Frspamd.git [Test] Add multimap options test --- diff --git a/test/functional/cases/001_merged/102_multimap.robot b/test/functional/cases/001_merged/102_multimap.robot index f07cc1e253..99bc138ba0 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 24444f1823..3d4f32f158 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