diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-12-08 18:14:02 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-08 18:14:02 +0000 |
commit | a3f235901143eb1e92294cf075349c411c6b0e86 (patch) | |
tree | cb2c2c5b58479e18edae17afd066c611fa170655 /test/functional/cases | |
parent | 03cf7aff97c45a3fdbae75da0d7596cef9578a81 (diff) | |
parent | ae72c0999e2440a460cccf339249b8a0af89275f (diff) | |
download | rspamd-a3f235901143eb1e92294cf075349c411c6b0e86.tar.gz rspamd-a3f235901143eb1e92294cf075349c411c6b0e86.zip |
Merge pull request #1951 from fatalbanana/exim_rcvd
Fix Exim Received header protocol parsing
Diffstat (limited to 'test/functional/cases')
-rw-r--r-- | test/functional/cases/102_multimap.robot | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/test/functional/cases/102_multimap.robot b/test/functional/cases/102_multimap.robot index 569f75e3b..c46fff39b 100644 --- a/test/functional/cases/102_multimap.robot +++ b/test/functional/cases/102_multimap.robot @@ -13,6 +13,8 @@ ${REDIS_SCOPE} Suite ${RSPAMD_SCOPE} Suite ${RCVD1} ${TESTDIR}/messages/received1.eml ${RCVD2} ${TESTDIR}/messages/received2.eml +${RCVD3} ${TESTDIR}/messages/received3.eml +${RCVD4} ${TESTDIR}/messages/received4.eml ${URL1} ${TESTDIR}/messages/url1.eml ${URL2} ${TESTDIR}/messages/url2.eml ${URL3} ${TESTDIR}/messages/url3.eml @@ -270,16 +272,26 @@ MAP - RECEIVED - IP MINMAX POS - ONE Check Rspamc ${result} RCVD_TEST_01 Check Rspamc ${result} RCVD_TEST_02 inverse=1 -MAP - RECEIVED - IP MINMAX POS - TWO +MAP - RECEIVED - IP MINMAX POS - TWO / RCVD_AUTHED_ONE HIT ${result} = Scan Message With Rspamc ${RCVD2} Check Rspamc ${result} RCVD_TEST_02 - Check Rspamc ${result} RCVD_TEST_01 inverse=1 + Should Not Contain ${result.stdout} RCVD_TEST_01 + Should Contain ${result.stdout} RCVD_AUTHED_ONE MAP - RECEIVED - REDIS Redis HSET RCVD_TEST 2a01:7c8:aab6:26d:5054:ff:fed1:1da2 ${EMPTY} ${result} = Scan Message With Rspamc ${RCVD1} Check Rspamc ${result} RCVD_TEST_REDIS_01 +RCVD_AUTHED_ONE & RCVD_AUTHED_TWO - MISS + ${result} = Scan Message With Rspamc ${RCVD3} + Check Rspamc ${result} RCVD_AUTHED_ inverse=1 + +RCVD_AUTHED_TWO HIT / RCVD_AUTHED_ONE MISS + ${result} = Scan Message With Rspamc ${RCVD4} + Check Rspamc ${result} RCVD_AUTHED_TWO + Should Not Contain ${result.stdout} RCVD_AUTHED_ONE + *** Keywords *** Multimap Setup ${PLUGIN_CONFIG} = Get File ${TESTDIR}/configs/multimap.conf |