From b031412b168dd53c26948bc559d7b47ed679c06b Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Mon, 13 Feb 2017 18:13:07 +0200 Subject: [Test] Add tests for multimap received maps --- test/functional/cases/102_multimap.robot | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test/functional/cases') 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 -- cgit v1.2.3