]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1976] Create (empty) test for datasrc configurator
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Wed, 20 Jun 2012 10:56:30 +0000 (12:56 +0200)
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>
Wed, 20 Jun 2012 10:56:30 +0000 (12:56 +0200)
src/bin/auth/datasrc_configurator.h
src/bin/auth/tests/Makefile.am
src/bin/auth/tests/datasrc_configurator_unittest.cc [new file with mode: 0644]

index cab0cce41bbdb3bf30a566536023bac670c9d30e..f805c6ca5d06409231928f6653fd509e11ae30b8 100644 (file)
@@ -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.
index 84fd5fae9c7f9363c79a0f23cbcf90838186abcf..74d3bed42c23885e729f9892cfb633d28d0b2ef2 100644 (file)
@@ -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
diff --git a/src/bin/auth/tests/datasrc_configurator_unittest.cc b/src/bin/auth/tests/datasrc_configurator_unittest.cc
new file mode 100644 (file)
index 0000000..6144064
--- /dev/null
@@ -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 {
+
+}