From: Otto Moerbeek Date: Tue, 27 Aug 2019 14:46:36 +0000 (+0200) Subject: Fix test to correctly use getQueryPolicy X-Git-Tag: dnsdist-1.4.0-rc3~33^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2774461c8295cb0b74d689b700424ac3858f37c;p=thirdparty%2Fpdns.git Fix test to correctly use getQueryPolicy --- 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); }