From 62ad1bd13c456a8721b9f8d1f88ac5546526f2ee Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Wed, 3 Feb 2021 11:44:22 +0100 Subject: [PATCH] rec: Unbreak aggressive NSEC unit tests on older boost versions --- pdns/recursordist/test-aggressive_nsec_cc.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pdns/recursordist/test-aggressive_nsec_cc.cc b/pdns/recursordist/test-aggressive_nsec_cc.cc index 0503e73d62..5b5ae9c1e0 100644 --- a/pdns/recursordist/test-aggressive_nsec_cc.cc +++ b/pdns/recursordist/test-aggressive_nsec_cc.cc @@ -361,7 +361,7 @@ BOOST_AUTO_TEST_CASE(test_aggressive_nsec_wildcard_synthesis) BOOST_CHECK_EQUAL(sr->getValidationState(), vState::Secure); BOOST_REQUIRE_EQUAL(ret.size(), 4U); BOOST_CHECK_EQUAL(ret.at(0).d_name, target); - BOOST_CHECK_EQUAL(ret.at(0).d_type, QType::A); + BOOST_CHECK_EQUAL(ret.at(0).d_type, QType(QType::A).getCode()); BOOST_CHECK_EQUAL(queriesCount, 7U); ret.clear(); @@ -370,7 +370,7 @@ BOOST_AUTO_TEST_CASE(test_aggressive_nsec_wildcard_synthesis) BOOST_CHECK_EQUAL(sr->getValidationState(), vState::Secure); BOOST_REQUIRE_EQUAL(ret.size(), 4U); BOOST_CHECK_EQUAL(ret.at(0).d_name, DNSName("b.powerdns.com.")); - BOOST_CHECK_EQUAL(ret.at(0).d_type, QType::A); + BOOST_CHECK_EQUAL(ret.at(0).d_type, QType(QType::A).getCode()); BOOST_CHECK_EQUAL(queriesCount, 7U); } @@ -757,7 +757,7 @@ BOOST_AUTO_TEST_CASE(test_aggressive_nsec3_wildcard_synthesis) BOOST_CHECK_EQUAL(sr->getValidationState(), vState::Secure); BOOST_REQUIRE_EQUAL(ret.size(), 4U); BOOST_CHECK_EQUAL(ret.at(0).d_name, target); - BOOST_CHECK_EQUAL(ret.at(0).d_type, QType::A); + BOOST_CHECK_EQUAL(ret.at(0).d_type, QType(QType::A).getCode()); BOOST_CHECK_EQUAL(queriesCount, 7U); ret.clear(); @@ -766,7 +766,7 @@ BOOST_AUTO_TEST_CASE(test_aggressive_nsec3_wildcard_synthesis) BOOST_CHECK_EQUAL(sr->getValidationState(), vState::Secure); BOOST_REQUIRE_EQUAL(ret.size(), 4U); BOOST_CHECK_EQUAL(ret.at(0).d_name, DNSName("b.powerdns.com.")); - BOOST_CHECK_EQUAL(ret.at(0).d_type, QType::A); + BOOST_CHECK_EQUAL(ret.at(0).d_type, QType(QType::A).getCode()); BOOST_CHECK_EQUAL(queriesCount, 7U); } -- 2.47.2