]>
git.ipfire.org Git - thirdparty/kea.git/log
Mukund Sivaraman [Tue, 3 Sep 2013 04:34:36 +0000 (10:04 +0530)]
[2750] Add comprehensive test for DomainTree validity with insert() and remove()
Mukund Sivaraman [Tue, 3 Sep 2013 04:33:33 +0000 (10:03 +0530)]
[2750] Add a comment describing the test
Mukund Sivaraman [Tue, 3 Sep 2013 04:33:15 +0000 (10:03 +0530)]
[2750] Move the RNG to a class variable (so the same RNG can be reused)
Otherwise, reseeding with time(NULL) will return the same sequence in
other tests if they start within the same second.
Mukund Sivaraman [Tue, 3 Sep 2013 03:07:46 +0000 (08:37 +0530)]
[2750] Add methods to check RB tree properties (and use them in tests)
Mukund Sivaraman [Tue, 3 Sep 2013 02:29:02 +0000 (07:59 +0530)]
[2750] Replace height check with getHeight() method
Mukund Sivaraman [Mon, 2 Sep 2013 17:24:15 +0000 (22:54 +0530)]
[2750] Use more optimal form of color testing where possible
Tomek Mrugalski [Mon, 2 Sep 2013 15:35:33 +0000 (17:35 +0200)]
[3145] Option6 IAPREFIX + unit-tests implemented
Marcin Siodelski [Mon, 2 Sep 2013 15:21:11 +0000 (17:21 +0200)]
[3035] Basic implementation of the function which computes DHCID.
Marcin Siodelski [Mon, 2 Sep 2013 15:20:34 +0000 (17:20 +0200)]
[3035] Added functions to construct DHCID object from raw buffer.
Marcin Siodelski [Mon, 2 Sep 2013 15:19:53 +0000 (17:19 +0200)]
[3035] Implemented DHCPv4 srv function to process an FQDN option.
Mukund Sivaraman [Mon, 2 Sep 2013 14:07:35 +0000 (19:37 +0530)]
[2750] Finish documenting the red-black tree remove rebalance operation
Mukund Sivaraman [Mon, 2 Sep 2013 13:49:25 +0000 (19:19 +0530)]
[2750] Remove redundant part of condition
If ss2 is black, it implies that ss1 is red. This commit updates
the shortcut && operator, but the result is the same.
Mukund Sivaraman [Mon, 2 Sep 2013 13:46:08 +0000 (19:16 +0530)]
[2750] Add/update RB tree delete rebalancing comments
Mukund Sivaraman [Mon, 2 Sep 2013 13:45:37 +0000 (19:15 +0530)]
[2750] Rewrite code to use a similar block as previous case
Mukund Sivaraman [Mon, 2 Sep 2013 13:45:02 +0000 (19:15 +0530)]
[2750] Fix tree rotation direction
Mukund Sivaraman [Mon, 2 Sep 2013 13:44:30 +0000 (19:14 +0530)]
[2750] Remove redundant NULL test
Mukund Sivaraman [Mon, 2 Sep 2013 13:43:04 +0000 (19:13 +0530)]
[2750] Reduce code by using getColor()
Mukund Sivaraman [Mon, 2 Sep 2013 10:35:19 +0000 (16:05 +0530)]
[2750] Remove redundant condition to check if sibling is black
Add appropriate pre-condition assertions.
Mukund Sivaraman [Mon, 2 Sep 2013 10:26:52 +0000 (15:56 +0530)]
[2750] Update comment
Mukund Sivaraman [Mon, 2 Sep 2013 10:25:03 +0000 (15:55 +0530)]
[2750] Fix overall loop condition in removeRebalance()
It needs to check at the upper node if child is NULL!
Mukund Sivaraman [Mon, 2 Sep 2013 09:55:09 +0000 (15:25 +0530)]
[2750] Add graphs for case 3
Michal 'vorner' Vaner [Mon, 2 Sep 2013 09:37:13 +0000 (11:37 +0200)]
[2751] Remove lying comment
It was simply not true. Removing, as it would state the obvious only
after fixing.
Michal 'vorner' Vaner [Mon, 2 Sep 2013 09:34:34 +0000 (11:34 +0200)]
[2751] Implement the subtract
By copying all the Rdata that is not present in the subtracted sets.
Michal 'vorner' Vaner [Mon, 2 Sep 2013 09:33:52 +0000 (11:33 +0200)]
[2751] Fix tests
Fix several copy-paste and index errors. Add some more print with error.
Mukund Sivaraman [Mon, 2 Sep 2013 09:32:13 +0000 (15:02 +0530)]
[2750] Make various updates (see full log)
* Use safer isRed() and isBlack() static functions which test for
NULL pointers (as we use NULL black leaves)
* Add code comments explaining various RB rebalance cases
* Simplify code by rearranging it
* Optimize code by re-assigning sibling only where necessary
* Add some assertions
Marcin Siodelski [Mon, 2 Sep 2013 08:14:03 +0000 (10:14 +0200)]
[master] Second merge of branch 'trac3084'
By mistake, the previous merge was missing the changes which addressed
review comments.
Marcin Siodelski [Mon, 2 Sep 2013 06:02:29 +0000 (08:02 +0200)]
[master] Added ChangeLog entry for #3084.
Marcin Siodelski [Mon, 2 Sep 2013 05:58:02 +0000 (07:58 +0200)]
[master] Merge branch 'trac3084'
Mukund Sivaraman [Mon, 2 Sep 2013 05:01:59 +0000 (10:31 +0530)]
[2750] Update some checks
Mukund Sivaraman [Mon, 2 Sep 2013 04:39:56 +0000 (10:09 +0530)]
[2750] Recompute sibling after rotations
Mukund Sivaraman [Mon, 2 Sep 2013 04:24:29 +0000 (09:54 +0530)]
[2750] Remove redundant argument
Mukund Sivaraman [Mon, 2 Sep 2013 03:34:22 +0000 (09:04 +0530)]
[2750] Simplify condition
It has the same effect, but is simpler to read.
Mukund Sivaraman [Mon, 2 Sep 2013 03:05:22 +0000 (08:35 +0530)]
[2750] Add comments for rebalancing code in remove()
Mukund Sivaraman [Mon, 2 Sep 2013 02:45:27 +0000 (08:15 +0530)]
[2750] Add code comments
Marcin Siodelski [Fri, 30 Aug 2013 17:26:55 +0000 (19:26 +0200)]
[3113] Fix hooks unit test failures when --enable-static-link is used.
Jeremy C. Reed [Fri, 30 Aug 2013 15:30:52 +0000 (10:30 -0500)]
[master] mention more local asio modifications
Marcin Siodelski [Fri, 30 Aug 2013 14:24:58 +0000 (16:24 +0200)]
[3084] Link libb10-dhcp-ddns with cc to prevent linking issue on Ubuntu 12.
Marcin Siodelski [Fri, 30 Aug 2013 14:18:40 +0000 (16:18 +0200)]
[3084] Addressed review comments.
Naoki Kambe [Wed, 19 Sep 2012 08:46:06 +0000 (17:46 +0900)]
[2300] document in the man page about statistics socket counters introduced in Xfrin
open
openfail
close
connfail
conn
senderr
recverr
Naoki Kambe [Fri, 28 Sep 2012 05:35:39 +0000 (14:35 +0900)]
[2300] check statistics socket counters for Xfrin in lettuce test
Naoki Kambe [Wed, 19 Sep 2012 08:46:06 +0000 (17:46 +0900)]
[2274] document in the man page about statistics counters introduced in Xfrin
ixfr_running
axfr_running
soa_in_progress
Naoki Kambe [Fri, 30 Aug 2013 09:59:34 +0000 (18:59 +0900)]
[2274] check statistics counters for Xfrin in lettuce test
explicitly check new statistics counters for Xfrin are just zero (incremented
and decremented) after zone xferring in lettuce test
Naoki Kambe [Fri, 30 Aug 2013 06:13:55 +0000 (15:13 +0900)]
[2274] adjust expected counters' value according to build bot
Because behavior is changed on the build bot, increase values of expected
counters on the following scenarios:
Scenario: Handle incoming notify (XFR request rejected)
Scenario: Handle incoming notify (XFR request rejected in IPv4)
See also for details:
https://lists.isc.org/pipermail/bind10-dev/2013-July/004769.html
Naoki Kambe [Fri, 30 Aug 2013 02:45:46 +0000 (11:45 +0900)]
[2274] fix typo and change column order of label in initial statistics counter checking
Michal 'vorner' Vaner [Fri, 30 Aug 2013 09:19:11 +0000 (11:19 +0200)]
[2751] Tests for the subtract method
Michal 'vorner' Vaner [Fri, 30 Aug 2013 07:37:07 +0000 (09:37 +0200)]
[2781] Empty method to silence linker
Naoki Kambe [Fri, 30 Aug 2013 06:18:16 +0000 (15:18 +0900)]
[2274] untabify
Naoki Kambe [Tue, 27 Aug 2013 10:39:52 +0000 (19:39 +0900)]
[2274] add unit tests for statistics counters introduced in Xfrin
Mukund Sivaraman [Fri, 30 Aug 2013 05:33:59 +0000 (11:03 +0530)]
[2750] Re-arrange find() methods so that protos come before uses
Mukund Sivaraman [Fri, 30 Aug 2013 04:52:11 +0000 (10:22 +0530)]
[2750] Add documentation
Mukund Sivaraman [Fri, 30 Aug 2013 01:51:17 +0000 (07:21 +0530)]
[2750] Check that having 2 nodes in subtree doesn't cause node fusion
Mukund Sivaraman [Fri, 30 Aug 2013 01:46:51 +0000 (07:16 +0530)]
[2750] Update comment
Mukund Sivaraman [Fri, 30 Aug 2013 01:43:54 +0000 (07:13 +0530)]
[2750] Test multiple occurrences of node fusion in a single step upwards in the forest
Mukund Sivaraman [Fri, 30 Aug 2013 01:32:36 +0000 (07:02 +0530)]
[2750] Add node fusion test where there is data in the parent node
Mukund Sivaraman [Fri, 30 Aug 2013 01:26:28 +0000 (06:56 +0530)]
[2750] Add node fusion tests
Jeremy C. Reed [Thu, 29 Aug 2013 17:02:16 +0000 (12:02 -0500)]
[master] resolver doesn't use libb10-xfr.la
Don't LDADD the xfr library for the resolver.
This was probably just a copy and paste mistake.
I brought this up on jabber a few days ago.
Mukund Sivaraman [Thu, 29 Aug 2013 12:55:15 +0000 (18:25 +0530)]
[2750] Add a first proper remove() unittest
Mukund Sivaraman [Thu, 29 Aug 2013 11:36:16 +0000 (17:06 +0530)]
[2750] Unify copies of test data
Naoki Kambe [Tue, 27 Aug 2013 10:34:58 +0000 (19:34 +0900)]
[2274] modify test codes before implementing for new counters
rename some methods and parameters in order to distinguish from existing non
per-zone counters
Naoki Kambe [Wed, 19 Sep 2012 07:59:47 +0000 (16:59 +0900)]
[2274] implement incrementing and decrementing statistics socket counters in XfrinConnection
ixfr_running
axfr_running
soa_in_progress
Naoki Kambe [Wed, 19 Sep 2012 07:58:55 +0000 (16:58 +0900)]
[2274] define new statistics counters in Xfrin spec
ixfr_running
axfr_running
soa_in_progress
Naoki Kambe [Thu, 29 Aug 2013 08:31:07 +0000 (17:31 +0900)]
[2300] set self.tsig_key_name in XfrinConnection.__init__()
Because this is used for outputting an error message when failing to connect to
master. (This is not a related change.)
Naoki Kambe [Tue, 27 Aug 2013 10:39:52 +0000 (19:39 +0900)]
[2300] add unit tests for statistics socket counters introduced in Xfrin
Naoki Kambe [Wed, 19 Sep 2012 07:59:47 +0000 (16:59 +0900)]
[2300] override some methods of asyncore.dispatcher in XfrinConnection
This is for implementation of statistics socket counters for Xfrin
Naoki Kambe [Fri, 28 Sep 2012 06:58:58 +0000 (15:58 +0900)]
[2300] use _master_addrinfo[0] for address family in _get_ipver_str()
Because _get_ipver_str() is referring to an attribute of NoneType when it is
invoked earlier than init_socket() and when the socket object is None.
Naoki Kambe [Wed, 19 Sep 2012 07:58:55 +0000 (16:58 +0900)]
[2300] define new statistics counters in Xfrin spec
open
openfail
close
connfail
conn
senderr
recverr
Michal 'vorner' Vaner [Thu, 29 Aug 2013 09:01:38 +0000 (11:01 +0200)]
[2751] Interface of the subtract method
Michal 'vorner' Vaner [Thu, 29 Aug 2013 08:24:26 +0000 (10:24 +0200)]
[2751] Extract some code to be shared
Mukund Sivaraman [Thu, 29 Aug 2013 03:27:42 +0000 (08:57 +0530)]
[2750] Add initial delete rebalance implementation
Mukund Sivaraman [Thu, 29 Aug 2013 03:27:10 +0000 (08:57 +0530)]
[2750] Move common code into a helper method
Mukund Sivaraman [Thu, 29 Aug 2013 02:59:30 +0000 (08:29 +0530)]
[2750] Simplify the code to set the parent-child relationship
Also fix bugs where:
* root_ was being set to NULL instead of child
* rebalance code was not always executed
* rebalance was wrongly stopping at node, instead of root of sub-tree
Thomas Markwalder [Wed, 28 Aug 2013 15:14:44 +0000 (11:14 -0400)]
[3086] Added server selection support to NameChangeTransaction
Added methods to base class for supporting server selection from a list
of DNS servers.
Marcin Siodelski [Wed, 28 Aug 2013 14:15:56 +0000 (16:15 +0200)]
[3035] Implemented DHCPv4 Client FQDN option processing.
Marcin Siodelski [Wed, 28 Aug 2013 12:46:29 +0000 (14:46 +0200)]
[3035] Added stub implementation for the function processing client FQDN.
Marcin Siodelski [Wed, 28 Aug 2013 10:29:02 +0000 (12:29 +0200)]
[3035] Moved the Dhcpv4Srv test classes to the common header.
Naoki Kambe [Wed, 28 Aug 2013 09:52:51 +0000 (18:52 +0900)]
[master] Merge branch 'trac2883'
Naoki Kambe [Wed, 28 Aug 2013 09:41:27 +0000 (18:41 +0900)]
[master] Merge branch 'trac2781'
Thomas Markwalder [Tue, 27 Aug 2013 20:32:49 +0000 (16:32 -0400)]
[3086] Initial implementation of NameChangeTransaction class
Interim commit for 3086 which includes the preliminary implementation
of the base class, NameChangeTransaction. b10-dhcp-ddns module will use
derivations of this class to carry out NameChangeRequests.
Jeremy C. Reed [Tue, 27 Aug 2013 17:57:36 +0000 (12:57 -0500)]
[master] fix simple transpose typo in acronym
Thomas Markwalder [Tue, 27 Aug 2013 17:32:08 +0000 (13:32 -0400)]
[master] Added ChangeLog entry 669 for Trac# 3075.
Thomas Markwalder [Tue, 27 Aug 2013 17:26:39 +0000 (13:26 -0400)]
[master] Merge branch 'master'
Master moved ahead while I was merging in 3075. This is
the remerge.
Thomas Markwalder [Tue, 27 Aug 2013 16:00:58 +0000 (12:00 -0400)]
[master] Merge branch 'trac3075'
Added main process event loop to src/bin/d2/D2Process,
which is the primary application object in b10-dchp-ddns.
Marcin Siodelski [Tue, 27 Aug 2013 16:00:49 +0000 (18:00 +0200)]
[master] Added ChangeLog entry for #3083.
Marcin Siodelski [Tue, 27 Aug 2013 15:43:40 +0000 (17:43 +0200)]
[master] Merge branch 'trac3083'
Tomek Mrugalski [Tue, 27 Aug 2013 14:03:03 +0000 (16:03 +0200)]
[master] Compilation fix for dhcp_ddns on Ubuntu
Marcin Siodelski [Tue, 27 Aug 2013 14:00:16 +0000 (16:00 +0200)]
[3084] Created tests to check that invalid hostname is rejected.
Also, cleaned up whitespaces.
Mukund Sivaraman [Tue, 27 Aug 2013 13:49:47 +0000 (19:19 +0530)]
[2750] Set the new node's down pointer too
Marcin Siodelski [Tue, 27 Aug 2013 12:23:52 +0000 (14:23 +0200)]
[3084] Added test cases to cover lease updates in MySQL.
Thomas Markwalder [Tue, 27 Aug 2013 12:15:23 +0000 (08:15 -0400)]
[3075] Additional review changes.
Replaced use of EXPECT_EQ(false,) with EXPECT_FALSE()
in d2_process_unittests.cc. These were failing to
compile under Fedora 18/gtest 1.6. This appears to be
a gtest bug. Other minor changes.
Marcin Siodelski [Tue, 27 Aug 2013 11:36:00 +0000 (13:36 +0200)]
[3084] Use FQDN data from the lease database to create lease instance.
Shane Kerr [Tue, 27 Aug 2013 11:16:49 +0000 (13:16 +0200)]
Remove hard-coded (and unecessary) TSIG key from error message.
Shane Kerr [Tue, 27 Aug 2013 09:08:36 +0000 (11:08 +0200)]
Don't crash with missing TSIG name
Marcin Siodelski [Tue, 27 Aug 2013 08:14:49 +0000 (10:14 +0200)]
[3075] A few trivial fixes in dhcp-ddns.
Michal 'vorner' Vaner [Tue, 27 Aug 2013 08:10:15 +0000 (10:10 +0200)]
[3095] Use the traceback handler
Put the traceback handler in the top level of all the python daemons and
some utility programs. The programs that don't do logging are not
included.
Naoki Kambe [Tue, 27 Aug 2013 07:15:44 +0000 (16:15 +0900)]
[2883] None not acceptable for spec_file_name of the Counters class
Remove condition that spec_file_name is omitted (None is specified). Revise
documentation of Counters and add a unit test to assert an exception raised when
specifying an invalid argument.
Michal 'vorner' Vaner [Tue, 27 Aug 2013 07:27:23 +0000 (09:27 +0200)]
[3095] Docstring for the traceback_handler
Michal 'vorner' Vaner [Tue, 27 Aug 2013 07:25:28 +0000 (09:25 +0200)]
[3095] Traceback handling function
A function that catches exceptions, prints them to correct places and
exists.
Naoki Kambe [Tue, 27 Aug 2013 06:49:49 +0000 (15:49 +0900)]
[2883] change module_description of a spec file for testing
Naoki Kambe [Fri, 23 Aug 2013 09:15:37 +0000 (18:15 +0900)]
[2781] define items() in DummDict class instead of using lambda, update note
Naoki Kambe [Fri, 23 Aug 2013 08:59:27 +0000 (17:59 +0900)]
[2781] correct description of test_get_multi_module_list_initsessiontimeout()
and revise the test code to match this