Skip to content

Commit 45ff8e1

Browse files
Razvan Becheriufxdupont
authored andcommitted
[#2101] check default hooks path in config report
1 parent df3f1a9 commit 45ff8e1

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/lib/process/cfgrpt/tests/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ run_unittests_SOURCES = config_report_unittests.cc run_unittests.cc
2121
run_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES)
2222
run_unittests_LDFLAGS = $(AM_LDFLAGS) $(GTEST_LDFLAGS)
2323
run_unittests_LDADD = $(top_builddir)/src/lib/process/cfgrpt/libcfgrpt.la
24+
run_unittests_LDADD += $(top_builddir)/src/lib/hooks/libkea-hooks.la
2425
run_unittests_LDADD += $(top_builddir)/src/lib/log/libkea-log.la
2526
run_unittests_LDADD += $(top_builddir)/src/lib/util/unittests/libutil_unittests.la
2627
run_unittests_LDADD += $(top_builddir)/src/lib/util/libkea-util.la

src/lib/process/cfgrpt/tests/config_report_unittests.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@
66

77
#include <config.h>
88
#include <kea_version.h>
9+
#include <hooks/hooks_parser.h>
910
#include <process/cfgrpt/config_report.h>
1011

1112
#include <gtest/gtest.h>
1213

1314
using namespace isc;
15+
using namespace isc::hooks;
1416
using namespace std;
1517

1618
// This test verifies that the getConfigReport() function
@@ -25,4 +27,5 @@ TEST(ConfigReportTest, getConfigReport) {
2527
ASSERT_FALSE(cfgReport.empty());
2628
EXPECT_NE(std::string::npos, cfgReport.find(VERSION));
2729
EXPECT_NE(std::string::npos, cfgReport.find(EXTENDED_VERSION));
30+
EXPECT_NE(std::string::npos, cfgReport.find(HooksLibrariesParser::default_hooks_path_));
2831
}

0 commit comments

Comments
 (0)