]> source.dussan.org Git - rspamd.git/commitdiff
[Test] Multimap: Received IP filters with Redis
authorAndrew Lewis <nerf@judo.za.org>
Tue, 9 May 2017 12:20:39 +0000 (14:20 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Tue, 9 May 2017 12:20:39 +0000 (14:20 +0200)
test/functional/cases/102_multimap.robot
test/functional/configs/multimap.conf

index 161c9055b2007e8e9d9fbc15467747a2d5e801c8..52239bb0a5e102e532804f7fbed37becd5537e18 100644 (file)
@@ -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
index 538e21e7ba5a9bbf292a6346126e3194fd9276f3..1c262a287eae9c2fca8819a04510d6fd065fe879 100644 (file)
@@ -132,4 +132,8 @@ multimap {
     min_pos = -2;
     map = "${TESTDIR}/configs/maps/rcvd.list";
   }
+  RCVD_TEST_REDIS_01 {
+    type = "received";
+    map = "redis://RCVD_TEST";
+  }
 }