2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-28 20:47:48 +00:00

138 Commits

Author SHA1 Message Date
Razvan Becheriu
34e98d10f6 [#3017] added testing framework for using dummy test interfaces 2023-10-17 12:35:55 +03:00
Razvan Becheriu
150ef07994 [#3003] output_options alias for output-options 2023-09-18 08:08:07 +00:00
Francis Dupont
b6d63f7d30 [#2869] After rebase fixes 2023-07-06 22:12:40 +02:00
Francis Dupont
9499a69ba3 [#2869] Updated v6 status-get 2023-07-06 22:11:33 +02:00
Francis Dupont
b168addec3 [#2866] Updated server tests 2023-06-26 14:24:42 +02:00
Slawek Figiel
4d3ede2b25
[#2707] wordsmithing 2023-06-22 16:23:38 +02:00
Tomek Mrugalski
0738facc55
[#2707] config-set in v6 now returns hash 2023-06-22 16:23:38 +02:00
Francis Dupont
c3026461a4
[#2707] Added config-hash-get with SHA-256 2023-06-22 16:23:38 +02:00
Andrei Pavel
8000f423dd
[#2797] add unit tests for lease reuse statistics 2023-05-03 22:26:09 +03:00
Razvan Becheriu
db352cc04c [#2722] config set follows the same path as config test and can rollback 2023-03-16 21:26:11 +02:00
Andrei Pavel
4440d12da3
[#2402] remove the regex check in statusGet UT
It caused failures on CentOS 7 and FreeBSDs 12 and 13.

unknown file: Failure
C++ exception with description "regex_error" thrown in the test body.
[  FAILED  ] CtrlChannelDhcpv4SrvTest.statusGet (3 ms)
2023-02-16 15:33:54 +02:00
Andrei Pavel
22fcc845e9
[#2402] adapt tests to MT enabled by default 2023-02-14 14:23:05 +02:00
Wlodek Wencel
e0f96268f8 [#2732] release changes 2023-01-23 19:18:49 +01:00
Tomek Mrugalski
007d1bed25 [#2693] Addressed review comments
- moved DHCP{4,6}_DEPRECATED
 - added note to return status text over API
2023-01-20 18:11:28 +01:00
Andrei Pavel
be66340902
[#2434] add tests for socket status in status-get 2022-07-22 14:36:31 +03:00
Razvan Becheriu
163efdff92 [#2054] added stats counter for allocation failures 2022-02-17 19:50:29 +02:00
Andrei Pavel
cd64f52014
[#2290] release changes 2022-01-25 18:17:54 +02:00
Razvan Becheriu
c83760ce68 [#2279] fixed unittests 2022-01-21 18:59:09 +00:00
Razvan Becheriu
f66f201c14 [#2279] added unittests 2022-01-21 18:59:09 +00:00
Andrei Pavel
96f049b111
[#1656] 1.9.4 release: spelling check 2021-01-25 13:52:09 +02:00
Razvan Becheriu
f638379c92 [#1601] multiple changes:
* added a timer for each origin type: USER_COMMAND and HA_COMMAND
 * added missing unittests
2021-01-22 17:15:20 +00:00
Razvan Becheriu
3b00622d59 [#1601] addressed review comments
* renamed Origin enum members
 * using 'ha-partner' as origin parameter in enable/disable HA_COMMAND
 * added unittests for new parameters and new command syntax
 * updated doxygen
2021-01-22 17:15:20 +00:00
Francis Dupont
36267979cc [#1306] Updated status-get 2020-10-22 19:20:47 +02:00
Francis Dupont
65292f6f1c [#1389] Removed statistic-remove-all tests 2020-09-25 07:36:03 +00:00
Francis Dupont
50548aa502 [#1388] Removed a few EXPECT_EQ with boolean 2020-09-09 15:42:34 +02:00
Razvan Becheriu
d86ef62b6c [#1305] addresses comments 2020-08-18 23:11:25 +03:00
Razvan Becheriu
dc4e001199 [#1305] add thread and queue info to get-status command 2020-08-18 23:11:25 +03:00
Francis Dupont
0680e3e01c [#1308] No _1 ambiguities 2020-08-13 13:54:14 +00:00
Francis Dupont
2035f64c1c [#1308] Got rid of boost function/bind 2020-08-13 13:54:14 +00:00
Francis Dupont
01e10ceba1 [#1007] Replaced some option spaces 2020-08-05 13:58:29 +02:00
Francis Dupont
11c8af9c4b [#1174] Changed stats to use C++11 chrono 2020-07-14 15:37:51 +02:00
Francis Dupont
642c265679 [#916] Addressed comments 2020-07-08 14:32:45 +02:00
Francis Dupont
a07ea817e0 [#916] Checkpoint before regen 2020-07-08 14:32:45 +02:00
Francis Dupont
4e36974fc9 [#1282] Final cleanups 2020-06-27 17:59:10 +02:00
Razvan Becheriu
ed504b1ce1 [#1188] fixed unittests 2020-04-30 13:53:48 +03:00
Razvan Becheriu
abaaa9d869 [#1188] added unittests 2020-04-30 13:53:48 +03:00
Thomas Markwalder
17580ffc98 [#1115] shutdown command exit-value arg, exit w/failure on db loss
Added exit-value argument to shutdown command.
kea-dhcpX servers now exit with EXIT_FAILURE status on db loss

src/lib/process/daemon.*
    Daemon::exit_value_,  new member with getter/setter

src/lib/process/d_controller.*
    DControllerBase::launch() - now returns getExitValue()
    DControllerBase::shutdownHandler() - uses exit-value argument to set exit
    value

src/lib/process/tests/daemon_unittest.cc
    TEST_F(DaemonTest, exitValue)  - new test

src/bin/agent/main.cc
    Use launch() return value for exit value.

src/bin/agent/tests/ca_controller_unittests.cc
    TEST_F(CtrlAgentControllerTest, shutdownExitValue)  - new test

src/bin/d2/main.cc
    Use launch() return value for exit value.

src/bin/d2/tests/d2_command_unittest.cc
    TEST_F(CtrlChannelD2Test, shutdownExitValue)  - new test

src/bin/dhcp4/ctrl_dhcp4_srv.*
    ControlledDhcpv4Srv::
        commandShutdownHandler() - handle exit-value argument
        shutdown(int exit_value) - added exit_value parameter
        dbReconnect() - call shutdown(EXIT_FAILURE)
        dbLostCallback() - call shutdown(EXIT_FAILURE)

src/bin/dhcp4/dhcp4_srv.*
    Dhcp4Srv::run() - returns int Daemon::exit_value instead of bool

src/bin/dhcp4/main.cc
    Use run() return value for exit value.

src/bin/dhcp4/tests/ctrl_dhcp4_srv_unittest.cc
    TEST_F(CtrlChannelDhcpv4SrvTest, commands) - revamped test

src/bin/dhcp6/ctrl_dhcp6_srv.*
    ControlledDhcpv6Srv::
        commandShutdownHandler() - use exit-value argument to set exit value
        shutdown(int exit_value) - added exit_value parameter
        dbReconnect() - call shutdown(EXIT_FAILURE)
        dbLostCallback() - call shutdown(EXIT_FAILURE)

src/bin/dhcp6/dhcp6_srv.*
    Dhcp6Srv::run() - returns int Daemon::exit_value instead of bool

src/bin/dhcp6/main.cc
    Use run() return value for exit value.

src/bin/dhcp6/tests/ctrl_dhcp6_srv_unittest.cc
    TEST_F(CtrlDhcpv6SrvTest, commands) - revamped test
2020-03-04 06:59:52 -05:00
Marcin Siodelski
d8fdd81739 [#1041] Extended statusGet unittests
The uptime, reload and pid returned are validated.
2019-12-13 17:01:00 +01:00
Francis Dupont
f3f5125e3b [#1041] Addressed new comments 2019-12-13 17:01:00 +01:00
Francis Dupont
4f2df8c373 [#1041] Augmented HA report 2019-12-13 17:01:00 +01:00
Francis Dupont
34e7cfb711 [#1041] Checkpoint: added uptime, last commit and HA to do 2019-12-13 16:54:14 +01:00
Francis Dupont
82f58f889e [#1041] Checkpoint: created status-get returning pid (only) 2019-12-13 16:54:14 +01:00
Francis Dupont
9f3d76f6f0 [904-add-ability-to-force-a-cb-update-remotely] Addressed last comments 2019-10-28 10:33:38 +01:00
Francis Dupont
9fe0906d81 [904-add-ability-to-force-a-cb-update-remotely] Added server-update command 2019-10-28 10:33:38 +01:00
Marcin Siodelski
92ffc5bc80 [#755,!502] Removed duplicated test after the rebase. 2019-09-06 11:56:06 +02:00
Franciszek Gorski
3e5d57870f [755-Kea-DHCP-servers-observations-should-be-reset] resolve threads 2019-09-06 11:34:54 +02:00
Franciszek Gorski
3a92d22727 [755-Kea-DHCP-servers-observations-should-be-reset] implement required changes to dhcp4 and dhcp6 servers 2019-09-06 11:34:54 +02:00
Franciszek Gorski
b56fa9d491 [755-Kea-DHCP-servers-observations-should-be-reset-to-some-initial-values-upon-restart-or-reconfiguration] add initialization of all statistisc during set up 2019-09-06 11:34:54 +02:00
Razvan Becheriu
d16cbce551 [#729,!434] fixed rebase 2019-09-06 09:08:55 +03:00
Razvan Becheriu
cfd5a7ea4f [#729,!434] change order of functions in file 2019-09-06 09:08:55 +03:00