Tomek Mrugalski
16deb5e4db
[5151] get-config, write-config implemented
2017-03-14 21:06:56 +01:00
Tomek Mrugalski
d99048aa5b
[master] Merge branch 'trac5076' (flex/bison for control agent)
2017-02-10 19:23:21 +01:00
Tomek Mrugalski
27956d95a3
[master] Merge branch github47 (typos)
...
# Conflicts:
# src/bin/dhcp4/json_config_parser.cc
# src/bin/dhcp4/tests/fqdn_unittest.cc
# src/bin/dhcp6/dhcp6_srv.h
# src/bin/dhcp6/tests/fqdn_unittest.cc
# src/lib/config/command_mgr.h
# src/lib/dhcpsrv/alloc_engine.h
# src/lib/dhcpsrv/parsers/client_class_def_parser.h
# src/lib/dhcpsrv/parsers/dbaccess_parser.cc
# src/lib/dhcpsrv/parsers/dhcp_parsers.cc
# src/lib/dhcpsrv/parsers/dhcp_parsers.h
# src/lib/dhcpsrv/srv_config.h
# src/lib/dhcpsrv/tests/client_class_def_parser_unittest.cc
# src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc
# src/lib/eval/eval_context.h
# src/lib/hooks/callout_manager.cc
# src/lib/testutils/dhcp_test_lib.sh.in
2017-02-10 18:47:03 +01:00
Tomek Mrugalski
2c9ba565e1
[5076] decommentJSONFile moved to isc::test
2017-02-07 13:29:04 +01:00
Tomek Mrugalski
52158a480c
[master] Unit-test fixes after #5122 and #5123 merged.
2017-01-28 12:01:23 +01:00
Tomek Mrugalski
44e812a308
[5122] Duplicate position printed in exceptions fixed
2017-01-27 21:39:45 +01:00
Tomek Mrugalski
523deee862
[5122] Contexts removed from SubnetConfigParser
2017-01-27 15:41:30 +01:00
Thomas Markwalder
4afbdcf89c
[master] Implement set-config command in kea-dhcp4/6
...
Merges in branch 'trac5046'
2017-01-04 15:46:12 -05:00
Thomas Markwalder
ebb863e372
[5046] Addressed review comments
...
Added memfile without persistence to set_config unit tests. This eliminates
the tests attempting to create the csv file.
Updated copyrights.
Fixed misspelling.
2017-01-03 08:23:44 -05:00
Thomas Markwalder
d4d8665494
[master] kea-dhcp4/6 support libreload command
...
Merge branch 'trac3238'
2016-12-22 14:35:46 -05:00
Thomas Markwalder
e5a6c2b4f8
[5046] CommandMgr dups the connection socket prior to executing command
...
src/lib/config/command_mgr.cc
CommandMgr::commandReader(int sockfd) - duplicates the connection
socket to use for repsonding in case the command closes the channel.
src/lib/testutils/io_utils.cc
fileExists() - now uses stat() function so one can use it on any
type of file, like a unix socket
updated unit tests accordingly
2016-12-22 13:38:00 -05:00
Francis Dupont
a28938503f
[5017] Some fixes (including a not yet detected error in classify CONFIG[0]) using parser
2016-12-17 01:05:26 +01:00
Thomas Markwalder
d9a6529871
[5046] Added set-config command handler test to dhcp4 unit tests
2016-12-16 11:02:04 -05:00
Andrei Pavel
9082500187
Corrected typos
2016-12-14 16:57:44 +02:00
Thomas Markwalder
6ea58aa99a
[5046] Minor cleanups
2016-12-09 16:15:25 -05:00
Thomas Markwalder
44d38ce10a
[5046] Implement set-config command in kea-dhcp4
...
Mirror the changes made in kea-dhcp6.
2016-12-09 16:08:24 -05:00
Thomas Markwalder
2659a1acbe
[3238] Enabled libreload command
...
doc/guide/ctrl-channel.xml
Added libreload to common command section
src/bin/dhcp4/ctrl_dhcp4_srv.cc
Registered and deregistered libreload command
src/bin/dhcp4/tests/ctrl_dhcp4_srv_unittest.cc
TEST_F(CtrlChannelDhcpv4SrvTest, libreload) - modified to
test using CommandMgr instance
src/bin/dhcp6/ctrl_dhcp6_srv.cc
Registered and deregistered libreload command
src/bin/dhcp6/tests/ctrl_dhcp6_srv_unittest.cc
TEST_F(CtrlChannelDhcpv6SrvTest, libreload) - modified to
test using CommandMgr instance
2016-11-22 14:09:22 -05:00
Tomek Mrugalski
e10309c77e
[4297] Unit-tests updated after recent API change.
2016-03-09 18:59:06 +01:00
Marcin Siodelski
3d18318f68
[4236] Updated copyright dates in all files.
2015-12-16 15:28:44 +01:00
Marcin Siodelski
fe9dd86d20
[4236] Replaced license text in all files containing it.
2015-12-16 13:37:29 +01:00
Marcin Siodelski
81467147e2
[master] Use LeaseMgrFactory::instance() rather than constructor.
...
This fixes issues reported by the coverity scans recently.
2015-11-02 12:30:58 +09:00
Francis Dupont
e03cf770b3
[3978] Addressed comments
2015-10-23 04:23:45 +02:00
Francis Dupont
2eb98727c7
[3978] Rearranged DHCPv4 unit tests
2015-10-17 11:22:24 +02:00
Francis Dupont
448015b06a
[3978] Cleaned up code
2015-10-17 11:19:55 +02:00
Francis Dupont
66e996f842
[3978] Added unit tests
2015-10-16 23:50:39 +02:00
Thomas Markwalder
ec3b132b58
[4067] PktFilterTestStub no longer used fd 0
...
src/lib/dhcp/tests/pkt_filter_test_stub.cc
- PktFilterTestStub::openSocket() - the filter's SocketInfo::sock_fd_ is
now set with value returend by opening "/dev/null" as read_only. This
provides a valid, consumed fd that the filter retains until its socket
is closed.
src/bin/dhcp4/tests/ctrl_dhcp4_srv_unittest.cc
CtrlChannelDhcp4SrvTest removed the fd/0 work-around as it is no
longer needed
~
2015-09-24 09:01:49 -04:00
Tomek Mrugalski
ba36626dbd
[3902] Workaround for file descriptor 0 implemented.
2015-08-21 13:12:24 +02:00
Tomek Mrugalski
fa120e0df8
[3902] Several small clean-ups in the CtrlDhcp4Srv tests
2015-07-14 20:30:38 +02:00
Tomek Mrugalski
afe30f1c38
[3902] Implemented several unit-tests in CtrlChannelDhcpv4SrvTest
2015-07-14 20:03:20 +02:00
Francis Dupont
ebad861feb
[master] Finished merge of trac3841 (use remove() vs unlink()) at the exception of the ChangeLog entry
2015-06-24 10:06:52 +02:00
Tomek Mrugalski
93a00b82e4
[master] Compilation fix, a mother of all fixes:
...
- linker failure in lfc (and tests), added libkea-cc
- linker failure in dhcp6 (and tests), added libkea-stats
- remove troublesome CtrlDhcpv4SrvTest.DISABLED_commandSocketBasic test
2015-06-19 18:40:35 +02:00
Thomas Markwalder
ec0d87d2d8
[master] Fixed distcheck failures/
...
Unit tests in lib/config/tests and bin/dhcp4/tests were attempting
to write to TEST_DATA_DIR rather than TEST_DATA_BUILDDIR, make distcheck
to fail.
2015-06-19 11:04:12 -04:00
Tomek Mrugalski
c0f65ef802
[3880] Changes after review:
...
- Extra logging messages for socket failures
- strerror() is now reported when encountering low-level errors
- fcntl, accept return codes are now verified
- minor tweaks in CtrlDhcpv4SrvTest.command* unit-tests.
2015-06-16 16:37:34 +02:00
Tomek Mrugalski
128d533db3
[3880] statistic-* commands are now registered in Dhcpv4Srv
2015-06-10 13:43:13 +02:00
Tomek Mrugalski
43a7ef6870
[3880] Extra sanity check added.
2015-06-10 13:43:12 +02:00
Tomek Mrugalski
fd66d0643b
[3880] Unit-test for UNIX control socket written.
2015-06-10 13:43:12 +02:00
Tomek Mrugalski
7ebca7c03c
[3880] Support for control-socket implemented in DHCPv4.
2015-06-10 13:43:12 +02:00
Tomek Mrugalski
89c0130ed4
[3796] command_interpreter.cc|h|tests moved: src/lib/config => src/lib/cc
2015-06-10 10:48:24 +02:00
Tomek Mrugalski
aa10ecc86f
[3796] ccsession.cc|h renamed to command_interpreter.cc|h
2015-05-20 16:14:41 +02:00
Francis Dupont
8c6fbe3a53
[3841] replaced unlink by remove
2015-05-12 22:51:43 +02:00
Tomek Mrugalski
d8ebb8039b
[3399] Bundy controller implemented.
2014-05-21 16:16:18 +02:00
Stephen Morris
a6cd22451b
[2981] Final modifications before review
2013-07-25 16:11:34 +01:00
Stephen Morris
aac023f8e1
[2981] Added libreload functionality to DHCPv6 server
2013-07-25 13:39:58 +01:00
Stephen Morris
c7b293f631
[2981] Added "libreload" command handling
2013-07-25 13:20:02 +01:00
Stephen Morris
af37bfe0c4
[2467] Removed "raw" pointers from b10-dhcp4/6 tests
2013-04-11 13:30:32 +01:00
Stephen Morris
3ba0299ad2
[2475] Put #include directives in correct order
...
Also fix some issues from the review.
2012-11-16 14:15:45 +00:00
Tomek Mrugalski
f788c425a5
[1708] Minor fixes in dhcp4
...
- This is a small follow-up to 1651.
2012-06-22 14:05:39 +02:00
Tomek Mrugalski
327e505ad6
[1651] Implemented command tests for DHCPv4
2012-06-08 20:39:01 +02:00
Tomek Mrugalski
249c741dfe
[1651] New skeleton tests for ControlledDhcpv4Srv class added.
2012-06-08 15:28:18 +02:00
Tomek Mrugalski
016c9ba563
[1651] Control interface in DHCPv4 refactored into separate class
...
- See ControlledDhcpv4Srv class for msgq support.
2012-06-08 15:27:45 +02:00