]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2436] More renaming from validation to check
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Wed, 9 Jan 2013 10:06:13 +0000 (11:06 +0100)
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>
Wed, 9 Jan 2013 10:06:13 +0000 (11:06 +0100)
For consistency.

src/lib/datasrc/tests/zone_loader_unittest.cc
src/lib/datasrc/zone_loader.cc
src/lib/datasrc/zone_loader.h

index 3ff80b04bf506b1e5a00ac9acdc4cdb2d1a8ecda..5c389bd818bf3c91743ecc38a706114938010bb1 100644 (file)
@@ -422,7 +422,7 @@ TEST_F(ZoneLoaderTest, loadSyntaxError) {
 }
 
 // Test there's validation of the data in the zone loader.
-TEST_F(ZoneLoaderTest, loadValidation) {
+TEST_F(ZoneLoaderTest, loadCheck) {
     ZoneLoader loader(destination_client_, Name::ROOT_NAME(),
                       TEST_DATA_DIR "/novalidate.zone");
     EXPECT_THROW(loader.loadIncremental(10), ZoneContentError);
@@ -431,7 +431,7 @@ TEST_F(ZoneLoaderTest, loadValidation) {
 }
 
 // The same test, but for copying from other data source
-TEST_F(ZoneLoaderTest, copyValidation) {
+TEST_F(ZoneLoaderTest, copyCheck) {
     prepareSource(Name::ROOT_NAME(), "novalidate.zone");
     ZoneLoader loader(destination_client_, Name::ROOT_NAME(), source_client_);
 
index 628f7efeef56ddc2c226927b6c595539e0606611..41a13ab590a0a161c7d335ef43235793f62ad233 100644 (file)
@@ -154,7 +154,7 @@ ZoneLoader::loadIncremental(size_t limit) {
             callbacks(boost::bind(&logError, &zone_name, &zone_class, _1),
                       boost::bind(&logWarning, &zone_name, &zone_class, _1));
         if (!dns::checkZone(zone_name, zone_class, collection, callbacks)) {
-            // Validation failed.
+            // The post-load check failed.
             loaded_ok_ = false;
             isc_throw(ZoneContentError, "Errors found when validating zone " <<
                       zone_name << "/" << zone_class);
index 292360fda05f3e07695563e15ff4fb88d5273a57..c7e5ccdc3dfe4664c7f1e2df1d301374cd39addb 100644 (file)
@@ -48,7 +48,7 @@ public:
     {}
 };
 
-/// \brief Exception thrown when the zone doesn't validate.
+/// \brief Exception thrown when the zone doesn't pass post-load check.
 ///
 /// This is thrown by the ZoneLoader when the zone is loaded, but it
 /// doesn't pass basic sanity checks.
@@ -138,7 +138,8 @@ public:
     /// After the last RR is loaded, a sanity check of the zone is performed by
     /// isc::dns::validateZone. It reports errors and warnings by logging them
     /// directly. If there are any errors, a ZoneContentError exception is
-    /// thrown.
+    /// thrown and the load is aborted (preserving the old version of zone, if
+    /// any).
     ///
     /// \param limit The maximum allowed number of RRs to be loaded during this
     ///     call.