summaryrefslogtreecommitdiffstats
path: root/test/functional/cases
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2017-02-13 18:13:07 +0200
committerAndrew Lewis <nerf@judo.za.org>2017-02-13 18:33:17 +0200
commitb031412b168dd53c26948bc559d7b47ed679c06b (patch)
treef544526ba103ce8469c60091d2c88c4ec1f634ff /test/functional/cases
parent140fa526f13846bf4fdd2302d70fe5bd4e6f19c9 (diff)
downloadrspamd-b031412b168dd53c26948bc559d7b47ed679c06b.tar.gz
rspamd-b031412b168dd53c26948bc559d7b47ed679c06b.zip
[Test] Add tests for multimap received maps
Diffstat (limited to 'test/functional/cases')
-rw-r--r--test/functional/cases/102_multimap.robot12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/functional/cases/102_multimap.robot b/test/functional/cases/102_multimap.robot
index 89bafe750..161c9055b 100644
--- a/test/functional/cases/102_multimap.robot
+++ b/test/functional/cases/102_multimap.robot
@@ -11,6 +11,8 @@ ${MESSAGE} ${TESTDIR}/messages/spam_message.eml
${UTF_MESSAGE} ${TESTDIR}/messages/utf.eml
${REDIS_SCOPE} Suite
${RSPAMD_SCOPE} Suite
+${RCVD1} ${TESTDIR}/messages/received1.eml
+${RCVD2} ${TESTDIR}/messages/received2.eml
${URL1} ${TESTDIR}/messages/url1.eml
${URL2} ${TESTDIR}/messages/url2.eml
${URL3} ${TESTDIR}/messages/url3.eml
@@ -254,6 +256,16 @@ MAP - REDIS - ASN FILTERED - MISS
${result} = Scan Message With Rspamc ${MESSAGE} -i 46.228.47.114
Check Rspamc ${result} REDIS_ASN_FILTERED inverse=1
+MAP - RECEIVED - IP MINMAX POS - ONE
+ ${result} = Scan Message With Rspamc ${RCVD1}
+ Check Rspamc ${result} RCVD_TEST_01
+ Check Rspamc ${result} RCVD_TEST_02 inverse=1
+
+MAP - RECEIVED - IP MINMAX POS - TWO
+ ${result} = Scan Message With Rspamc ${RCVD2}
+ Check Rspamc ${result} RCVD_TEST_02
+ Check Rspamc ${result} RCVD_TEST_01 inverse=1
+
*** Keywords ***
Multimap Setup
${PLUGIN_CONFIG} = Get File ${TESTDIR}/configs/multimap.conf