]>
git.ipfire.org Git - thirdparty/kea.git/log
Mukund Sivaraman [Wed, 10 Oct 2012 14:41:09 +0000 (20:11 +0530)]
[2198] Remove dependency on libb10-util in src/lib/util/unittests/
Mukund Sivaraman [Wed, 10 Oct 2012 14:12:35 +0000 (19:42 +0530)]
[2302] Add a set test for map Element
Mukund Sivaraman [Wed, 10 Oct 2012 14:04:44 +0000 (19:34 +0530)]
[2302] Check map data
Mukund Sivaraman [Wed, 10 Oct 2012 14:03:53 +0000 (19:33 +0530)]
[2302] Add ConstElementPtr version of tests for all types of Element
Tomek Mrugalski [Wed, 10 Oct 2012 14:03:26 +0000 (16:03 +0200)]
[2140] Changes after review: LeaseMgr::getLeaseX() methods expanded.
Michal 'vorner' Vaner [Wed, 10 Oct 2012 11:44:53 +0000 (13:44 +0200)]
[2207] Definition of the local zone updater
Marcin Siodelski [Wed, 10 Oct 2012 11:18:57 +0000 (13:18 +0200)]
[2304] Unit tests for Option6IntArray.
Michal 'vorner' Vaner [Wed, 10 Oct 2012 11:12:21 +0000 (13:12 +0200)]
[2207] Documentation of the base ZoneUpdater
Yoshitaka Aharen [Wed, 10 Oct 2012 10:34:26 +0000 (19:34 +0900)]
[2155] fixed wrong comment
Michal 'vorner' Vaner [Wed, 10 Oct 2012 10:34:08 +0000 (12:34 +0200)]
[2207] Interface of the ZoneUpdater
Yoshitaka Aharen [Wed, 10 Oct 2012 10:32:37 +0000 (19:32 +0900)]
[2155] inline methods in a canonical way
Yoshitaka Aharen [Wed, 10 Oct 2012 10:09:58 +0000 (19:09 +0900)]
[2155] use auto-generated copy constructor
Jelte Jansen [Wed, 10 Oct 2012 10:00:45 +0000 (12:00 +0200)]
[2223] add full rrsets comparison in test
this implementation goes even further than the original one did; it converts both iterators (of rrsets) to string vectors, and sorts and compares the result, so it really does compare everything that is contained in all rrsets (as long as it is in toText() output).
It can compare vectors where the signatures are put in as separate rrsets and vectors where the signatures are contained in the rrset (by splitting them out when constructing the string vector), and as such is backwards comaptible with the existing tests that use rrsetsCheck.
Michal 'vorner' Vaner [Wed, 10 Oct 2012 09:58:50 +0000 (11:58 +0200)]
Merge #2292
Michal 'vorner' Vaner [Wed, 10 Oct 2012 09:58:17 +0000 (11:58 +0200)]
[2292] Add a TODO about re-adding tests
Planned for merge #2268
Yoshitaka Aharen [Wed, 10 Oct 2012 09:40:50 +0000 (18:40 +0900)]
[2155] checkCountersAllZeroExcept() returns void
Yoshitaka Aharen [Wed, 10 Oct 2012 08:06:15 +0000 (17:06 +0900)]
[2155] remove meaningless NULL check
Yoshitaka Aharen [Wed, 10 Oct 2012 07:31:15 +0000 (16:31 +0900)]
[2155] added notes for including header files with EXTRA_DIST
Yoshitaka Aharen [Wed, 10 Oct 2012 05:14:46 +0000 (14:14 +0900)]
[2157] fixed systest
Yoshitaka Aharen [Tue, 9 Oct 2012 12:17:03 +0000 (21:17 +0900)]
[2157] update spec file
JINMEI Tatuya [Tue, 9 Oct 2012 23:43:16 +0000 (16:43 -0700)]
[2340] added comment about why we need to explicitly define empty dtor.
JINMEI Tatuya [Tue, 9 Oct 2012 22:37:16 +0000 (15:37 -0700)]
[2268] separated zone data Loader from ZoneDataUpdater.
it doesn't have to be part of the updater (with the ability of accessing
private members).
Mukund Sivaraman [Tue, 9 Oct 2012 22:24:29 +0000 (03:54 +0530)]
[2302] Untabify and delete trailing whitespace
Kazunori Fujiwara [Tue, 9 Oct 2012 22:21:09 +0000 (03:51 +0530)]
[2302] Fix bugs in Element class
Two bugs in src/lib/cc/data.h:
* Element::find() does not return value because its argument is not a
reference.
* getValue() member functions does not work for ConstElementPointer
because getValue() member functions are not specified as const.
Aharen found these bugs.
JINMEI Tatuya [Tue, 9 Oct 2012 22:09:37 +0000 (15:09 -0700)]
[2268] cleanup: removed (now-)unnecessary include
JINMEI Tatuya [Tue, 9 Oct 2012 21:44:42 +0000 (14:44 -0700)]
[2268] constify
JINMEI Tatuya [Tue, 9 Oct 2012 21:40:13 +0000 (14:40 -0700)]
[2268] doxigen editorial fixes: use \code for code snippet; folded a long line
Mukund Sivaraman [Tue, 9 Oct 2012 21:35:46 +0000 (03:05 +0530)]
[2198] First use a mutex for mutual exclusion among threads, then a lock file
Mukund Sivaraman [Tue, 9 Oct 2012 21:33:09 +0000 (03:03 +0530)]
[2198] Add Mutex::tryLock() and make lock methods public
tryLock() is necessary inside InterprocessSyncFile. It also doesn't
make sense afterwards to make a dynamically constructed Mutex::Locker
that lives after the basic block is exited. So lock() and unlock()
have also been made public.
I've added comments to discourage the use of these methods directly
and use the Mutex::Locker where applicable.
JINMEI Tatuya [Tue, 9 Oct 2012 20:28:08 +0000 (13:28 -0700)]
[2204] removed an obsolete comment that only made sense for the previous code.
JINMEI Tatuya [Tue, 9 Oct 2012 20:26:20 +0000 (13:26 -0700)]
[2204] added notes about future extensions of incremental datasrc config update
JINMEI Tatuya [Tue, 9 Oct 2012 20:17:59 +0000 (13:17 -0700)]
[2339] changed the search order of python executable: seek python3.x first.
this works around a bit awkward installation setup where there's a link
from "python3" to "python3.x" but not from "python3-config" to the
corresponding "python3.x-config". That happens for recent versions of
Homebrew.
Mukund Sivaraman [Tue, 9 Oct 2012 20:05:38 +0000 (01:35 +0530)]
[2198] Test that locks work from threads
This test fails now because there's no mutual exclusion among threads
in the implementation.
Mukund Sivaraman [Tue, 9 Oct 2012 20:04:36 +0000 (01:34 +0530)]
[2198] Build threads directory first because . depends on it
JINMEI Tatuya [Tue, 9 Oct 2012 18:11:51 +0000 (11:11 -0700)]
[2244] missing update: Component.running() was renamed is_running().
Tomek Mrugalski [Tue, 9 Oct 2012 17:13:29 +0000 (19:13 +0200)]
[2269] Changes in Dhcp6 config parser after review.
Marcin Siodelski [Tue, 9 Oct 2012 16:34:42 +0000 (18:34 +0200)]
[2304] Added unit tests for Option6Int option.
Tomek Mrugalski [Tue, 9 Oct 2012 14:08:25 +0000 (16:08 +0200)]
[2237] Tests for addr utilities added, other minor fixes after review.
Tomek Mrugalski [Tue, 9 Oct 2012 12:54:09 +0000 (14:54 +0200)]
[2237] Changes after review.
Marcin Siodelski [Tue, 9 Oct 2012 12:39:14 +0000 (14:39 +0200)]
[2304] Asserts on types of options created with factory functions.
Michal 'vorner' Vaner [Tue, 9 Oct 2012 12:11:25 +0000 (14:11 +0200)]
[2292] Clarify test
And make it slightly stronger (it now checks something that should be
mostly obvious too, but who knows, with software).
Michal 'vorner' Vaner [Tue, 9 Oct 2012 12:07:13 +0000 (14:07 +0200)]
[2292] Pass the old zone back
Instead of releasing it directly. While the internal release was more
convenient, it didn't allow for swapping things fast under a mutex and
then spending the time releasing it unlocked.
Michal 'vorner' Vaner [Tue, 9 Oct 2012 11:39:30 +0000 (13:39 +0200)]
[2292] Don't pass SegmentObjectHolder
It is supposed to be mostly private. Use it internally only.
Mukund Sivaraman [Tue, 9 Oct 2012 05:11:32 +0000 (10:41 +0530)]
[master] Set lockfile path for DHCP tests
Mukund Sivaraman [Tue, 9 Oct 2012 05:05:21 +0000 (10:35 +0530)]
[master] Update .gitignore files
Mukund Sivaraman [Tue, 9 Oct 2012 04:51:48 +0000 (10:21 +0530)]
[master] Remove empty GNU-style dist files
JINMEI Tatuya [Tue, 9 Oct 2012 00:29:15 +0000 (17:29 -0700)]
[2204] grammar fix in documentation
JINMEI Tatuya [Tue, 9 Oct 2012 00:27:23 +0000 (17:27 -0700)]
[2204] updated test comments without using "rollback".
as the new code actually doesn't do rollback operation internally,
even though the observable effect is the same.
JINMEI Tatuya [Mon, 8 Oct 2012 23:56:10 +0000 (16:56 -0700)]
[2204] updated comments about releasing old data source client lists
the previous one was not really accurate and was confusing.
JINMEI Tatuya [Mon, 8 Oct 2012 23:14:16 +0000 (16:14 -0700)]
[2244] renamed BaseComponent.is_failed() to is_restarting().
so it sounds more natural as an English term.
JINMEI Tatuya [Mon, 8 Oct 2012 22:49:24 +0000 (15:49 -0700)]
[2244] fixed a typo in a log message.
JINMEI Tatuya [Mon, 8 Oct 2012 21:12:02 +0000 (14:12 -0700)]
[master] define dbutil_test.sh as noinst_SCRIPTS to auto-regenerate on modify.
this will prevent surprising test failure on an incrementally updated dev
tree. okayed on jabber.
JINMEI Tatuya [Mon, 8 Oct 2012 21:11:39 +0000 (14:11 -0700)]
[master] added changelog for #1870
JINMEI Tatuya [Mon, 8 Oct 2012 21:02:58 +0000 (14:02 -0700)]
[master] Merge branch 'trac1870'
JINMEI Tatuya [Mon, 8 Oct 2012 20:57:05 +0000 (13:57 -0700)]
[master] Merge branch 'trac2203'
JINMEI Tatuya [Mon, 8 Oct 2012 18:32:18 +0000 (11:32 -0700)]
[2292] minor cleanups: constify, indentation
Mukund Sivaraman [Mon, 8 Oct 2012 18:10:11 +0000 (23:40 +0530)]
[2266] Remove all traces of RRsetList
It is no longer used anywhere.
Mukund Sivaraman [Mon, 8 Oct 2012 17:29:25 +0000 (22:59 +0530)]
Merge branch 'trac1899_2'
JINMEI Tatuya [Mon, 8 Oct 2012 16:41:33 +0000 (16:41 +0000)]
[master] add std:: for memset(). sunstudio requires this with <cstring>
Jelte Jansen [Mon, 8 Oct 2012 12:53:19 +0000 (14:53 +0200)]
[master] Merge branch 'trac2275'
Mukund Sivaraman [Mon, 8 Oct 2012 09:12:55 +0000 (14:42 +0530)]
[master] Add libb10-cc.la to tests Makefile.am
Jelte Jansen [Mon, 8 Oct 2012 07:57:26 +0000 (09:57 +0200)]
[master] Merge branch 'trac2278'
Jelte Jansen [Mon, 8 Oct 2012 07:41:11 +0000 (09:41 +0200)]
[2275] fix strncpy in socketrequestortest
Mukund Sivaraman [Mon, 8 Oct 2012 07:06:20 +0000 (12:36 +0530)]
[1899] Allow other RRtypes in nsec3 table (for RRSIGs)
* The unique constraint on NSEC3 owner per zone is now removed
* NSEC3 RRSIGs are now returned next to their RR set
* Test was adjusted to check for RRSIGs too
JINMEI Tatuya [Mon, 8 Oct 2012 06:53:26 +0000 (23:53 -0700)]
[clang-build] added workaround for the clang++ "unused arguments" warn/error.
by specifying -Qunused-arguments. Also, as a cleanup for better organization
I moved compiler specific settings to earlier part of configure.ac, where
this workaround was added.
JINMEI Tatuya [Mon, 8 Oct 2012 04:20:52 +0000 (21:20 -0700)]
[clang-build] Revert "[clang-build] specify thread flag as part CPPFLAGS, not LDFLAGS."
This reverts commit
daf81c8846bf0b4e4308068a019c96beb09c5199 .
I believe the sense of the change is correct, but it has effects on
other OSes, so it's probably better to use clang specific workaround
(will commit it later).
JINMEI Tatuya [Mon, 8 Oct 2012 04:19:23 +0000 (21:19 -0700)]
[clang-build] Revert "[clang-build] specify -pthread in CXXFLAGS and via system-indepedent variable."
This reverts commit
d62a1e4250c88e765b3cd7f77fe9a948db0a565d .
I believe the sense of the change is correct, but it has effects on
other OSes, so it's probably better to use clang specific workaround
(will commit it later).
JINMEI Tatuya [Sun, 7 Oct 2012 21:12:02 +0000 (14:12 -0700)]
[clang-build] specify -pthread in CXXFLAGS and via system-indepedent variable.
specifying it in LDFLAGS would trigger build error with some versions of clang.
hardcoding "-pthread" is less portable.
JINMEI Tatuya [Sun, 7 Oct 2012 19:34:55 +0000 (12:34 -0700)]
[clang-build] removed an effectively unused variable. clang would complain.
JINMEI Tatuya [Sun, 7 Oct 2012 19:20:34 +0000 (12:20 -0700)]
[clang-build] specify thread flag as part CPPFLAGS, not LDFLAGS.
newer version of clang treats the latter as a fatal error.
JINMEI Tatuya [Sun, 7 Oct 2012 17:13:58 +0000 (10:13 -0700)]
[clang-build] explictly define destructor of mostly empty template class.
without this new versions of clang++ seem to complain that instantiation of
the class results in an unused variable.
Mukund Sivaraman [Sun, 7 Oct 2012 18:10:22 +0000 (23:40 +0530)]
[2268] Add back logging calls
Mukund Sivaraman [Sun, 7 Oct 2012 17:55:55 +0000 (23:25 +0530)]
[2268] Fix a leak upon exception in InMemoryClient's constructor
Mukund Sivaraman [Sun, 7 Oct 2012 17:32:57 +0000 (23:02 +0530)]
[2268] Remove redundant MemorySegmentTest definition
Mukund Sivaraman [Sun, 7 Oct 2012 17:29:27 +0000 (22:59 +0530)]
[2268] Move constructor and destructor to top of file
Mukund Sivaraman [Sun, 7 Oct 2012 15:48:58 +0000 (21:18 +0530)]
[2268] Update ZoneDataUpdater API doc
Mukund Sivaraman [Sun, 7 Oct 2012 15:48:38 +0000 (21:18 +0530)]
[2268] Move EmptyZone exception to InMemoryClient class
Michal 'vorner' Vaner [Sun, 7 Oct 2012 15:19:12 +0000 (17:19 +0200)]
[2292] Update tests
They don't need the mutable versions to work, but they used them anyway.
Michal 'vorner' Vaner [Sun, 7 Oct 2012 15:18:33 +0000 (17:18 +0200)]
[2292] Re-add version of find removed by accident
This one was not mutable, it just took Name as an argument.
Michal 'vorner' Vaner [Sun, 7 Oct 2012 15:03:18 +0000 (17:03 +0200)]
[2292] Drop tests for InMemoryClient::add
As the method was removed.
Michal 'vorner' Vaner [Sun, 7 Oct 2012 14:50:50 +0000 (16:50 +0200)]
[2292] Remove unused template parameters
The domain tree no longer supports the mutable find versions, so we
don't need the template parameters allowing for them.
Michal 'vorner' Vaner [Sun, 7 Oct 2012 14:38:23 +0000 (16:38 +0200)]
[2292] Remove mutable find methods
They are currently used in test code only (so we'll need to update the
tests to compile). The real code seams clean now.
Michal 'vorner' Vaner [Sun, 7 Oct 2012 14:13:56 +0000 (16:13 +0200)]
[2292] Remove the setZoneData method
Currently, the content of zone is passed to the addZone method. No way
to change it later, but the addZone overwrites the old value if called
again.
This should hopefully allow for removal of mutable find methods from the
tree.
JINMEI Tatuya [Sat, 6 Oct 2012 00:04:28 +0000 (17:04 -0700)]
[2204] cleanup: removed unused func, and renamed "ClientList" with "DataSrc".
getClientListClasses() was removed. It's not used anymore.
a few methods named with "ClientList" were renamed with adding "DataSrc".
The resulting names are a bit long, but since there's no namespace
qualification, simply saying "client" can be confusing (it could be
interpreted to mean DNS clients, for example).
JINMEI Tatuya [Fri, 5 Oct 2012 23:52:37 +0000 (16:52 -0700)]
[2204] regression fix: make sure the datasrc config is installed to server.
JINMEI Tatuya [Fri, 5 Oct 2012 23:48:03 +0000 (16:48 -0700)]
[2204] removed server function/template param from configureDataSourceGeneric.
This is pure cleanup. This function already doesn't use the server.
JINMEI Tatuya [Fri, 5 Oct 2012 23:40:10 +0000 (16:40 -0700)]
[2204] extracted swapDataSrcClientLists() from configureDataSource().
now configureDataSource() can take time.
JINMEI Tatuya [Fri, 5 Oct 2012 23:02:01 +0000 (16:02 -0700)]
[2204] completely replaced setClientList with swapDataSrcClientLists.
the test cases using setClientList were updated so they use
swapDataSrcClientLists (some of them work as a test for the "swap" itself).
now we don't need setClientList, so it was removed.
JINMEI Tatuya [Fri, 5 Oct 2012 22:15:18 +0000 (15:15 -0700)]
[2204] simplify configureDataSource by always creating a new lists and swap.
so we don't have to worry about what are in the current lists or rollback
operations.
swapDataSrcClientLists() is newly introduced for AuthSrv. No direc tests
yet (technically bad in terms TDD but the definition is very simple), which
will be provided in the next step.
the lock is now moved inside swapDataSrcClientLists().
note: even though this version builds everything, the amount of work
should be mostly the same because the only save is to create the empty
ClientList when the new and old have the same class of client. The expensive
part is ClientList::configure(). This version doesn't need any more call
to configure() than the old version.
JINMEI Tatuya [Fri, 5 Oct 2012 21:03:52 +0000 (14:03 -0700)]
[2204] changed internal representation of auth_srv's "client_lists_" to ptrs.
this will be necessary later in this branch.
also renamed the member variable "datasrc_client_lists_" as the mere "client"
can be ambiguous.
JINMEI Tatuya [Fri, 5 Oct 2012 20:13:19 +0000 (13:13 -0700)]
[2204] Merge branch 'trac2203' into trac2204
Marcin Siodelski [Fri, 5 Oct 2012 18:42:20 +0000 (20:42 +0200)]
[2304] Added Option6IntArray option type and unit tests.
JINMEI Tatuya [Fri, 5 Oct 2012 17:12:42 +0000 (10:12 -0700)]
[2203] renamed datasrc_configurator to datasrc_config; it represents it better.
Marcin Siodelski [Fri, 5 Oct 2012 13:16:26 +0000 (15:16 +0200)]
[2304] Added factory functions for IA_NA and IAADDR options.
Marcin Siodelski [Fri, 5 Oct 2012 13:15:02 +0000 (15:15 +0200)]
[2304] Checking data types specified for Option6Int.
Yoshitaka Aharen [Fri, 5 Oct 2012 12:55:35 +0000 (21:55 +0900)]
[2155] update for structured statistics items
Conflicts:
src/bin/auth/statistics.cc
src/bin/auth/tests/auth_srv_unittest.cc
src/bin/auth/tests/statistics_unittest.cc
Yoshitaka Aharen [Fri, 5 Oct 2012 12:28:48 +0000 (21:28 +0900)]
[2154] removed socket statistics items, restruct counter items
Removed socket statistics items.
Restruct counter items from flat counters to structured counters.
Yoshitaka Aharen [Fri, 5 Oct 2012 12:55:35 +0000 (21:55 +0900)]
[2155] update for structured statistics items
Yoshitaka Aharen [Fri, 5 Oct 2012 12:28:48 +0000 (21:28 +0900)]
[2154] removed socket statistics items, restruct counter items
Removed socket statistics items.
Restruct counter items from flat counters to structured counters.
Conflicts:
src/bin/auth/tests/statistics_unittest.cc
Jelte Jansen [Fri, 5 Oct 2012 10:10:56 +0000 (12:10 +0200)]
[2275] address review comments