BIND 10 trac2108_3, updated. e1f7b3f3c9fa167a285257f5452e44684d1e9c3c [2108] Add findZone2() check

BIND 10 source code commits bind10-changes at lists.isc.org
Thu Sep 6 07:59:27 UTC 2012


The branch, trac2108_3 has been updated
       via  e1f7b3f3c9fa167a285257f5452e44684d1e9c3c (commit)
       via  97cd696da6a3fbfbd4a395ee67ef4f5958e63099 (commit)
      from  c080ae50b5cdb5d5d0840c3828cdcb64c53b15a2 (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 e1f7b3f3c9fa167a285257f5452e44684d1e9c3c
Author: Mukund Sivaraman <muks at isc.org>
Date:   Thu Sep 6 13:29:15 2012 +0530

    [2108] Add findZone2() check

commit 97cd696da6a3fbfbd4a395ee67ef4f5958e63099
Author: Mukund Sivaraman <muks at isc.org>
Date:   Thu Sep 6 13:28:51 2012 +0530

    [2108] Check that findZone() derived from DataSourceClient throws
    
    This is unimplemented. findZone2() has the correct implementation.

-----------------------------------------------------------------------

Summary of changes:
 .../datasrc/memory/tests/memory_client_unittest.cc |   19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/memory/tests/memory_client_unittest.cc b/src/lib/datasrc/memory/tests/memory_client_unittest.cc
index b4eefab..f29565b 100644
--- a/src/lib/datasrc/memory/tests/memory_client_unittest.cc
+++ b/src/lib/datasrc/memory/tests/memory_client_unittest.cc
@@ -279,6 +279,25 @@ TEST_F(MemoryClientTest, add) {
     EXPECT_EQ(ConstRRsetPtr(), iterator->getNextRRset());
 }
 
+TEST_F(MemoryClientTest, findZoneThrowsNotImplemented) {
+    // This method is not implemented.
+    EXPECT_THROW(client_->findZone(Name(".")),
+                 isc::NotImplemented);
+}
+
+TEST_F(MemoryClientTest, findZone2) {
+    client_->load(Name("example.org"),
+                  TEST_DATA_DIR "/example.org-rrsigs.zone");
+
+    isc::datasrc::memory::ZoneTable::FindResult
+        result(client_->findZone2(Name("example.com")));
+    EXPECT_EQ(result::NOTFOUND, result.code);
+
+    isc::datasrc::memory::ZoneTable::FindResult
+        result2(client_->findZone2(Name("example.org")));
+    EXPECT_EQ(result::SUCCESS, result2.code);
+}
+
 TEST_F(MemoryClientTest, getUpdaterThrowsNotImplemented) {
     // This method is not implemented.
     EXPECT_THROW(client_->getUpdater(Name("."), false, false),



More information about the bind10-changes mailing list