"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test-syncres_cc7.cc" between
pdns-recursor-4.5.2.tar.bz2 and pdns-recursor-4.5.4.tar.bz2

About: PowerDNS - a separate release of the PowerDNS Recursor (without the authoritative nameserver).

test-syncres_cc7.cc  (pdns-recursor-4.5.2.tar.bz2):test-syncres_cc7.cc  (pdns-recursor-4.5.4.tar.bz2)
skipping to change at line 247 skipping to change at line 247
*/ */
BOOST_CHECK_EQUAL(queriesCount, 5U); BOOST_CHECK_EQUAL(queriesCount, 5U);
/* again, to test the cache */ /* again, to test the cache */
ret.clear(); ret.clear();
res = sr->beginResolve(target, QType(QType::A), QClass::IN, ret); res = sr->beginResolve(target, QType(QType::A), QClass::IN, ret);
BOOST_CHECK_EQUAL(res, RCode::NoError); BOOST_CHECK_EQUAL(res, RCode::NoError);
BOOST_CHECK_EQUAL(sr->getValidationState(), vState::Insecure); BOOST_CHECK_EQUAL(sr->getValidationState(), vState::Insecure);
BOOST_REQUIRE_EQUAL(ret.size(), 1U); BOOST_REQUIRE_EQUAL(ret.size(), 1U);
BOOST_CHECK_EQUAL(queriesCount, 5U); BOOST_CHECK_EQUAL(queriesCount, 5U);
/* Request the DS for powerdns.com, which does not exist. We should get
the denial proof AND the SOA */
res = sr->beginResolve(target, QType(QType::DS), QClass::IN, ret);
BOOST_CHECK_EQUAL(res, RCode::NoError);
BOOST_CHECK_EQUAL(sr->getValidationState(), vState::Secure);
BOOST_REQUIRE_EQUAL(ret.size(), 4U);
bool soaFound = false;
for (const auto& record : ret) {
if (record.d_type == QType::SOA) {
soaFound = true;
BOOST_CHECK_EQUAL(soaFound, true);
BOOST_CHECK_EQUAL(queriesCount, 6U);
} }
BOOST_AUTO_TEST_CASE(test_dnssec_secure_to_insecure_cname) BOOST_AUTO_TEST_CASE(test_dnssec_secure_to_insecure_cname)
{ {
std::unique_ptr<SyncRes> sr; std::unique_ptr<SyncRes> sr;
initSR(sr, true); initSR(sr, true);
setDNSSECValidation(sr, DNSSECMode::ValidateAll); setDNSSECValidation(sr, DNSSECMode::ValidateAll);
primeHints(); primeHints();
 End of changes. 1 change blocks. 
0 lines changed or deleted 17 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)