src/bin/agent/Makefile
src/bin/agent/tests/Makefile
src/bin/agent/tests/ca_process_tests.sh
+ src/bin/agent/tests/test_basic_auth_libraries.h
+ src/bin/agent/tests/test_callout_libraries.h
src/bin/agent/tests/test_data_files_config.h
- src/bin/agent/tests/test_libraries.h
src/bin/d2/Makefile
src/bin/d2/tests/Makefile
src/bin/d2/tests/d2_process_tests.sh
CLEANFILES = $(builddir)/interfaces.txt $(builddir)/logger_lockfile
-DISTCLEANFILES = ca_process_tests.sh test_data_files_config.h test_libraries.h
+DISTCLEANFILES = ca_process_tests.sh test_data_files_config.h
+DISTCLEANFILES += test_basic_auth_libraries.h test_callout_libraries.h
AM_CXXFLAGS = $(KEA_CXXFLAGS)
libbasicauth_la_LIBADD += $(LOG4CPLUS_LIBS) $(BOOST_LIBS)
libbasicauth_la_LDFLAGS = -avoid-version -export-dynamic -module -rpath /nowhere
-nodist_ca_unittests_SOURCES = test_data_files_config.h test_libraries.h
+nodist_ca_unittests_SOURCES = test_data_files_config.h
+nodist_ca_unittests_SOURCES += test_basic_auth_libraries.h
+nodist_ca_unittests_SOURCES += test_callout_libraries.h
endif
}
HttpResponsePtr
-ResponseCreator::createStockHttpResponse(const HttpRequestPtr& request,
+ResponseCreator::createStockHttpResponse(const HttpRequestPtr& /*request*/,
const HttpStatusCode& status_code) const {
HttpVersion http_version(1, 1);
HttpResponsePtr response(new HttpResponseJson(http_version, status_code));
}
HttpResponsePtr
-ResponseCreator::createDynamicHttpResponse(HttpRequestPtr request) {
+ResponseCreator::createDynamicHttpResponse(HttpRequestPtr /*request*/) {
isc_throw(NotImplemented, "createDynamicHttpResponse should not be called");
}
#include <process/testutils/d_test_stubs.h>
#include <process/d_cfg_mgr.h>
#include <http/basic_auth_config.h>
-#include <agent/tests/test_libraries.h>
+#include <agent/tests/test_callout_libraries.h>
#include <boost/pointer_cast.hpp>
#include <boost/scoped_ptr.hpp>
#include <gtest/gtest.h>
#include <http/post_request_json.h>
#include <http/response_json.h>
#include <process/testutils/d_test_stubs.h>
-#include <agent/tests/test_libraries.h>
+#include <agent/tests/test_basic_auth_libraries.h>
#include <gtest/gtest.h>
#include <boost/pointer_cast.hpp>
#include <functional>
#include <sstream>
#include "test_data_files_config.h"
-#include "test_libraries.h"
+#include "test_callout_libraries.h"
using namespace isc::agent;
using namespace isc::config;
--- /dev/null
+// Copyright (C) 2017-2020 Internet Systems Consortium, Inc. ("ISC")
+//
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#ifndef AGENT_TEST_BASIC_AUTH_LIBRARIES_H
+#define AGENT_TEST_BASIC_AUTH_LIBRARIES_H
+
+#include <config.h>
+
+namespace {
+
+// Names of the libraries used in these tests. These libraries are built using
+// libtool, so we need to look in the hidden ".libs" directory to locate the
+// .so file. Note that we access the .so file - libtool creates this as a
+// like to the real shared library.
+
+// Basic HTTP authentication as a callout library.
+static const char* BASIC_AUTH_LIBRARY = "@abs_builddir@/.libs/libbasicauth.so";
+
+} // anonymous namespace
+
+#endif // TEST_BASIC_AUTH_LIBRARIES_H
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#ifndef AGENT_TEST_LIBRARIES_H
-#define AGENT_TEST_LIBRARIES_H
+#ifndef AGENT_TEST_CALLOUT_LIBRARIES_H
+#define AGENT_TEST_CALLOUT_LIBRARIES_H
#include <config.h>
// Basic callout library with context_create and three "standard" callouts.
static const char* CALLOUT_LIBRARY = "@abs_builddir@/.libs/libcallout.so";
-// Basic HTTP authentication as a callout library.
-static const char* BASIC_AUTH_LIBRARY = "@abs_builddir@/.libs/libbasicauth.so";
-
} // anonymous namespace
#endif // TEST_LIBRARIES_H