diff options
author | Andrew Lewis <nerf@judo.za.org> | 2017-05-09 14:20:39 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2017-05-09 14:20:39 +0200 |
commit | 7b0d41173904268944de296ab85f20efef91bde5 (patch) | |
tree | ac495265e7845244751bd5e2783d84d04c6d7422 /test | |
parent | 27d6bffa5b295e0fbca6d3eda0ee17c834fede81 (diff) | |
download | rspamd-7b0d41173904268944de296ab85f20efef91bde5.tar.gz rspamd-7b0d41173904268944de296ab85f20efef91bde5.zip |
[Test] Multimap: Received IP filters with Redis
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/cases/102_multimap.robot | 5 | ||||
-rw-r--r-- | test/functional/configs/multimap.conf | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/test/functional/cases/102_multimap.robot b/test/functional/cases/102_multimap.robot index 161c9055b..52239bb0a 100644 --- a/test/functional/cases/102_multimap.robot +++ b/test/functional/cases/102_multimap.robot @@ -266,6 +266,11 @@ MAP - RECEIVED - IP MINMAX POS - TWO Check Rspamc ${result} RCVD_TEST_02 Check Rspamc ${result} RCVD_TEST_01 inverse=1 +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 + *** Keywords *** Multimap Setup ${PLUGIN_CONFIG} = Get File ${TESTDIR}/configs/multimap.conf diff --git a/test/functional/configs/multimap.conf b/test/functional/configs/multimap.conf index 538e21e7b..1c262a287 100644 --- a/test/functional/configs/multimap.conf +++ b/test/functional/configs/multimap.conf @@ -132,4 +132,8 @@ multimap { min_pos = -2; map = "${TESTDIR}/configs/maps/rcvd.list"; } + RCVD_TEST_REDIS_01 { + type = "received"; + map = "redis://RCVD_TEST"; + } } |