From c2774461c8295cb0b74d689b700424ac3858f37c Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Tue, 27 Aug 2019 16:46:36 +0200 Subject: [PATCH] Fix test to correctly use getQueryPolicy --- pdns/recursordist/test-filterpo_cc.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pdns/recursordist/test-filterpo_cc.cc b/pdns/recursordist/test-filterpo_cc.cc index 75806798a9..3f29e1afc8 100644 --- a/pdns/recursordist/test-filterpo_cc.cc +++ b/pdns/recursordist/test-filterpo_cc.cc @@ -258,21 +258,21 @@ BOOST_AUTO_TEST_CASE(test_filter_policies_wildcard_with_enc) { { const DNSName tstName("112.2o7.net."); - auto matchingPolicy = dfe.getProcessingPolicy(tstName, std::unordered_map()); + auto matchingPolicy = dfe.getQueryPolicy(tstName, address, std::unordered_map()); BOOST_CHECK(matchingPolicy.d_type == DNSFilterEngine::PolicyType::None); BOOST_CHECK(matchingPolicy.d_kind == DNSFilterEngine::PolicyKind::NoAction); } { const DNSName tstName("102.112.2o7.net."); - auto matchingPolicy = dfe.getProcessingPolicy(tstName, std::unordered_map()); + auto matchingPolicy = dfe.getQueryPolicy(tstName, address, std::unordered_map()); BOOST_CHECK(matchingPolicy.d_type == DNSFilterEngine::PolicyType::None); BOOST_CHECK(matchingPolicy.d_kind == DNSFilterEngine::PolicyKind::NoAction); } { const DNSName tstName("com.112.2o7.net."); - auto matchingPolicy = dfe.getProcessingPolicy(tstName, std::unordered_map()); + auto matchingPolicy = dfe.getQueryPolicy(tstName, address, std::unordered_map()); BOOST_CHECK(matchingPolicy.d_type == DNSFilterEngine::PolicyType::None); BOOST_CHECK(matchingPolicy.d_kind == DNSFilterEngine::PolicyKind::NoAction); } -- 2.47.2