]>
git.ipfire.org Git - thirdparty/kea.git/log
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
Mukund Sivaraman [Tue, 6 Nov 2012 03:29:42 +0000 (08:59 +0530)]
[2353] Indent code
JINMEI Tatuya [Tue, 6 Nov 2012 03:27:25 +0000 (19:27 -0800)]
[2372] further simplification: don't need to save/restore options.
paren_count has all information, and we can handle it completely locally.
JINMEI Tatuya [Tue, 6 Nov 2012 03:17:25 +0000 (19:17 -0800)]
[2372] simplification: we actually don't need END_OF_LINE option.
it can be completely local in Start::handle().
JINMEI Tatuya [Tue, 6 Nov 2012 03:08:13 +0000 (19:08 -0800)]
[2372] handle crlf class
JINMEI Tatuya [Tue, 6 Nov 2012 00:06:56 +0000 (16:06 -0800)]
[2372] make sure last_was_eol becomes false in EOF even with an error
JINMEI Tatuya [Mon, 5 Nov 2012 23:59:10 +0000 (15:59 -0800)]
[2372] handle the case of comment after '('
JINMEI Tatuya [Mon, 5 Nov 2012 23:54:47 +0000 (15:54 -0800)]
[2372] cleanup: we now don't need to pass options to state::handle()
JINMEI Tatuya [Mon, 5 Nov 2012 23:48:37 +0000 (15:48 -0800)]
[2372] localize disabling options in (); we can do this without mutable state.
JINMEI Tatuya [Mon, 5 Nov 2012 22:49:20 +0000 (14:49 -0800)]
[master] changelog for #2356
JINMEI Tatuya [Mon, 5 Nov 2012 22:41:04 +0000 (14:41 -0800)]
[2372] handle comments in the start state
JINMEI Tatuya [Mon, 5 Nov 2012 22:37:29 +0000 (14:37 -0800)]
[master] Merge remote-tracking branch 'origin/trac2356'
Jeremy C. Reed [Mon, 5 Nov 2012 20:40:35 +0000 (14:40 -0600)]
[trac2305] change enable to disable for !verbose off
Jeremy C. Reed [Mon, 5 Nov 2012 20:39:27 +0000 (14:39 -0600)]
[trac2305] remove repeated word
Stephen Morris [Mon, 5 Nov 2012 19:29:39 +0000 (19:29 +0000)]
[2342] Have unit tests create database schema on the fly
The unit tests now create the schema before each test and destroy
it afterwards. This will be more flexible than needing to update
the schema on test machines each time. The drawback is the need
to keep the database creation script in step with the hardcoded
set of SQL statements in the test program.
Stephen Morris [Mon, 5 Nov 2012 18:41:18 +0000 (18:41 +0000)]
[2414] Minor corrections to comments and spacing between operators
JINMEI Tatuya [Mon, 5 Nov 2012 17:32:42 +0000 (09:32 -0800)]
[2371] added notes about the two mode of error handling: retval and exception.
JINMEI Tatuya [Mon, 5 Nov 2012 16:58:31 +0000 (08:58 -0800)]
[2371] cleanup: removed now-unnecessary include
Michal 'vorner' Vaner [Mon, 5 Nov 2012 15:30:04 +0000 (16:30 +0100)]
[2384] Provide a note about used data type
Michal 'vorner' Vaner [Mon, 5 Nov 2012 15:27:39 +0000 (16:27 +0100)]
[2384] Adjust other tests to match
Obviously, the master loader now can accept the TTL units. This is good
news, but we need to adjust the test that checked it throws.
Michal 'vorner' Vaner [Mon, 5 Nov 2012 15:26:20 +0000 (16:26 +0100)]
[2384] Implement the units in TTLs
Michal 'vorner' Vaner [Mon, 5 Nov 2012 14:39:21 +0000 (15:39 +0100)]
[2384] Tests for units in TTL text
They fail, since this is not implemented yet.
Marcin Siodelski [Mon, 5 Nov 2012 14:09:39 +0000 (15:09 +0100)]
[2417] Initialize standard option definitions and keep them in storage.
Marcin Siodelski [Mon, 5 Nov 2012 13:51:02 +0000 (14:51 +0100)]
[2417] Added missing header and corrected typo.
This fixes build issues discovered during code review.
Jelte Jansen [Mon, 5 Nov 2012 13:45:41 +0000 (14:45 +0100)]
[2305] initial addition of bindctl section
Marcin Siodelski [Mon, 5 Nov 2012 08:43:20 +0000 (09:43 +0100)]
[2417] Append configured DHCPv6 options to server's response.
Mukund Sivaraman [Mon, 5 Nov 2012 07:13:00 +0000 (12:43 +0530)]
[2353] Test BoB.reap_children
Stephen Morris [Sun, 4 Nov 2012 20:20:21 +0000 (20:20 +0000)]
[2342] Move all SQL statement definitions to head of file
It is easier to add a new statement to the head of the file rather
than searching through the file for the method in which the prepared
statements are created.
Stephen Morris [Sun, 4 Nov 2012 19:57:05 +0000 (19:57 +0000)]
[2342] Add getLease6 selecting by DUID, IAID and Subnet ID
Mukund Sivaraman [Sun, 4 Nov 2012 17:14:08 +0000 (22:44 +0530)]
[2369] Add InputSource::mark() as a combination of saveLine() and compact()
Mukund Sivaraman [Sun, 4 Nov 2012 17:00:16 +0000 (22:30 +0530)]
[2369] Constify variables in various places
Mukund Sivaraman [Sun, 4 Nov 2012 16:19:56 +0000 (21:49 +0530)]
[2369] Read data from the test file to check the InputSource
Mukund Sivaraman [Sun, 4 Nov 2012 16:10:33 +0000 (21:40 +0530)]
[2369] Use the more specialized std::ifstream instead of std::fstream
Mukund Sivaraman [Sun, 4 Nov 2012 15:58:54 +0000 (21:28 +0530)]
[2369] Rename non-existent filename in test
Stephen Morris [Sat, 3 Nov 2012 18:26:57 +0000 (18:26 +0000)]
[2342] Add selection of Lease6 by DUID and IAID
JINMEI Tatuya [Sat, 3 Nov 2012 00:03:11 +0000 (17:03 -0700)]
[2372] handle non-closed parenthesis error.
JINMEI Tatuya [Fri, 2 Nov 2012 23:44:56 +0000 (16:44 -0700)]
[2372] handle unbalanced parentheses.
JINMEI Tatuya [Fri, 2 Nov 2012 23:25:57 +0000 (16:25 -0700)]
[2372] covered a minor case of initial_ws after skipping a newline
JINMEI Tatuya [Fri, 2 Nov 2012 23:18:43 +0000 (16:18 -0700)]
[2372] internal refactoring: pass original options at the time of start
this will make the overall interface simpler.
JINMEI Tatuya [Fri, 2 Nov 2012 23:03:36 +0000 (16:03 -0700)]
[2372] more parentheses support
JINMEI Tatuya [Fri, 2 Nov 2012 22:29:15 +0000 (15:29 -0700)]
[2372] use the END_OF_STREAM constant instead of hardocded condition of '< 0'
JINMEI Tatuya [Fri, 2 Nov 2012 22:23:52 +0000 (15:23 -0700)]
[2372] more conflict resolution that git didn't detect.
JINMEI Tatuya [Fri, 2 Nov 2012 22:23:32 +0000 (15:23 -0700)]
[2372] more conflict resolution
JINMEI Tatuya [Fri, 2 Nov 2012 22:21:07 +0000 (15:21 -0700)]
[2371] more comment wording adjustments
JINMEI Tatuya [Fri, 2 Nov 2012 21:56:02 +0000 (14:56 -0700)]
[2372] initial parentheses support
JINMEI Tatuya [Fri, 2 Nov 2012 03:09:09 +0000 (20:09 -0700)]
[2372] handled spaces.
handle() signature was extended so it can refer to and update lexer
options.
JINMEI Tatuya [Thu, 1 Nov 2012 04:13:20 +0000 (21:13 -0700)]
[2372] lexer state classes, some initial defs and tests
Fixing merge conflicts:
src/lib/dns/master_lexer.cc
JINMEI Tatuya [Fri, 2 Nov 2012 22:04:33 +0000 (15:04 -0700)]
[2372] Merge branch 'trac2371' into trac2372
JINMEI Tatuya [Fri, 2 Nov 2012 21:43:25 +0000 (14:43 -0700)]
[2371] catch an error in opening a source file and gives feedback to caller.
JINMEI Tatuya [Fri, 2 Nov 2012 21:29:10 +0000 (14:29 -0700)]
[2371] adjusted test name/comment to match the method name change of open/close
JINMEI Tatuya [Fri, 2 Nov 2012 21:06:52 +0000 (14:06 -0700)]
[2371] renamed open/close() {push,pop}Source() as suggested in review.
JINMEI Tatuya [Fri, 2 Nov 2012 20:41:39 +0000 (13:41 -0700)]
[2371] define END_OF_STREAM within InputSource to avoid duplicate def.
unfortunately this requires another usual workaround in the test, so
it was also made.