diff options
author | Razvan Becheriu <razvan@isc.org> | 2023-10-14 00:56:20 +0200 |
---|---|---|
committer | Andrei Pavel <andrei@isc.org> | 2023-10-17 11:35:55 +0200 |
commit | 34e98d10f64e2966d2d7767b12d75bd0f62f3a54 (patch) | |
tree | 57c9a022fbcfe7993b5c2fd284bbbf34f69dae32 /src/lib/dhcpsrv/tests | |
parent | [#3017] add ChangeLog entry (diff) | |
download | kea-34e98d10f64e2966d2d7767b12d75bd0f62f3a54.tar.xz kea-34e98d10f64e2966d2d7767b12d75bd0f62f3a54.zip |
[#3017] added testing framework for using dummy test interfaces
Diffstat (limited to 'src/lib/dhcpsrv/tests')
-rw-r--r-- | src/lib/dhcpsrv/tests/Makefile.am | 2 | ||||
-rw-r--r-- | src/lib/dhcpsrv/tests/cfg_iface_unittest.cc | 6 | ||||
-rw-r--r-- | src/lib/dhcpsrv/tests/cfg_subnets4_unittest.cc | 2 | ||||
-rw-r--r-- | src/lib/dhcpsrv/tests/cfg_subnets6_unittest.cc | 2 | ||||
-rw-r--r-- | src/lib/dhcpsrv/tests/cfgmgr_unittest.cc | 2 | ||||
-rw-r--r-- | src/lib/dhcpsrv/tests/dhcp4o6_ipc_unittest.cc | 2 | ||||
-rw-r--r-- | src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc | 2 | ||||
-rw-r--r-- | src/lib/dhcpsrv/tests/ifaces_config_parser_unittest.cc | 2 | ||||
-rw-r--r-- | src/lib/dhcpsrv/tests/shared_network_parser_unittest.cc | 2 | ||||
-rw-r--r-- | src/lib/dhcpsrv/tests/shared_networks_list_parser_unittest.cc | 2 | ||||
-rw-r--r-- | src/lib/dhcpsrv/tests/srv_config_unittest.cc | 2 |
11 files changed, 13 insertions, 13 deletions
diff --git a/src/lib/dhcpsrv/tests/Makefile.am b/src/lib/dhcpsrv/tests/Makefile.am index a73d0f34a7..c59b10374b 100644 --- a/src/lib/dhcpsrv/tests/Makefile.am +++ b/src/lib/dhcpsrv/tests/Makefile.am @@ -166,7 +166,7 @@ libdhcpsrv_unittests_LDADD += $(top_builddir)/src/lib/dhcp_ddns/libkea-dhcp_ddns libdhcpsrv_unittests_LDADD += $(top_builddir)/src/lib/stats/libkea-stats.la libdhcpsrv_unittests_LDADD += $(top_builddir)/src/lib/config/libkea-cfgclient.la libdhcpsrv_unittests_LDADD += $(top_builddir)/src/lib/http/libkea-http.la -libdhcpsrv_unittests_LDADD += $(top_builddir)/src/lib/dhcp/tests/libdhcptest.la +libdhcpsrv_unittests_LDADD += $(top_builddir)/src/lib/dhcp/testutils/libdhcptest.la libdhcpsrv_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la libdhcpsrv_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la diff --git a/src/lib/dhcpsrv/tests/cfg_iface_unittest.cc b/src/lib/dhcpsrv/tests/cfg_iface_unittest.cc index 03591c0104..be0856ee05 100644 --- a/src/lib/dhcpsrv/tests/cfg_iface_unittest.cc +++ b/src/lib/dhcpsrv/tests/cfg_iface_unittest.cc @@ -6,9 +6,9 @@ #include <config.h> #include <dhcp/dhcp4.h> -#include <dhcp/tests/iface_mgr_test_config.h> -#include <dhcp/tests/pkt_filter_test_stub.h> -#include <dhcp/tests/pkt_filter6_test_stub.h> +#include <dhcp/testutils/iface_mgr_test_config.h> +#include <dhcp/testutils/pkt_filter_test_stub.h> +#include <dhcp/testutils/pkt_filter6_test_stub.h> #include <dhcpsrv/cfg_iface.h> #include <asiolink/io_service.h> #include <asiolink/asio_wrapper.h> diff --git a/src/lib/dhcpsrv/tests/cfg_subnets4_unittest.cc b/src/lib/dhcpsrv/tests/cfg_subnets4_unittest.cc index 73c36a7260..f1472e645c 100644 --- a/src/lib/dhcpsrv/tests/cfg_subnets4_unittest.cc +++ b/src/lib/dhcpsrv/tests/cfg_subnets4_unittest.cc @@ -13,7 +13,7 @@ #include <dhcp/option_definition.h> #include <dhcp/option_space.h> #include <dhcp/option_string.h> -#include <dhcp/tests/iface_mgr_test_config.h> +#include <dhcp/testutils/iface_mgr_test_config.h> #include <dhcpsrv/cfgmgr.h> #include <dhcpsrv/lease_mgr_factory.h> #include <dhcpsrv/parsers/dhcp_parsers.h> diff --git a/src/lib/dhcpsrv/tests/cfg_subnets6_unittest.cc b/src/lib/dhcpsrv/tests/cfg_subnets6_unittest.cc index ece583fb07..83fad92123 100644 --- a/src/lib/dhcpsrv/tests/cfg_subnets6_unittest.cc +++ b/src/lib/dhcpsrv/tests/cfg_subnets6_unittest.cc @@ -11,7 +11,7 @@ #include <dhcp/dhcp6.h> #include <dhcp/option.h> #include <dhcp/option_string.h> -#include <dhcp/tests/iface_mgr_test_config.h> +#include <dhcp/testutils/iface_mgr_test_config.h> #include <dhcpsrv/cfgmgr.h> #include <dhcpsrv/cfg_shared_networks.h> #include <dhcpsrv/cfg_subnets6.h> diff --git a/src/lib/dhcpsrv/tests/cfgmgr_unittest.cc b/src/lib/dhcpsrv/tests/cfgmgr_unittest.cc index 47f9cff104..1be8c68456 100644 --- a/src/lib/dhcpsrv/tests/cfgmgr_unittest.cc +++ b/src/lib/dhcpsrv/tests/cfgmgr_unittest.cc @@ -8,7 +8,7 @@ #include <exceptions/exceptions.h> #include <dhcp/dhcp6.h> -#include <dhcp/tests/iface_mgr_test_config.h> +#include <dhcp/testutils/iface_mgr_test_config.h> #include <dhcpsrv/cfgmgr.h> #include <dhcpsrv/lease_mgr_factory.h> #include <dhcpsrv/subnet_id.h> diff --git a/src/lib/dhcpsrv/tests/dhcp4o6_ipc_unittest.cc b/src/lib/dhcpsrv/tests/dhcp4o6_ipc_unittest.cc index 192bb63d54..4a327cde13 100644 --- a/src/lib/dhcpsrv/tests/dhcp4o6_ipc_unittest.cc +++ b/src/lib/dhcpsrv/tests/dhcp4o6_ipc_unittest.cc @@ -8,7 +8,7 @@ #include <dhcp/iface_mgr.h> #include <dhcp/pkt6.h> -#include <dhcp/tests/iface_mgr_test_config.h> +#include <dhcp/testutils/iface_mgr_test_config.h> #include <dhcp/option6_addrlst.h> #include <dhcp/option_string.h> #include <dhcp/option_vendor.h> diff --git a/src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc b/src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc index 3a8bb7ca5d..e893ce7579 100644 --- a/src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc +++ b/src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc @@ -14,7 +14,7 @@ #include <dhcp/option_string.h> #include <dhcp/option4_addrlst.h> #include <dhcp/option6_addrlst.h> -#include <dhcp/tests/iface_mgr_test_config.h> +#include <dhcp/testutils/iface_mgr_test_config.h> #include <dhcpsrv/cfgmgr.h> #include <dhcpsrv/subnet.h> #include <dhcpsrv/cfg_mac_source.h> diff --git a/src/lib/dhcpsrv/tests/ifaces_config_parser_unittest.cc b/src/lib/dhcpsrv/tests/ifaces_config_parser_unittest.cc index 9e6546246b..aec05d9e90 100644 --- a/src/lib/dhcpsrv/tests/ifaces_config_parser_unittest.cc +++ b/src/lib/dhcpsrv/tests/ifaces_config_parser_unittest.cc @@ -7,7 +7,7 @@ #include <config.h> #include <cc/data.h> -#include <dhcp/tests/iface_mgr_test_config.h> +#include <dhcp/testutils/iface_mgr_test_config.h> #include <dhcpsrv/cfgmgr.h> #include <dhcpsrv/parsers/ifaces_config_parser.h> #include <testutils/test_to_element.h> diff --git a/src/lib/dhcpsrv/tests/shared_network_parser_unittest.cc b/src/lib/dhcpsrv/tests/shared_network_parser_unittest.cc index ea2f3b3af9..3472e0f190 100644 --- a/src/lib/dhcpsrv/tests/shared_network_parser_unittest.cc +++ b/src/lib/dhcpsrv/tests/shared_network_parser_unittest.cc @@ -12,7 +12,7 @@ #include <dhcp/option.h> #include <dhcp/option4_addrlst.h> #include <dhcp/option6_addrlst.h> -#include <dhcp/tests/iface_mgr_test_config.h> +#include <dhcp/testutils/iface_mgr_test_config.h> #include <dhcpsrv/cfg_option.h> #include <dhcpsrv/parsers/shared_network_parser.h> #include <testutils/gtest_utils.h> diff --git a/src/lib/dhcpsrv/tests/shared_networks_list_parser_unittest.cc b/src/lib/dhcpsrv/tests/shared_networks_list_parser_unittest.cc index cf7516f4f1..9aa886dfcc 100644 --- a/src/lib/dhcpsrv/tests/shared_networks_list_parser_unittest.cc +++ b/src/lib/dhcpsrv/tests/shared_networks_list_parser_unittest.cc @@ -6,7 +6,7 @@ #include <config.h> #include <cc/data.h> -#include <dhcp/tests/iface_mgr_test_config.h> +#include <dhcp/testutils/iface_mgr_test_config.h> #include <dhcpsrv/cfg_shared_networks.h> #include <dhcpsrv/shared_network.h> #include <dhcpsrv/parsers/shared_networks_list_parser.h> diff --git a/src/lib/dhcpsrv/tests/srv_config_unittest.cc b/src/lib/dhcpsrv/tests/srv_config_unittest.cc index b5545a6264..3cf7032c41 100644 --- a/src/lib/dhcpsrv/tests/srv_config_unittest.cc +++ b/src/lib/dhcpsrv/tests/srv_config_unittest.cc @@ -6,7 +6,7 @@ #include <config.h> -#include <dhcp/tests/iface_mgr_test_config.h> +#include <dhcp/testutils/iface_mgr_test_config.h> #include <dhcpsrv/cfgmgr.h> #include <dhcpsrv/client_class_def.h> #include <dhcpsrv/srv_config.h> |