diff options
author | Andrew Lewis <nerf@judo.za.org> | 2017-12-08 15:11:16 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2017-12-08 15:11:16 +0200 |
commit | ae72c0999e2440a460cccf339249b8a0af89275f (patch) | |
tree | 13ee4fc64c5e27f8c194cabd51957994f5258cc9 /test/functional/cases/102_multimap.robot | |
parent | 6e25c8c70e789b78b0d2e725695f2818c5f7f0d1 (diff) | |
download | rspamd-ae72c0999e2440a460cccf339249b8a0af89275f.tar.gz rspamd-ae72c0999e2440a460cccf339249b8a0af89275f.zip |
[Test] Multimap received header flags
Diffstat (limited to 'test/functional/cases/102_multimap.robot')
-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 977a84991..dff28d7f2 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 @@ -261,16 +263,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 |