Browse Source

[1976] Create (empty) test for datasrc configurator

Michal 'vorner' Vaner 13 years ago
parent
commit
7ef59689d4

+ 2 - 2
src/bin/auth/datasrc_configurator.h

@@ -18,7 +18,7 @@
 #include "auth_srv.h"
 
 #include <datasrc/client_list.h>
-#include <config/module_session.h>
+#include <config/ccsession.h>
 
 /// \brief A class to configure the authoritative server's data source lists
 ///
@@ -45,7 +45,7 @@ private:
                                     isc::data::ConstElementPtr config,
                                     const isc::config::ConfigData&)
     {
-        reconfigure(data);
+        reconfigure(config);
     }
 public:
     /// \brief Initializes the class.

+ 1 - 0
src/bin/auth/tests/Makefile.am

@@ -44,6 +44,7 @@ run_unittests_SOURCES += command_unittest.cc
 run_unittests_SOURCES += common_unittest.cc
 run_unittests_SOURCES += query_unittest.cc
 run_unittests_SOURCES += statistics_unittest.cc
+run_unittests_SOURCES += datasrc_configurator_unittest.cc
 run_unittests_SOURCES += run_unittests.cc
 # This is a temporary workaround for #1206, where the InMemoryClient has been
 # moved to an ldopened library. We could add that library to LDADD, but that

+ 19 - 0
src/bin/auth/tests/datasrc_configurator_unittest.cc

@@ -0,0 +1,19 @@
+// Copyright (C) 2012  Internet Systems Consortium, Inc. ("ISC")
+//
+// Permission to use, copy, modify, and/or distribute this software for any
+// purpose with or without fee is hereby granted, provided that the above
+// copyright notice and this permission notice appear in all copies.
+//
+// THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
+// REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+// AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
+// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+// LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+// PERFORMANCE OF THIS SOFTWARE.
+
+#include <auth/datasrc_configurator.h>
+
+namespace {
+
+}