]>
git.ipfire.org Git - thirdparty/kea.git/log
Jelte Jansen [Thu, 8 Nov 2012 16:48:56 +0000 (17:48 +0100)]
[2464] fix call to last_had_signature()
Jelte Jansen [Thu, 8 Nov 2012 16:25:48 +0000 (17:25 +0100)]
[2464] Add lettuce test for TSIG
Should fail at this time
Mukund Sivaraman [Fri, 9 Nov 2012 08:00:51 +0000 (13:30 +0530)]
[2353] Test verbose case of BoB.start_simple()
Mukund Sivaraman [Fri, 9 Nov 2012 07:56:39 +0000 (13:26 +0530)]
[2353] runnable doesn't have to be set here
Mukund Sivaraman [Fri, 9 Nov 2012 07:56:00 +0000 (13:26 +0530)]
[2353] Directly use bob.components instead of bob.get_processes()
Mukund Sivaraman [Fri, 9 Nov 2012 06:16:34 +0000 (11:46 +0530)]
[2353] Just check the output of get_processes() is empty (as a boolean)
Mukund Sivaraman [Fri, 9 Nov 2012 06:14:19 +0000 (11:44 +0530)]
[2353] Check that kill_started_components() forcefully kills components
Mukund Sivaraman [Fri, 9 Nov 2012 06:06:16 +0000 (11:36 +0530)]
[2353] runnable doesn't have to be set here
Mukund Sivaraman [Fri, 9 Nov 2012 06:02:55 +0000 (11:32 +0530)]
[2353] runnable doesn't have to be set here
Mukund Sivaraman [Fri, 9 Nov 2012 06:01:58 +0000 (11:31 +0530)]
[2353] Ensure that get_processes() returns a sorted list
Mukund Sivaraman [Fri, 9 Nov 2012 05:42:01 +0000 (11:12 +0530)]
[2353] Check remove_socket_srv() with different states of BoB._srv_socket
Mukund Sivaraman [Fri, 9 Nov 2012 05:39:04 +0000 (11:09 +0530)]
[2353] Ensure that the server listens on the socket
Mukund Sivaraman [Fri, 9 Nov 2012 05:15:21 +0000 (10:45 +0530)]
[2353] Check that getsockname() on the socket returns what we expect
Mukund Sivaraman [Fri, 9 Nov 2012 05:11:38 +0000 (10:41 +0530)]
[2353] Test that the socket and tmpdir are deleted
JINMEI Tatuya [Thu, 8 Nov 2012 22:36:04 +0000 (14:36 -0800)]
[master] Merge branch 'trac2447'
Stephen Morris [Thu, 8 Nov 2012 20:43:20 +0000 (20:43 +0000)]
[2414] Merge branch 'master' into trac2414
Stephen Morris [Thu, 8 Nov 2012 20:30:24 +0000 (20:30 +0000)]
[2414] Remove "using namespace boost"
For some reason, on Solaris this causes types "uintXX_t" to become
undefined. The "using" statement was removed and an explicit
namespace prepended to declarations of shared_ptr and dynamic_pointer_cast.
Stephen Morris [Thu, 8 Nov 2012 20:09:10 +0000 (20:09 +0000)]
[2414] Get rid of memory leak
The allocation engine is now pointed to by a shared pointer. Previously
it was pointed toi by a raw pointer and not deleted in the destructor.
Also, use an automatic variable to hold the DHCP6 server in the
unit tests.
Michal 'vorner' Vaner [Thu, 8 Nov 2012 17:31:02 +0000 (18:31 +0100)]
[2384] Remove obsolete comment
Michal 'vorner' Vaner [Thu, 8 Nov 2012 17:27:00 +0000 (18:27 +0100)]
[2384] Test leading zeroes in TTL
Michal 'vorner' Vaner [Thu, 8 Nov 2012 17:24:14 +0000 (18:24 +0100)]
[2384] Simplify range check
It doesn't need to check the number of digits. It seems the tests pass
now without problems as well. Also, it might be problematic with large
number of leading zeroes.
Also, simplify comment with description.
JINMEI Tatuya [Thu, 8 Nov 2012 16:51:24 +0000 (08:51 -0800)]
[2447] corrected a log name
Marcin Siodelski [Thu, 8 Nov 2012 16:26:10 +0000 (17:26 +0100)]
[2463] Minor: typo fixed.
Marcin Siodelski [Thu, 8 Nov 2012 16:23:49 +0000 (17:23 +0100)]
[2463] Minor changes in comments.
Jeremy C. Reed [Thu, 8 Nov 2012 14:52:10 +0000 (08:52 -0600)]
[master] split up test
From http://bind10.isc.org/ticket/2468#comment:2 to help troubleshoot later.
Okayed via jabber.
Stephen Morris [Thu, 8 Nov 2012 13:14:19 +0000 (13:14 +0000)]
[2342] More changes as a result of review
a) Corrected some method headers
b) Added additional diagnostic output should the test fail to
open the database.
Marcin Siodelski [Thu, 8 Nov 2012 13:09:23 +0000 (08:09 -0500)]
[2463] Added new constructor to OptionDescriptor structure.
Marcin Siodelski [Thu, 8 Nov 2012 12:53:41 +0000 (07:53 -0500)]
[2463] Reset configuration after each unit test.
Stephen Morris [Thu, 8 Nov 2012 12:50:34 +0000 (12:50 +0000)]
[2342] Encapsulate mysql_stmt_free_result in a temporary object
... to ensure that it is always called when a method terminates.
Stephen Morris [Thu, 8 Nov 2012 12:14:10 +0000 (12:14 +0000)]
[2342] Documentation changes as result of review
Jelte Jansen [Thu, 8 Nov 2012 11:07:18 +0000 (12:07 +0100)]
[2447] fix small typo in docstring
JINMEI Tatuya [Thu, 8 Nov 2012 08:28:23 +0000 (00:28 -0800)]
[2447] dump a log message if connecting to cc-channel fails.
and suggest checking output from msgq using -v.
JINMEI Tatuya [Thu, 8 Nov 2012 07:51:23 +0000 (23:51 -0800)]
[2447] improve intitial failure handling for msgq, gracefully and with logs
JINMEI Tatuya [Thu, 8 Nov 2012 07:40:37 +0000 (23:40 -0800)]
[2447] show the reason of the error when opening IPC lock file fails.
JINMEI Tatuya [Thu, 8 Nov 2012 07:37:47 +0000 (23:37 -0800)]
[2447] use helper __kill_children method to kill all initial processes
previously it could result in exception (by the attempt of killing sockcreator
as a chuser'ed process) during initial setup failure, leading to unclean
shutdown. the revised code prevents it from happening, and also makes the
code concise by unifying the common logic.
JINMEI Tatuya [Thu, 8 Nov 2012 07:25:32 +0000 (23:25 -0800)]
[2447] catch failure on initial log, which is most likely a permission issue.
so, it now just prints some hints to stderr and exits.
JINMEI Tatuya [Thu, 8 Nov 2012 06:35:25 +0000 (22:35 -0800)]
[2447] improved detailed description of CONFIG_LOAD_FAIL ref'ing sock failure.
it even suggests restarting as a root.
JINMEI Tatuya [Thu, 8 Nov 2012 06:31:56 +0000 (22:31 -0800)]
[2447] improved exception message on sockcreator failure to help admin.
it now includes textual representation of errno, and, if it's EACCES
("permission denied") the messsage suggesting restarting as a super user.
JINMEI Tatuya [Thu, 8 Nov 2012 04:13:08 +0000 (04:13 +0000)]
[master] check -lnsl, -lsocket for some network API libs.
this is necessary for Solaris. okayed on jabber.
Tomek Mrugalski [Wed, 7 Nov 2012 22:05:50 +0000 (17:05 -0500)]
[2414] Compilation fix for Solaris 11
Tomek Mrugalski [Wed, 7 Nov 2012 21:40:31 +0000 (16:40 -0500)]
[2414] Compilation fix for FreeBSD
JINMEI Tatuya [Wed, 7 Nov 2012 21:24:59 +0000 (13:24 -0800)]
[master] Merge branch 'trac2449'
JINMEI Tatuya [Wed, 7 Nov 2012 21:17:34 +0000 (13:17 -0800)]
[master] Merge branch 'trac2371'
Tomek Mrugalski [Wed, 7 Nov 2012 20:19:53 +0000 (15:19 -0500)]
[2414] Removed hardcoded DNS_SERVERS option
DNS_SERVERS option is now sent only if requested by clients
(as it should be)
Tomek Mrugalski [Wed, 7 Nov 2012 20:18:06 +0000 (15:18 -0500)]
[2414] solicitBasic1 test fixed and renamed to advertiseOptions
Mukund Sivaraman [Wed, 7 Nov 2012 19:47:42 +0000 (01:17 +0530)]
[2421] Handle exceptions when loading a zone
Mukund Sivaraman [Wed, 7 Nov 2012 19:42:01 +0000 (01:12 +0530)]
[2421] Add a testcase for empty zone too (which should throw EmptyZone)
Mukund Sivaraman [Wed, 7 Nov 2012 19:41:27 +0000 (01:11 +0530)]
[2421] Change test data to throw ZoneDataUpdater::AddError
... instead of MasterLoadError.
Mukund Sivaraman [Wed, 7 Nov 2012 18:44:35 +0000 (00:14 +0530)]
[2421] Add lettuce test with broken zone
JINMEI Tatuya [Wed, 7 Nov 2012 18:16:16 +0000 (10:16 -0800)]
[2384] editorial in exception message: add a space for readability
Marcin Siodelski [Wed, 7 Nov 2012 17:26:21 +0000 (18:26 +0100)]
[2463] Preserve global configuration values.
Rather tham clear global configuration values we replace them (override)
in subsequent configuration commits. This guarantees that global
values are always available when subnet configuration is performed.
Stephen Morris [Wed, 7 Nov 2012 17:46:02 +0000 (17:46 +0000)]
[2414] Merge branch 'master' into trac2414
Conflicts:
src/bin/dhcp6/dhcp6_messages.mes
src/bin/dhcp6/dhcp6_srv.cc
src/bin/dhcp6/dhcp6_srv.h
src/bin/dhcp6/tests/dhcp6_srv_unittest.cc
src/lib/dhcp/addr_utilities.cc
src/lib/dhcp/tests/cfgmgr_unittest.cc
Files automerged successfully:
src/lib/dhcp/alloc_engine.cc
src/lib/dhcp/subnet.h
src/lib/dhcp/tests/alloc_engine_unittest.cc
JINMEI Tatuya [Wed, 7 Nov 2012 16:19:53 +0000 (08:19 -0800)]
[master] Merge branch 'master' of ssh://git.bind10.isc.org/var/bind10/git/bind10
commit.
Jelte Jansen [Wed, 7 Nov 2012 10:47:32 +0000 (11:47 +0100)]
[2305] address review comments
updated documentation of bindctl chapter
fixed a stray space in module help output in bindctl
Michal 'vorner' Vaner [Wed, 7 Nov 2012 09:45:32 +0000 (10:45 +0100)]
[2384] Document the use of units in TTL
Michal 'vorner' Vaner [Wed, 7 Nov 2012 09:30:59 +0000 (10:30 +0100)]
[2384] Test border cases
Michal 'vorner' Vaner [Wed, 7 Nov 2012 09:21:06 +0000 (10:21 +0100)]
[2384] Rearrange tests
There were some non-fromText related tests in the fromText test case.
Moving to separate test case.
Michal 'vorner' Vaner [Wed, 7 Nov 2012 09:17:31 +0000 (10:17 +0100)]
[2384] Better TTL range checking
Also check partial values and wrap-arouds for numbers.
Marcin Siodelski [Wed, 7 Nov 2012 09:04:34 +0000 (10:04 +0100)]
[master] Merge branch 'trac2417'
Michal 'vorner' Vaner [Wed, 7 Nov 2012 09:01:56 +0000 (10:01 +0100)]
[2384] Test case of reused unit
Michal 'vorner' Vaner [Wed, 7 Nov 2012 08:59:56 +0000 (09:59 +0100)]
[2384] Remove unnecessary cast
Michal 'vorner' Vaner [Wed, 7 Nov 2012 08:54:30 +0000 (09:54 +0100)]
[2384] Show the broken TTL in exception messages
Michal 'vorner' Vaner [Wed, 7 Nov 2012 08:51:12 +0000 (09:51 +0100)]
[2384] Disallow empty TTLs and units-only TTLs
These are questionable and bind9 does not support them. Even the units
are bind extension of some kind probably.
Mukund Sivaraman [Wed, 7 Nov 2012 07:35:21 +0000 (13:05 +0530)]
Merge branch 'master' into trac2369
Mukund Sivaraman [Wed, 7 Nov 2012 07:01:30 +0000 (12:31 +0530)]
[2369] Use prefix syntax for increment/decrement operators
JINMEI Tatuya [Wed, 7 Nov 2012 05:39:18 +0000 (21:39 -0800)]
[2459] do not throw when getZoneWriter result in "not cached".
instead, explicitly log the event at the debug level. behavior-wise there's
no difference, but the corresponding log message can be misleading.
JINMEI Tatuya [Wed, 7 Nov 2012 05:20:15 +0000 (21:20 -0800)]
[2459] protect the call to getCachedZoneWriter() by mutex. it can cause race.
Mukund Sivaraman [Wed, 7 Nov 2012 05:14:58 +0000 (10:44 +0530)]
[2353] Test bind10_src.fatal_signal()
Mukund Sivaraman [Wed, 7 Nov 2012 05:09:36 +0000 (10:39 +0530)]
[2353] Test bind10_src.get_signame()
Mukund Sivaraman [Wed, 7 Nov 2012 05:01:21 +0000 (10:31 +0530)]
[2353] Test BoB.init_socket_srv() and BoB.remove_socket_srv()
Mukund Sivaraman [Wed, 7 Nov 2012 04:31:05 +0000 (10:01 +0530)]
[2353] Test more component startup methods
Naoki Kambe [Wed, 7 Nov 2012 02:15:25 +0000 (11:15 +0900)]
[2298_7] add checking of the two same lists
check whether the list of 'identifier' attributes in root is same
as the list of item names in DUMMY_DATA
JINMEI Tatuya [Tue, 6 Nov 2012 23:15:17 +0000 (15:15 -0800)]
[2449] print a warning message if readline module isn't imported.
do this only when stdin is a terminal; otherwise some lettuce tests will fail,
and it would possibly break some other automatic processing scripts.
Marcin Siodelski [Tue, 6 Nov 2012 17:08:00 +0000 (18:08 +0100)]
[2417] Minor: removed <b> tag in the documentation.
JINMEI Tatuya [Tue, 6 Nov 2012 16:56:50 +0000 (08:56 -0800)]
[2371] move the definition of END_OF_STREAM from test to the main impl .cc.
based on review discussions. it makes sense as we cannot assume its address
is never needed in non test applications.
Stephen Morris [Tue, 6 Nov 2012 14:11:17 +0000 (14:11 +0000)]
[2342] Extended documentation to discuss running of unit tests
Stephen Morris [Tue, 6 Nov 2012 13:44:17 +0000 (13:44 +0000)]
[2342] Add programmer documentation
Also add missing library into the makefile - this showed its
absence on OS/X.
Jelte Jansen [Tue, 6 Nov 2012 13:31:56 +0000 (14:31 +0100)]
[2305] add section about configuration data types
Stephen Morris [Tue, 6 Nov 2012 12:58:10 +0000 (12:58 +0000)]
[2342] Abstracted common MySQL binding code into a separate method.
Naoki Kambe [Tue, 6 Nov 2012 12:22:33 +0000 (21:22 +0900)]
[2298_7] add comments about checking each 'item' element under the root element
Naoki Kambe [Tue, 6 Nov 2012 12:12:45 +0000 (21:12 +0900)]
[2298_7] remove find() so that each element 'item' under the root element is checked
(actually this test wasn't run.)
Naoki Kambe [Tue, 6 Nov 2012 12:01:31 +0000 (21:01 +0900)]
[2298_7] use with-statement instead of try-except-finally statement
Naoki Kambe [Tue, 6 Nov 2012 12:37:43 +0000 (21:37 +0900)]
[2298_7] add an example of the path in docstring of xml_handler()
Naoki Kambe [Tue, 6 Nov 2012 12:40:11 +0000 (21:40 +0900)]
[2298_7] add comments about preparation of the requested path,
regarding the condition that it is started with XM_URL_PATH + '/'
Marcin Siodelski [Tue, 6 Nov 2012 12:12:32 +0000 (13:12 +0100)]
[2417] Added changes suggested in the code review.
Naoki Kambe [Tue, 6 Nov 2012 11:40:43 +0000 (20:40 +0900)]
[2298_7] add description about evaluating the requested path in each if-condition
Mukund Sivaraman [Tue, 6 Nov 2012 09:29:47 +0000 (14:59 +0530)]
[2353] Add test for BoB.start_simple()
Mukund Sivaraman [Tue, 6 Nov 2012 08:35:01 +0000 (14:05 +0530)]
[2353] Add test for BoB.register_process()
Mukund Sivaraman [Tue, 6 Nov 2012 08:23:21 +0000 (13:53 +0530)]
[2353] Add test for BoB.start_process()
Mukund Sivaraman [Tue, 6 Nov 2012 07:36:36 +0000 (13:06 +0530)]
[2353] Add test for BoB.kill_started_components()
Mukund Sivaraman [Tue, 6 Nov 2012 07:31:23 +0000 (13:01 +0530)]
[2353] Add test for BoB.get_processes()
JINMEI Tatuya [Tue, 6 Nov 2012 07:13:10 +0000 (23:13 -0800)]
[2384] style nits: typo, folded short lines, unnecessary ;, paren for sizeof
JINMEI Tatuya [Tue, 6 Nov 2012 05:12:37 +0000 (21:12 -0800)]
[2372] overall documentation updates
Mukund Sivaraman [Tue, 6 Nov 2012 04:33:15 +0000 (10:03 +0530)]
[2369] Make InputSource non-copyable
Mukund Sivaraman [Tue, 6 Nov 2012 04:30:04 +0000 (10:00 +0530)]
[2369] Add TODOs to remove saveLine() and compact() later
Mukund Sivaraman [Tue, 6 Nov 2012 04:27:39 +0000 (09:57 +0530)]
[2369] Describe why the operation failed in OpenError exception
Mukund Sivaraman [Tue, 6 Nov 2012 04:16:34 +0000 (09:46 +0530)]
[2369] Make constructors explicit
JINMEI Tatuya [Tue, 6 Nov 2012 04:05:49 +0000 (20:05 -0800)]
[2372] some more cleanup for State::start by removing explicit continue.
maybe a matter of taste, but it seems to make it look more concise and
readable.
JINMEI Tatuya [Tue, 6 Nov 2012 04:02:54 +0000 (20:02 -0800)]
[2372] even further simplification: deprecate start state
I recognized we only need to pass options to the initial state. So it makes
more sense to handle this case separately. this will simplify the interface
for the other classes, and it will make the entry point for the lexer clearer.
JINMEI Tatuya [Tue, 6 Nov 2012 03:48:47 +0000 (19:48 -0800)]
[2372] even further simplification of option handling