BIND 10 trac1065, updated. 7e89c625c5d12b5816c857d0c0910922f8803f82 [1065] Tests for empty domain
BIND 10 source code commits
bind10-changes at lists.isc.org
Sat Aug 13 13:31:01 UTC 2011
The branch, trac1065 has been updated
via 7e89c625c5d12b5816c857d0c0910922f8803f82 (commit)
from 2e60562cfda15fad37550ce5996e942084131d1c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 7e89c625c5d12b5816c857d0c0910922f8803f82
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date: Sat Aug 13 15:30:38 2011 +0200
[1065] Tests for empty domain
-----------------------------------------------------------------------
Summary of changes:
src/lib/datasrc/tests/database_unittest.cc | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/tests/database_unittest.cc b/src/lib/datasrc/tests/database_unittest.cc
index fcfcefe..0496081 100644
--- a/src/lib/datasrc/tests/database_unittest.cc
+++ b/src/lib/datasrc/tests/database_unittest.cc
@@ -263,6 +263,10 @@ private:
addRecord("A", "3600", "", "192.0.2.1");
addRecord("RRSIG", "3600", "TXT", "A 5 3 3600 20000101000000 20000201000000 12345 example.org. FAKEFAKEFAKE");
addCurName("badsigtype.example.org.");
+
+ // This is because of empty domain test
+ addRecord("A", "3600", "", "192.0.2.1");
+ addCurName("a.b.example.org.");
}
};
@@ -682,6 +686,15 @@ TEST_F(DatabaseClientTest, find) {
ZoneFinder::SUCCESS,
expected_rdatas, expected_sig_rdatas);
EXPECT_FALSE(current_database_->searchRunning());
+
+ // Check empty domain
+ expected_rdatas.clear();
+ expected_sig_rdatas.clear();
+ // This domain doesn't exist, but a subdomain of it does.
+ // Therefore we should pretend the domain is there, but contains no RRsets
+ doFindTest(finder, isc::dns::Name("b.example.org."), isc::dns::RRType::A(),
+ isc::dns::RRType::A(), isc::dns::RRTTL(3600),
+ ZoneFinder::NXRRSET, expected_rdatas, expected_sig_rdatas);
}
}
More information about the bind10-changes
mailing list