aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional/cases/102_multimap.robot
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2017-02-10 15:53:19 +0200
committerAndrew Lewis <nerf@judo.za.org>2017-02-10 15:53:19 +0200
commit3205e92fb872da3c43f9e22d44ff0d704cf85605 (patch)
tree38b51fe09cdef7cf08ca3df8e07e697c7cfd3d0f /test/functional/cases/102_multimap.robot
parent2458e1746a40f1a8b031a4a7c15d725d696446b6 (diff)
downloadrspamd-3205e92fb872da3c43f9e22d44ff0d704cf85605.tar.gz
rspamd-3205e92fb872da3c43f9e22d44ff0d704cf85605.zip
[Test] Additional tests for multimap
Diffstat (limited to 'test/functional/cases/102_multimap.robot')
-rw-r--r--test/functional/cases/102_multimap.robot16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/functional/cases/102_multimap.robot b/test/functional/cases/102_multimap.robot
index f02320adf..599eaff1f 100644
--- a/test/functional/cases/102_multimap.robot
+++ b/test/functional/cases/102_multimap.robot
@@ -69,6 +69,22 @@ MAP - FROM REGEXP MISS
${result} = Scan Message With Rspamc ${MESSAGE} --from user@other.org
Check Rspamc ${result} REGEXP_MAP inverse=1
+MAP - RCPT DOMAIN HIT
+ ${result} = Scan Message With Rspamc ${MESSAGE} --rcpt user@example.com
+ Check Rspamc ${result} RCPT_DOMAIN
+
+MAP - RCPT DOMAIN MISS
+ ${result} = Scan Message With Rspamc ${MESSAGE} --rcpt example.com@user
+ Check Rspamc ${result} RCPT_DOMAIN inverse=1
+
+MAP - RCPT USER HIT
+ ${result} = Scan Message With Rspamc ${MESSAGE} --rcpt bob@example.com
+ Check Rspamc ${result} RCPT_USER
+
+MAP - RCPT USER MISS
+ ${result} = Scan Message With Rspamc ${MESSAGE} --from example.com@bob
+ Check Rspamc ${result} RCPT_USER inverse=1
+
MAP - DEPENDS HIT
${result} = Scan Message With Rspamc ${MESSAGE} -i 5.9.155.182 --from user123@rspamd.com
Check Rspamc ${result} DEPS_MAP