diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-29 13:44:08 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-29 13:44:08 +0100 |
commit | 6ccd44320e725ed542883491af7d6b17a2f4a6eb (patch) | |
tree | e70b731f2476d600d4e45aa1deb6adefea8eb416 /test/functional/cases | |
parent | e175e9ba25514543382721981b53853ab321ed8e (diff) | |
download | rspamd-6ccd44320e725ed542883491af7d6b17a2f4a6eb.tar.gz rspamd-6ccd44320e725ed542883491af7d6b17a2f4a6eb.zip |
[Feature] Allow maps with multiple symbols and scores
Diffstat (limited to 'test/functional/cases')
-rw-r--r-- | test/functional/cases/102_maps.robot | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/test/functional/cases/102_maps.robot b/test/functional/cases/102_maps.robot index 0a83283f6..aecc61b5c 100644 --- a/test/functional/cases/102_maps.robot +++ b/test/functional/cases/102_maps.robot @@ -63,4 +63,28 @@ MAP - FROM REGEXP MISS MAP - DEPENDS HIT ${result} = Scan Message With Rspamc ${MESSAGE} -i 147.243.1.47 --from user123@microsoft.com - Check Rspamc ${result} DEPS_MAP
\ No newline at end of file + Check Rspamc ${result} DEPS_MAP + +MAP - DEPENDS MISS + ${result} = Scan Message With Rspamc ${MESSAGE} -i 127.0.0.1 --from user123@microsoft.com + Check Rspamc ${result} DEPS_MAP inverse=1 rc_nocheck=1 + +MAP - MULSYM PLAIN + ${result} = Scan Message With Rspamc ${MESSAGE} --rcpt user1@example.com + Check Rspamc ${result} RCPT_MAP + +MAP - MULSYM SCORE + ${result} = Scan Message With Rspamc ${MESSAGE} --rcpt user2@example.com + Check Rspamc ${result} RCPT_MAP (10.0 + +MAP - MULSYM SYMBOL + ${result} = Scan Message With Rspamc ${MESSAGE} --rcpt user3@example.com + Check Rspamc ${result} SYM1 (1.0 + +MAP - MULSYM SYMBOL MISS + ${result} = Scan Message With Rspamc ${MESSAGE} --rcpt user4@example.com + Check Rspamc ${result} RCPT_MAP (1.0 + +MAP - MULSYM SYMBOL + SCORE + ${result} = Scan Message With Rspamc ${MESSAGE} --rcpt user5@example.com + Check Rspamc ${result} SYM1 (-10.0
\ No newline at end of file |