]>
git.ipfire.org Git - thirdparty/kea.git/log
Mukund Sivaraman [Mon, 6 May 2013 06:42:59 +0000 (12:12 +0530)]
[2850] Add tests for the various open modes
Mukund Sivaraman [Mon, 6 May 2013 06:07:14 +0000 (11:37 +0530)]
[2850] Constify getNamedAddress()
Mukund Sivaraman [Mon, 6 May 2013 05:47:17 +0000 (11:17 +0530)]
[2850] Add a way to pass a seed to the random number generator
Mukund Sivaraman [Mon, 6 May 2013 05:44:04 +0000 (11:14 +0530)]
[2850] Make minor coding style fixes
Mukund Sivaraman [Mon, 6 May 2013 05:43:33 +0000 (11:13 +0530)]
[2850] Include dependency header in random_number_generator.h itself
Mukund Sivaraman [Mon, 6 May 2013 05:42:07 +0000 (11:12 +0530)]
[2850] Make a minor comment update
Mukund Sivaraman [Mon, 6 May 2013 04:45:03 +0000 (10:15 +0530)]
[2850] Don't use the term "load" when describing what reset() does
Mukund Sivaraman [Mon, 6 May 2013 04:40:05 +0000 (10:10 +0530)]
[2850] Update comment to match code
Paul Selkirk [Sat, 4 May 2013 23:25:30 +0000 (19:25 -0400)]
[2522] add MasterLexer constructor for RP
JINMEI Tatuya [Sat, 4 May 2013 05:57:24 +0000 (22:57 -0700)]
[2851] add datasrc_name optional parameter to getCachedZoneWriter
so we can specify a particular data source for loading
JINMEI Tatuya [Sat, 4 May 2013 05:59:40 +0000 (22:59 -0700)]
[2851] disable tests relying on mapped segment if --without-shared-memory
JINMEI Tatuya [Fri, 3 May 2013 04:11:25 +0000 (21:11 -0700)]
[2851] document update for getCachedZoneWriter() to match the latest behavior.
JINMEI Tatuya [Fri, 3 May 2013 03:58:20 +0000 (20:58 -0700)]
[2851] avoid loading/reloading read only cache
JINMEI Tatuya [Thu, 2 May 2013 22:14:32 +0000 (15:14 -0700)]
[2851] update getCachedZoneWriter so it only checks config and real datasrc.
- it now still create the zone writer even if the zone is currently not
loaded (due to initial failure). the original behavior is mostly preserved,
but in some minor cases the resulting error code (or whether to throw)
differ. test cases were adjusted accordingly.
- some description of CacheStatus now does not perfectly match the behavior,
so are updated.
JINMEI Tatuya [Thu, 2 May 2013 19:22:03 +0000 (12:22 -0700)]
[2851] don't make datasrc configure() fail in case of "NoSuchZone".
that should be more consistent with the case of missing zone file for
the MasterFiles data source. and, it will be consistent with later
changes in this branch.
JINMEI Tatuya [Thu, 2 May 2013 17:41:50 +0000 (10:41 -0700)]
[2851] another cleanup: introduce NoSuchZone exception based on DataSourceError
getIterator now throws NoSuchZone if the given zone doesn't exist.
this is another step of detailing the too-generic DataSourceError, and
while not absolutely necessary, it's still related to the subject of
this branch.
JINMEI Tatuya [Wed, 1 May 2013 22:54:59 +0000 (15:54 -0700)]
[2851] additional cleanup: rename ReloadResult "CacheStatus"
as we don't use the term "reload" anymore.
JINMEI Tatuya [Wed, 1 May 2013 22:21:54 +0000 (15:21 -0700)]
[2851] cleanup: completely deprecate ConfigurableClientList::reload().
it's been unused for quite some test (except in its own tests), and at this
point I think its existence would just confusion and it's time to clean it
up completely.
JINMEI Tatuya [Sat, 4 May 2013 06:37:59 +0000 (23:37 -0700)]
[2851] Merge branch 'trac2850' into trac2851
JINMEI Tatuya [Fri, 3 May 2013 23:54:00 +0000 (16:54 -0700)]
[2521] minor simplification: initialize mem var in the list when possible.
not a big deal in this case, but it's more concise.
JINMEI Tatuya [Fri, 3 May 2013 23:43:26 +0000 (16:43 -0700)]
[2521] a minor style nit: adjusted a '*' position per style guideline.
JINMEI Tatuya [Fri, 3 May 2013 21:24:10 +0000 (21:24 +0000)]
[master] include stdlib.h instead of cstlib; for random(3) we need the former.
Thomas Markwalder [Fri, 3 May 2013 17:12:18 +0000 (13:12 -0400)]
[2355]Created new template class ValueParser<> which implements
a simple-type parser. Replaces individual class definitions
for BooleanParser, Uint32Parser, and StringParser. Base class
uses new ValueStore<> storage template class.
JINMEI Tatuya [Fri, 3 May 2013 14:59:34 +0000 (07:59 -0700)]
[master] Merge branch 'master' of ssh://git.bind10.isc.org/var/bind10/git/bind10
Thomas Markwalder [Fri, 3 May 2013 14:32:39 +0000 (10:32 -0400)]
[2355] Removed element type checking from StringParser::build. This broke
a unit test in DHCP4, and it appears we rely on being able to set a string
configuration value from any element type.
Mukund Sivaraman [Fri, 3 May 2013 13:14:25 +0000 (18:44 +0530)]
[2850] Add a comment
Mukund Sivaraman [Fri, 3 May 2013 10:34:03 +0000 (16:04 +0530)]
[2850] Implement the strong exception guarantee
Mukund Sivaraman [Fri, 3 May 2013 10:12:58 +0000 (15:42 +0530)]
[2850] Handle the case where setNamedAddress() may invalidate the passed address
This doesn't handle the issue at a higher level yet.
Mukund Sivaraman [Fri, 3 May 2013 09:48:30 +0000 (15:18 +0530)]
[2850] Add different exception definitions for the kind of exceptions reset() may throw
Mukund Sivaraman [Fri, 3 May 2013 09:31:35 +0000 (15:01 +0530)]
[2850] Add the ZoneTableSegment::clear() method
Mukund Sivaraman [Fri, 3 May 2013 08:43:49 +0000 (14:13 +0530)]
[2850] Unify checksum and header processing code
Michal 'vorner' Vaner [Fri, 3 May 2013 08:28:43 +0000 (10:28 +0200)]
[2836] Retry addition on segment grow
If the segment grows during the addition of some data, update the
pointer for the zone data and retry the addition. Repeat until it
succeeds (it is possible, at least in theory, there'll be more segment
growths during single addition, one for the tree structure and one for
the actual data).
Michal 'vorner' Vaner [Fri, 3 May 2013 08:26:41 +0000 (10:26 +0200)]
[2836] Don't store the zone_data pointer in tests
As it is possible the pointer might change from time to time, it is
impossible to cache it in the tests. Instead provide access for the
tests inside the updater, to get to the pointer there and use that.
JINMEI Tatuya [Fri, 3 May 2013 08:02:41 +0000 (01:02 -0700)]
[master] use a wrapper for boost::function to work around sunstudio build issue
it can't handle it if we pass a function object directly to asio function
(also templated). okayed on jabber.
Michal 'vorner' Vaner [Fri, 3 May 2013 07:57:22 +0000 (09:57 +0200)]
Merge branch 'master' of git+ssh://git.bind10.isc.org/var/bind10/git/bind10
Michal 'vorner' Vaner [Fri, 3 May 2013 07:53:07 +0000 (09:53 +0200)]
Don't rely on friends
Fix compilation on SunStudio. Avoid relying on combination of friend
declaration and nested class, which SunStudio gets wrong as it's quite
complex.
Mukund Sivaraman [Fri, 3 May 2013 07:36:05 +0000 (13:06 +0530)]
[2850] Indent correctly
JINMEI Tatuya [Fri, 3 May 2013 07:26:35 +0000 (07:26 +0000)]
[master] define a wrapper object to pass to io_service::post explicitly.
depending on the version of boost and sunstudio, passing a temporary still
doesn't seem to work.
JINMEI Tatuya [Fri, 3 May 2013 07:05:44 +0000 (00:05 -0700)]
[master] use a wrapper for passing boost::function to io_service::post()
this works as a workaround for a build failure with SunStudio.
Mukund Sivaraman [Fri, 3 May 2013 06:39:01 +0000 (12:09 +0530)]
[2850] Split large switch block into methods
Mukund Sivaraman [Fri, 3 May 2013 02:54:06 +0000 (08:24 +0530)]
[2850] Build ZoneTableSegmentMapped only where shared memory support is enabled
Mukund Sivaraman [Fri, 3 May 2013 01:48:31 +0000 (07:18 +0530)]
[2850] Comment the newly introduced constants
Mukund Sivaraman [Fri, 3 May 2013 01:42:45 +0000 (07:12 +0530)]
[2850] Avoid hardcoding magic keywords, and use constants instead
Mukund Sivaraman [Fri, 3 May 2013 01:36:16 +0000 (07:06 +0530)]
[2850] Add test for empty params argument to reset()
Mukund Sivaraman [Fri, 3 May 2013 01:32:36 +0000 (07:02 +0530)]
[2850] Don't declare a global static std::string object to avoid init fiasco
Mukund Sivaraman [Fri, 3 May 2013 01:29:38 +0000 (06:59 +0530)]
[2850] Remove TearDown() method from ZoneTableSegmentMappedTest
Mukund Sivaraman [Fri, 3 May 2013 01:26:41 +0000 (06:56 +0530)]
[2850] Clarify API doc about exceptions in ZoneWriter::cleanup()
Mukund Sivaraman [Fri, 3 May 2013 01:24:29 +0000 (06:54 +0530)]
[2850] Fix ZoneWriter constructor API doc
Mukund Sivaraman [Fri, 3 May 2013 01:20:00 +0000 (06:50 +0530)]
[2850] Throw isc::InvalidOperation instead of isc::Unexpected
Mukund Sivaraman [Fri, 3 May 2013 00:30:19 +0000 (06:00 +0530)]
[2850] Make ZoneTableSegmentLocal::reset() throw NotImplemented exception
Jeremy C. Reed [Fri, 3 May 2013 01:01:24 +0000 (20:01 -0500)]
[master]Merge branch 'master' of ssh://git.bind10.isc.org/var/bind10/git/bind10
fix conflict
Jeremy C. Reed [Fri, 3 May 2013 00:58:02 +0000 (19:58 -0500)]
[master] update the master version to today's timestamp
Jeremy C. Reed [Fri, 3 May 2013 00:56:40 +0000 (19:56 -0500)]
[master] remove correct directory for the clean-cpp-coverage target
The directory has been wrong for a long time.
Reviewed via jabber.
Jeremy C. Reed [Fri, 3 May 2013 00:52:30 +0000 (19:52 -0500)]
[master] mention beta2 released date
Jeremy C. Reed [Fri, 3 May 2013 00:51:27 +0000 (19:51 -0500)]
[master] fix typo
Jeremy C. Reed [Fri, 3 May 2013 00:50:31 +0000 (19:50 -0500)]
[master] reorder
used tools/reorder_message_file.py
Mukund Sivaraman [Fri, 3 May 2013 00:34:31 +0000 (06:04 +0530)]
[master] Add ChangeLog entry for #1909
Mukund Sivaraman [Fri, 3 May 2013 00:33:27 +0000 (06:03 +0530)]
Merge branch 'trac1909'
JINMEI Tatuya [Thu, 2 May 2013 22:42:36 +0000 (15:42 -0700)]
[2850] removed unused functions
Thomas Markwalder [Thu, 2 May 2013 19:37:28 +0000 (15:37 -0400)]
[trac2355] - Added basic parsers unit tests in new file,
dhcp_parsers_unittest.cc. Added Element type checks to
Boolean and String parsers, corrected some commentary.
Paul Selkirk [Thu, 2 May 2013 19:05:06 +0000 (15:05 -0400)]
[2521] divide Rdata_RRSIG_Test.badText into many smaller tests
Paul Selkirk [Thu, 2 May 2013 18:34:50 +0000 (14:34 -0400)]
[2521] style cleanup: remove trailing whitespace
Paul Selkirk [Thu, 2 May 2013 18:20:45 +0000 (14:20 -0400)]
[2521] further DHCID review updates
- fixed multi-line digest aggregator
- remove min-length check, and allow empty string
- removed unit tests for short strings
- added unit tests for empty string and unterminated multi-line base64
Paul Selkirk [Thu, 2 May 2013 16:45:24 +0000 (12:45 -0400)]
[2521] further RRSIG review updates
- fixed multi-line signature aggregator
- allow empty signature
- fixed some unit tests
- added unit test for unterminated multi-line base64
JINMEI Tatuya [Thu, 2 May 2013 16:19:44 +0000 (09:19 -0700)]
[master] create a real instance of IOMessage and pass it to lookup DNS callback
some compilers complained about it if we pass a temporary, as they try to
copy it (IOMessage is nonopyable)
this should fix some error reports from buildbots
JINMEI Tatuya [Thu, 2 May 2013 15:58:04 +0000 (08:58 -0700)]
[master] Merge branch 'trac2906'
JINMEI Tatuya [Thu, 2 May 2013 15:55:24 +0000 (08:55 -0700)]
[master] changelog for #2903
JINMEI Tatuya [Thu, 2 May 2013 15:51:51 +0000 (08:51 -0700)]
[master] Merge branch 'trac2903'
Michal 'vorner' Vaner [Thu, 2 May 2013 14:37:12 +0000 (16:37 +0200)]
[2836] Make zone_data_ a pointer
Make it a pointer instead of reference. We'll need to change it from
time to time when the segment grows.
Mukund Sivaraman [Thu, 2 May 2013 14:14:21 +0000 (19:44 +0530)]
[2850] Move reset() method to the base ZoneTableSegment class
Also update ZoneTableSegmentMapped testcases to test the created segment
as a base ZoneTableSegment.
Michal 'vorner' Vaner [Thu, 2 May 2013 14:04:13 +0000 (16:04 +0200)]
[2836] Test growth of the mapped segment
Fill the memory image with a lot of records, so the segment must grow.
Currently fails, because the growth is not handled.
Mukund Sivaraman [Thu, 2 May 2013 14:00:50 +0000 (19:30 +0530)]
[2850] Update comment about not verifying checksum for a read-only segment
Mukund Sivaraman [Thu, 2 May 2013 13:56:27 +0000 (19:26 +0530)]
[2850] Make isWritable() not throw
Mukund Sivaraman [Thu, 2 May 2013 13:47:56 +0000 (19:17 +0530)]
[2850] Update isWritable() API doc
Michal 'vorner' Vaner [Thu, 2 May 2013 13:22:43 +0000 (15:22 +0200)]
[2836] Use other segments in the tests as well
Use other memory segments than just the test one.
Mukund Sivaraman [Thu, 2 May 2013 08:58:02 +0000 (14:28 +0530)]
[2850] Remove empty ZoneTableSegment destructor
Mukund Sivaraman [Thu, 2 May 2013 08:39:55 +0000 (14:09 +0530)]
[2850] Pass ZoneTableSegment by reference to the ZoneWriter constructor
Mukund Sivaraman [Thu, 2 May 2013 08:22:10 +0000 (13:52 +0530)]
[2850] Change exception type thrown, and document it
Mukund Sivaraman [Thu, 2 May 2013 07:55:00 +0000 (13:25 +0530)]
[2850] Remove getZoneWriter() method
Michal 'vorner' Vaner [Thu, 2 May 2013 07:47:27 +0000 (09:47 +0200)]
[2836] Make the updater tests parametrized
Make the ZoneDataUpdater tests parametrized based on the memory segment
used under the hood. Currently, only the MemorySegmentTest is used, as
before, which makes the test behave exactly the same as before. But
this'll allow us to add more segments to test on, especially the shared
memory segment.
Mukund Sivaraman [Thu, 2 May 2013 06:45:32 +0000 (12:15 +0530)]
[2850] Make getNamedAddress() return a std::pair
Michal 'vorner' Vaner [Thu, 2 May 2013 07:05:11 +0000 (09:05 +0200)]
[2836] Move the actual addition to separate method
Move the actual addition of the data to the memory image to separate
private method. All the allocations from the memory segment should
happen inside this method. Also, the method is mostly exception safe (it
can add some branches in the tree, but they don't bother us and we'll
reuse them).
This'll allow us to retry the addition on the SegmentGrown exception.
Michal 'vorner' Vaner [Thu, 2 May 2013 07:04:06 +0000 (09:04 +0200)]
[2836] Cleanup: use references
Considering the const in front of the parameters, this was the original
intention anyway.
JINMEI Tatuya [Thu, 2 May 2013 05:55:04 +0000 (22:55 -0700)]
[2850] some editorial/style cleanups:
- include style ("" vs <>) per consensus
- null pointer comparison style
- documentation wording fix
Mukund Sivaraman [Thu, 2 May 2013 02:59:43 +0000 (08:29 +0530)]
[1909] EXTRA_DIST the m4 files
... in case someone wants to autoreconf from a tarball.
Mukund Sivaraman [Thu, 2 May 2013 02:57:55 +0000 (08:27 +0530)]
[1909] Remove redundant AC_SUBSTs
JINMEI Tatuya [Thu, 2 May 2013 00:39:16 +0000 (17:39 -0700)]
[2850] constify
JINMEI Tatuya [Wed, 1 May 2013 21:27:05 +0000 (14:27 -0700)]
[2850] simplification: instantiate ZoneWriter directly.
JINMEI Tatuya [Wed, 1 May 2013 21:01:30 +0000 (14:01 -0700)]
[2850] constify
JINMEI Tatuya [Wed, 1 May 2013 18:21:48 +0000 (11:21 -0700)]
[2850] a minor wording fix in doc: use "a zone" instead of "zones" for writer.
as a zone writer can only update a single zone.
JINMEI Tatuya [Wed, 1 May 2013 18:19:45 +0000 (11:19 -0700)]
[2850] use 'update' instead of 'reload' for getZoneWriter doc.
as it's not only used for reloading (or not even for "loading").
JINMEI Tatuya [Wed, 1 May 2013 17:18:42 +0000 (10:18 -0700)]
[2906] removed the 'begin' iterator used within cache zonetable iterator.
we simply didn't need it.
JINMEI Tatuya [Wed, 1 May 2013 16:54:00 +0000 (09:54 -0700)]
[2906] corrected trivial wording errors and typos in documentation.
Mukund Sivaraman [Wed, 1 May 2013 12:26:20 +0000 (17:56 +0530)]
[2906] Update/add some assertions in tests
Mukund Sivaraman [Wed, 1 May 2013 12:25:59 +0000 (17:55 +0530)]
[2906] Make some more minor comment updates
Mukund Sivaraman [Wed, 1 May 2013 12:09:05 +0000 (17:39 +0530)]
[2906] Fix a compile error
Don't make ZoneTableAccessorCache derive from boost::noncopyable,
as ZoneTableAccessor derives from it already.
Mukund Sivaraman [Wed, 1 May 2013 11:58:30 +0000 (17:28 +0530)]
[2906] Make some minor comment updates
Thomas Markwalder [Wed, 1 May 2013 11:39:08 +0000 (07:39 -0400)]
[trac2355] Addressed interrim review comments, and completed remainder
of the common parser refactoring. Replaced individual global variables with
instance of new ParserContext class. Created new base classes PoolParser
and SubnetConfigParser.
Mukund Sivaraman [Wed, 1 May 2013 08:43:55 +0000 (14:13 +0530)]
[2850] Test that the dynamic_cast passes every time
Mukund Sivaraman [Wed, 1 May 2013 08:41:25 +0000 (14:11 +0530)]
[2850] Test resetting a ZoneTableSegmentMapped in READ_WRITE mode when the file exists