-// Copyright (C) 2018-2024 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2018-2025 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
#include <asiolink/asio_wrapper.h>
#include <asiolink/interval_timer.h>
#include <asiolink/io_service.h>
+#include <config/unix_command_config.h>
#include <http/listener.h>
#include <http/post_request_json.h>
#include <http/response_creator.h>
#include <netconf/netconf_config.h>
#include <netconf/stdout_control_socket.h>
#include <netconf/unix_control_socket.h>
-#include <testutils/sandbox.h>
#include <testutils/threaded_test.h>
#include <yang/tests/sysrepo_setup.h>
using namespace isc;
using namespace isc::netconf;
using namespace isc::asiolink;
+using namespace isc::config;
using namespace isc::data;
using namespace isc::http;
using namespace isc::http::test;
/// @brief Test fixture class for unix control sockets.
class UnixControlSocketTest : public ThreadedTest {
public:
- isc::test::Sandbox sandbox;
-
/// @brief Constructor.
UnixControlSocketTest()
: ThreadedTest(), io_service_(new IOService()) {
if (env) {
socket_path = string(env) + "/test-socket";
} else {
- socket_path = sandbox.join("test-socket");
+ socket_path = UnixCommandConfig::getSocketPath() + "/test-socket";
}
return (socket_path);
}
-// Copyright (C) 2018-2024 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2018-2025 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
" \"dhcp4\": {"
" \"control-socket\": {"
" \"socket-type\": \"unix\","
- " \"socket-name\": \"/first/dhcp4/socket\""
+ " \"socket-name\": \"dhcp4-socket\""
" }"
" },"
" \"dhcp6\": {"
" \"control-socket\": {"
" \"socket-type\": \"unix\","
- " \"socket-name\": \"/first/dhcp6/socket\""
+ " \"socket-name\": \"dhcp6-socket\""
" }"
" }"
" }"
#include <asiolink/interval_timer.h>
#include <asiolink/io_service.h>
#include <cc/command_interpreter.h>
+#include <config/unix_command_config.h>
#include <netconf/netconf.h>
#include <netconf/netconf_process.h>
#include <netconf/parser_context.h>
#include <netconf/simple_parser.h>
#include <netconf/unix_control_socket.h>
#include <testutils/log_utils.h>
-#include <testutils/sandbox.h>
#include <testutils/threaded_test.h>
#include <yang/tests/sysrepo_setup.h>
#include <yang/testutils/translator_test.h>
/// @brief Test fixture class for netconf agent.
class NetconfAgentTest : public ThreadedTest {
public:
- isc::test::Sandbox sandbox;
-
void SetUp() override {
SysrepoSetup::cleanSharedMemory();
removeUnixSocketFile();
if (env) {
socket_path = string(env) + "/" + TEST_SOCKET;
} else {
- socket_path = sandbox.join(TEST_SOCKET);
+ socket_path = UnixCommandConfig::getSocketPath() + "/" + TEST_SOCKET;
}
return (socket_path);
}