From: Otto Moerbeek Date: Tue, 1 Feb 2022 06:49:03 +0000 (+0100) Subject: Fix zone-to-cache test by properly initing trust anchors and dnssec mode X-Git-Tag: auth-4.7.0-alpha1~33^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F11266%2Fhead;p=thirdparty%2Fpdns.git Fix zone-to-cache test by properly initing trust anchors and dnssec mode --- diff --git a/pdns/recursordist/test-rec-zonetocache.cc b/pdns/recursordist/test-rec-zonetocache.cc index d671c39a16..ffec8883bb 100644 --- a/pdns/recursordist/test-rec-zonetocache.cc +++ b/pdns/recursordist/test-rec-zonetocache.cc @@ -5,6 +5,7 @@ #include "rec-zonetocache.hh" #include "recursor_cache.hh" +#include "test-syncres_cc.hh" extern unique_ptr g_recCache; @@ -96,6 +97,10 @@ static void zonemdTest(const std::string& lines, pdns::ZoneMD::Config mode, pdns BOOST_AUTO_TEST_CASE(test_zonetocache) { + std::unique_ptr sr; + initSR(sr, true); + setDNSSECValidation(sr, DNSSECMode::ValidateAll); + zonemdTest(zone, pdns::ZoneMD::Config::Ignore, pdns::ZoneMD::Config::Ignore, 17U); zonemdTest(zone, pdns::ZoneMD::Config::Validate, pdns::ZoneMD::Config::Ignore, 17U); zonemdTest(zone, pdns::ZoneMD::Config::Require, pdns::ZoneMD::Config::Ignore, 0U);