]> granicus.if.org Git - pdns/commitdiff
Fix test to correctly use getQueryPolicy
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 27 Aug 2019 14:46:36 +0000 (16:46 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 27 Aug 2019 14:46:36 +0000 (16:46 +0200)
pdns/recursordist/test-filterpo_cc.cc

index 75806798a929f03d5ed45e1537ff9bc2cfe4bb1c..3f29e1afc894e0ac98431f2b8c619cf7ac3e03d2 100644 (file)
@@ -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<std::string,bool>());
+    auto matchingPolicy = dfe.getQueryPolicy(tstName, address, std::unordered_map<std::string,bool>());
     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<std::string,bool>());
+    auto matchingPolicy = dfe.getQueryPolicy(tstName, address, std::unordered_map<std::string,bool>());
     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<std::string,bool>());
+    auto matchingPolicy = dfe.getQueryPolicy(tstName, address, std::unordered_map<std::string,bool>());
     BOOST_CHECK(matchingPolicy.d_type == DNSFilterEngine::PolicyType::None);
     BOOST_CHECK(matchingPolicy.d_kind == DNSFilterEngine::PolicyKind::NoAction);
   }