]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2108] Check that findZone() derived from DataSourceClient throws
authorMukund Sivaraman <muks@isc.org>
Thu, 6 Sep 2012 07:58:51 +0000 (13:28 +0530)
committerMukund Sivaraman <muks@isc.org>
Thu, 6 Sep 2012 07:58:51 +0000 (13:28 +0530)
This is unimplemented. findZone2() has the correct implementation.

src/lib/datasrc/memory/tests/memory_client_unittest.cc

index b4eefabe4199ace1c2051ebae8bc4dd6403bd5c8..0b2e6d8dad5da6def53d7db275d79d3cfcc64ac2 100644 (file)
@@ -279,6 +279,12 @@ 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, getUpdaterThrowsNotImplemented) {
     // This method is not implemented.
     EXPECT_THROW(client_->getUpdater(Name("."), false, false),