BIND 10 trac1176, updated. 77ba8639c274865c762eee688383c321f18ef889 [1176] Test that wildcards don't break RRSIGs
BIND 10 source code commits
bind10-changes at lists.isc.org
Thu Aug 25 14:54:33 UTC 2011
The branch, trac1176 has been updated
via 77ba8639c274865c762eee688383c321f18ef889 (commit)
from 30df43575158b0cb294ec49a8463fe8b49593e62 (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 77ba8639c274865c762eee688383c321f18ef889
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date: Thu Aug 25 16:42:09 2011 +0200
[1176] Test that wildcards don't break RRSIGs
It works, but just making sure it works even with wildcards.
-----------------------------------------------------------------------
Summary of changes:
src/lib/datasrc/tests/database_unittest.cc | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/tests/database_unittest.cc b/src/lib/datasrc/tests/database_unittest.cc
index 13bda70..bd0c584 100644
--- a/src/lib/datasrc/tests/database_unittest.cc
+++ b/src/lib/datasrc/tests/database_unittest.cc
@@ -461,6 +461,7 @@ private:
// Something for wildcards
addRecord("A", "3600", "", "192.0.2.5");
+ addRecord("RRSIG", "3600", "", "A 5 3 3600 20000101000000 20000201000000 12345 example.org. FAKEFAKEFAKE");
addCurName("*.wild.example.org.");
addRecord("AAAA", "3600", "", "2001:db8::5");
addCurName("cancel.here.wild.example.org.");
@@ -1161,7 +1162,10 @@ TEST_F(DatabaseClientTest, wildcard) {
shared_ptr<DatabaseClient::Finder> finder(getFinder());
// First, simple wildcard match
+ // Check also that the RRSIG is added from the wildcard (not modified)
expected_rdatas_.push_back("192.0.2.5");
+ expected_sig_rdatas_.push_back("A 5 3 3600 20000101000000 20000201000000 "
+ "12345 example.org. FAKEFAKEFAKE");
doFindTest(finder, isc::dns::Name("a.wild.example.org"),
isc::dns::RRType::A(), isc::dns::RRType::A(),
isc::dns::RRTTL(3600), ZoneFinder::SUCCESS, expected_rdatas_,
@@ -1171,6 +1175,7 @@ TEST_F(DatabaseClientTest, wildcard) {
isc::dns::RRTTL(3600), ZoneFinder::SUCCESS, expected_rdatas_,
expected_sig_rdatas_);
expected_rdatas_.clear();
+ expected_sig_rdatas_.clear();
doFindTest(finder, isc::dns::Name("a.wild.example.org"),
isc::dns::RRType::AAAA(), isc::dns::RRType::AAAA(),
isc::dns::RRTTL(3600), ZoneFinder::NXRRSET, expected_rdatas_,
@@ -1182,11 +1187,14 @@ TEST_F(DatabaseClientTest, wildcard) {
// Direct request for thi wildcard
expected_rdatas_.push_back("192.0.2.5");
+ expected_sig_rdatas_.push_back("A 5 3 3600 20000101000000 20000201000000 "
+ "12345 example.org. FAKEFAKEFAKE");
doFindTest(finder, isc::dns::Name("*.wild.example.org"),
isc::dns::RRType::A(), isc::dns::RRType::A(),
isc::dns::RRTTL(3600), ZoneFinder::SUCCESS, expected_rdatas_,
expected_sig_rdatas_);
expected_rdatas_.clear();
+ expected_sig_rdatas_.clear();
doFindTest(finder, isc::dns::Name("*.wild.example.org"),
isc::dns::RRType::AAAA(), isc::dns::RRType::AAAA(),
isc::dns::RRTTL(3600), ZoneFinder::NXRRSET, expected_rdatas_,
More information about the bind10-changes
mailing list