From df4d5ecaec79806ea0b517605eeb30f338ac52d0 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 24 Sep 2019 12:01:47 +0100 Subject: [PATCH] [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 { -- 2.39.5