From 817b6e78e365a2f8cd08587336288cb57df3931a Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Tue, 1 Feb 2022 07:49:03 +0100 Subject: [PATCH] Fix zone-to-cache test by properly initing trust anchors and dnssec mode --- pdns/recursordist/test-rec-zonetocache.cc | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.47.2