summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRazvan Becheriu <razvan@isc.org>2024-12-20 20:18:08 +0100
committerFrancis Dupont <fdupont@isc.org>2024-12-24 14:03:04 +0100
commit45ff8e141ad3837d60c51ff8ad1036489bdf6e27 (patch)
tree3f254524721552eda6aebb452ec4edebbf4b3656 /src
parent[#2101] load hooks using name only (diff)
downloadkea-45ff8e141ad3837d60c51ff8ad1036489bdf6e27.tar.xz
kea-45ff8e141ad3837d60c51ff8ad1036489bdf6e27.zip
[#2101] check default hooks path in config report
Diffstat (limited to 'src')
-rw-r--r--src/lib/process/cfgrpt/tests/Makefile.am1
-rw-r--r--src/lib/process/cfgrpt/tests/config_report_unittests.cc3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/process/cfgrpt/tests/Makefile.am b/src/lib/process/cfgrpt/tests/Makefile.am
index 90fd8412d5..39129fc887 100644
--- a/src/lib/process/cfgrpt/tests/Makefile.am
+++ b/src/lib/process/cfgrpt/tests/Makefile.am
@@ -21,6 +21,7 @@ run_unittests_SOURCES = config_report_unittests.cc run_unittests.cc
run_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES)
run_unittests_LDFLAGS = $(AM_LDFLAGS) $(GTEST_LDFLAGS)
run_unittests_LDADD = $(top_builddir)/src/lib/process/cfgrpt/libcfgrpt.la
+run_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
run_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
run_unittests_LDADD += $(top_builddir)/src/lib/util/unittests/libutil_unittests.la
run_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la
diff --git a/src/lib/process/cfgrpt/tests/config_report_unittests.cc b/src/lib/process/cfgrpt/tests/config_report_unittests.cc
index db6de414cc..a783f3d196 100644
--- a/src/lib/process/cfgrpt/tests/config_report_unittests.cc
+++ b/src/lib/process/cfgrpt/tests/config_report_unittests.cc
@@ -6,11 +6,13 @@
#include <config.h>
#include <kea_version.h>
+#include <hooks/hooks_parser.h>
#include <process/cfgrpt/config_report.h>
#include <gtest/gtest.h>
using namespace isc;
+using namespace isc::hooks;
using namespace std;
// This test verifies that the getConfigReport() function
@@ -25,4 +27,5 @@ TEST(ConfigReportTest, getConfigReport) {
ASSERT_FALSE(cfgReport.empty());
EXPECT_NE(std::string::npos, cfgReport.find(VERSION));
EXPECT_NE(std::string::npos, cfgReport.find(EXTENDED_VERSION));
+ EXPECT_NE(std::string::npos, cfgReport.find(HooksLibrariesParser::default_hooks_path_));
}