BIND 10 trac2108_3, updated. 38db4f895183880f827ae0c24f2eb602860b2ca6 [2108] Add testcase for non-existent zone's iterator

BIND 10 source code commits bind10-changes at lists.isc.org
Wed Sep 5 11:51:25 UTC 2012


The branch, trac2108_3 has been updated
       via  38db4f895183880f827ae0c24f2eb602860b2ca6 (commit)
      from  9d1a6c855efa69033fce89cd1d9c640757324696 (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 38db4f895183880f827ae0c24f2eb602860b2ca6
Author: Mukund Sivaraman <muks at isc.org>
Date:   Wed Sep 5 17:21:12 2012 +0530

    [2108] Add testcase for non-existent zone's iterator

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

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

-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/memory/tests/memory_client_unittest.cc b/src/lib/datasrc/memory/tests/memory_client_unittest.cc
index e19ca39..a19e975 100644
--- a/src/lib/datasrc/memory/tests/memory_client_unittest.cc
+++ b/src/lib/datasrc/memory/tests/memory_client_unittest.cc
@@ -20,6 +20,7 @@
 #include <dns/rrclass.h>
 
 #include <datasrc/result.h>
+#include <datasrc/data_source.h>
 #include <datasrc/memory/zone_data.h>
 #include <datasrc/memory/zone_table.h>
 #include <datasrc/memory/memory_client.h>
@@ -58,6 +59,8 @@ protected:
     memory::ZoneTable* zone_table;
 };
 
-TEST_F(MemoryClientTest, create) {
+TEST_F(MemoryClientTest, getIteratorNonExistent) {
+    // Zone "a." doesn't exist
+    EXPECT_THROW(client_->getIterator(Name("a")), DataSourceError);
 }
 }



More information about the bind10-changes mailing list