From 3f83c2f80c545daeb858801cbef6ad7c5a9c5198 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 16 Dec 2018 17:10:50 +0000 Subject: [Test] Rbl: Add received and whitelists tests --- test/functional/configs/plugins.conf | 10 ++++++++++ test/functional/configs/rbl.conf | 27 +++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) (limited to 'test/functional/configs') diff --git a/test/functional/configs/plugins.conf b/test/functional/configs/plugins.conf index c881e972e..d7a5b009c 100644 --- a/test/functional/configs/plugins.conf +++ b/test/functional/configs/plugins.conf @@ -497,6 +497,16 @@ options = { type = "a"; replies = ["127.0.0.2", "127.0.0.3"]; }, + { + name = "4.2.3.4.fake.rbl"; + type = "a"; + replies = ["127.0.0.2"]; + }, + { + name = "4.2.3.4.fake.wl"; + type = "a"; + replies = ["127.0.0.2"]; + }, { name = "4.3.2.1.fake.rbl"; type = "a"; diff --git a/test/functional/configs/rbl.conf b/test/functional/configs/rbl.conf index 15106548b..a66deea6a 100644 --- a/test/functional/configs/rbl.conf +++ b/test/functional/configs/rbl.conf @@ -12,5 +12,32 @@ rbl { "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"; + unknown = true; + returncodes = { + "FAKE_RECEIVED_RBL_CODE_2" = "127.0.0.2"; + "FAKE_RECEIVED_RBL_CODE_3" = "127.0.0.3"; + } + } + fake_whitelist { + from = true; + ipv4 = true; + ipv6 = true; + received = true; + is_whitelist = true; + rbl = "fake.wl"; + symbol = "FAKE_WL_RBL_UNKNOWN"; + unknown = true; + returncodes = { + "FAKE_WL_RBL_CODE_2" = "127.0.0.2"; + "FAKE_WL_RBL_CODE_3" = "127.0.0.3"; + } + } } } \ No newline at end of file -- cgit v1.2.3