From: Michal 'vorner' Vaner Date: Wed, 20 Jun 2012 10:56:30 +0000 (+0200) Subject: [1976] Create (empty) test for datasrc configurator X-Git-Tag: trac2351_base~97^2~7^2~2^2~21^2~21 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7ef59689d4277f0fa9fa43996c7c19ac509e741d;p=thirdparty%2Fkea.git [1976] Create (empty) test for datasrc configurator --- diff --git a/src/bin/auth/datasrc_configurator.h b/src/bin/auth/datasrc_configurator.h index cab0cce41b..f805c6ca5d 100644 --- a/src/bin/auth/datasrc_configurator.h +++ b/src/bin/auth/datasrc_configurator.h @@ -18,7 +18,7 @@ #include "auth_srv.h" #include -#include +#include /// \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. diff --git a/src/bin/auth/tests/Makefile.am b/src/bin/auth/tests/Makefile.am index 84fd5fae9c..74d3bed42c 100644 --- a/src/bin/auth/tests/Makefile.am +++ b/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 diff --git a/src/bin/auth/tests/datasrc_configurator_unittest.cc b/src/bin/auth/tests/datasrc_configurator_unittest.cc new file mode 100644 index 0000000000..6144064723 --- /dev/null +++ b/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 + +namespace { + +}