commit df4d5ec: [Test] Add tests for multi prefixes RBLs

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Sep 24 11:28:08 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-09-24 12:01:47 +0100
URL: https://github.com/rspamd/rspamd/commit/df4d5ecaec79806ea0b517605eeb30f338ac52d0

[Test] Add tests for multi prefixes RBLs

---
 test/functional/configs/rbl.conf | 20 ++++++--------------
 1 file changed, 6 insertions(+), 14 deletions(-)

diff --git a/test/functional/configs/rbl.conf b/test/functional/configs/rbl.conf
index a66deea6a..4a9318a0a 100644
--- a/test/functional/configs/rbl.conf
+++ b/test/functional/configs/rbl.conf
@@ -6,23 +6,15 @@ rbl {
       ipv6 = true;
       rbl = "fake.rbl";
       symbol = "FAKE_RBL_UNKNOWN";
-      unknown = true;
-      returncodes = {
-        "FAKE_RBL_CODE_2" = "127.0.0.2";
-        "FAKE_RBL_CODE_3" = "127.0.0.3";
-      }
-    }
-    fake_received {
-      from = false;
-      ipv4 = true;
-      ipv6 = true;
       received = true;
-      rbl = "fake.rbl";
-      symbol = "FAKE_RECEIVED_RBL_UNKNOWN";
+      symbols_prefixes = {
+        received = 'FAKE_RECEIVED_RBL',
+        from = 'FAKE_RBL',
+      }
       unknown = true;
       returncodes = {
-        "FAKE_RECEIVED_RBL_CODE_2" = "127.0.0.2";
-        "FAKE_RECEIVED_RBL_CODE_3" = "127.0.0.3";
+        "CODE_2" = "127.0.0.2";
+        "CODE_3" = "127.0.0.3";
       }
     }
     fake_whitelist {


More information about the Commits mailing list