Commit 4ff5e524 authored by Jelte Jansen's avatar Jelte Jansen
Browse files

[1066] add one test and typo in comment

parent b4ae924f
...@@ -340,7 +340,7 @@ DatabaseClient::Finder::find(const isc::dns::Name& name, ...@@ -340,7 +340,7 @@ DatabaseClient::Finder::find(const isc::dns::Name& name,
// It contains some RRs, so it exists. // It contains some RRs, so it exists.
last_known = superdomain.getLabelCount(); last_known = superdomain.getLabelCount();
// In case we are in GLUE_OK, we want to store the highest // In case we are in GLUE_OK, we want to store the highest
// encounderet RRset. // encountered RRset.
if (glue_ok && !first_ns && i != remove_labels) { if (glue_ok && !first_ns && i != remove_labels) {
first_ns = getRRset(superdomain, NULL, false, false, first_ns = getRRset(superdomain, NULL, false, false,
true).second; true).second;
......
...@@ -1037,6 +1037,14 @@ TEST_F(DatabaseClientTest, wildcard) { ...@@ -1037,6 +1037,14 @@ TEST_F(DatabaseClientTest, wildcard) {
isc::dns::RRType::A(), isc::dns::RRType::A(), isc::dns::RRType::A(), isc::dns::RRType::A(),
isc::dns::RRTTL(3600), ZoneFinder::NXRRSET, expected_rdatas_, isc::dns::RRTTL(3600), ZoneFinder::NXRRSET, expected_rdatas_,
expected_sig_rdatas_); expected_sig_rdatas_);
// Also make sure that the wildcard doesn't hurt the original data
// below the wildcard
expected_rdatas_.push_back("2001:db8::5");
doFindTest(finder, isc::dns::Name("cancel.here.wild.example.org"),
isc::dns::RRType::AAAA(), isc::dns::RRType::AAAA(),
isc::dns::RRTTL(3600), ZoneFinder::SUCCESS,
expected_rdatas_, expected_sig_rdatas_);
expected_rdatas_.clear();
// How wildcard go together with delegation // How wildcard go together with delegation
expected_rdatas_.push_back("ns.example.com."); expected_rdatas_.push_back("ns.example.com.");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment