]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2108] Test loading a non-existent zone file
authorMukund Sivaraman <muks@isc.org>
Thu, 6 Sep 2012 01:33:10 +0000 (07:03 +0530)
committerMukund Sivaraman <muks@isc.org>
Thu, 6 Sep 2012 01:33:10 +0000 (07:03 +0530)
src/lib/datasrc/memory/tests/memory_client_unittest.cc

index 1d02a5c1c2ed5399f85a56016aedf220cf02e526..74071fc74d0a2b0afb9835331e7870eac6cfe40e 100644 (file)
@@ -115,6 +115,13 @@ TEST_F(MemoryClientTest, loadErrorsInParsingZoneMustNotLeak2) {
     // Teardown checks for memory segment leaks
 }
 
+TEST_F(MemoryClientTest, loadNonExistentZoneFile) {
+    EXPECT_THROW(client_->load(Name("example.org"),
+                               TEST_DATA_DIR "/somerandomfilename"),
+                 MasterLoadError);
+    // Teardown checks for memory segment leaks
+}
+
 TEST_F(MemoryClientTest, load) {
     // This is a simple load check for a "full" and correct zone that
     // should not result in any exceptions.