]>
git.ipfire.org Git - thirdparty/kea.git/log
Yoshitaka Aharen [Fri, 17 May 2013 02:50:05 +0000 (11:50 +0900)]
[2796] update lettuce tests with a change of a terrain
Update lettuce tests for 'qryrecursion'. Add an argument to the terrain
to control RD bit in the query.
JINMEI Tatuya [Thu, 16 May 2013 20:44:02 +0000 (13:44 -0700)]
[master] removed accidentally committed code with the previous fix.
JINMEI Tatuya [Thu, 16 May 2013 17:30:34 +0000 (10:30 -0700)]
[master] (re)make sure to {un,}define USE_SHARED_MEMORY in config.h
this chunk was accidentally removed in
e448bbba3ecae68b261612954aa9777edc384be4
causing test faiulres.
Thomas Markwalder [Thu, 16 May 2013 15:58:25 +0000 (11:58 -0400)]
[master] Added entry 614 for trac 2954.
Thomas Markwalder [Thu, 16 May 2013 15:53:06 +0000 (11:53 -0400)]
[master] Merge branch 'trac2954', this adds dhcp-ddns process to
the source tree.
Thomas Markwalder [Thu, 16 May 2013 11:56:32 +0000 (07:56 -0400)]
[2954] Additional review comment cleanup.
Thomas Markwalder [Wed, 15 May 2013 16:45:38 +0000 (12:45 -0400)]
[2954] Removed inadvertant addition of executable, d2srv_unittests.
Thomas Markwalder [Wed, 15 May 2013 16:41:42 +0000 (12:41 -0400)]
[2594] Moved d2Srv to d2, removed "Srv" and "srv" from file names
and source. Corrected other review items.
JINMEI Tatuya [Wed, 15 May 2013 15:59:28 +0000 (08:59 -0700)]
[master] Merge branch 'trac2899-2'
JINMEI Tatuya [Wed, 15 May 2013 15:53:49 +0000 (08:53 -0700)]
[master] Merge branch 'trac2823-regression'
Mukund Sivaraman [Wed, 15 May 2013 09:25:58 +0000 (14:55 +0530)]
[2823-regression] Make a minor comment update
Mukund Sivaraman [Wed, 15 May 2013 09:24:30 +0000 (14:54 +0530)]
[2823-regression] Fix test name in a comment
Thomas Markwalder [Tue, 14 May 2013 20:53:39 +0000 (16:53 -0400)]
[2954] Created the initial server source directory, configuration,
and make files; and process framework for the DHCP-DDNS daemon,
b10-d2srv.
Thomas Markwalder [Tue, 14 May 2013 18:38:45 +0000 (14:38 -0400)]
[master] Merge branch 'trac2355'
JINMEI Tatuya [Tue, 14 May 2013 16:40:41 +0000 (09:40 -0700)]
[master] changelog for #2851
JINMEI Tatuya [Tue, 14 May 2013 16:28:35 +0000 (09:28 -0700)]
[master] Merge branch 'trac2851'
Mukund Sivaraman [Tue, 14 May 2013 13:20:29 +0000 (18:50 +0530)]
Merge branch 'trac2850_2'
JINMEI Tatuya [Tue, 14 May 2013 04:33:33 +0000 (21:33 -0700)]
[2850] removed now-unused inclusion and using for boost::scoped_ptr
Thomas Markwalder [Mon, 13 May 2013 20:07:02 +0000 (16:07 -0400)]
[2355] Cleaned up some minor issues spotted in review.
Mukund Sivaraman [Mon, 13 May 2013 14:30:57 +0000 (20:00 +0530)]
[2850] Update comment that it doesn't actually fail
Stephen Morris [Mon, 13 May 2013 14:11:06 +0000 (15:11 +0100)]
[master] Merge branch 'trac2909'
Mukund Sivaraman [Mon, 13 May 2013 10:42:13 +0000 (16:12 +0530)]
[2850] Remove unnecessary setup of named addresses
... now that we handle this with an offset_ptr inside setNamedAddress()
itself.
Mukund Sivaraman [Mon, 13 May 2013 08:36:58 +0000 (14:06 +0530)]
[2850] Fix MemorySegmentMapped::allMemoryDeallocated() and make it non-const
Mukund Sivaraman [Mon, 13 May 2013 08:17:45 +0000 (13:47 +0530)]
[2850] Looks like flush() finalizes base_sgmt_, so we free before that
Mukund Sivaraman [Mon, 13 May 2013 07:59:05 +0000 (13:29 +0530)]
[2850] Pre-reserve some memory to workaround relocations in setNamedAddress()
This commit introduces a problem that allMemoryDeallocated() doesn't
work anymore, because the reserved memory is freed only when the segment
is destroyed.
One workaround is to temporarily release and re-reserve this memory in
allMemoryDeallocated(), but that would make it a non-const method. I
don't see any other clean way of doing this.
Jeremy C. Reed [Fri, 10 May 2013 17:26:44 +0000 (12:26 -0500)]
[master] update master version datestamp and fix date for 1.0.0beta2 release
Mukund Sivaraman [Fri, 10 May 2013 14:25:40 +0000 (19:55 +0530)]
[2850] Throw std::bad_alloc if ZoneTable::create() throws MemorySegmentGrown
We don't attempt to recover in this case.
Also change some error handling to simply asserts.
Mukund Sivaraman [Fri, 10 May 2013 14:18:07 +0000 (19:48 +0530)]
[2850] Make more updates to ZoneTableSegment API documentation
Mukund Sivaraman [Fri, 10 May 2013 13:58:58 +0000 (19:28 +0530)]
[2850] Make more updates to ZoneTableSegment API documentation
Mukund Sivaraman [Fri, 10 May 2013 13:48:33 +0000 (19:18 +0530)]
[2850] Update Makefile.am for renamed files
Mukund Sivaraman [Fri, 10 May 2013 13:46:27 +0000 (19:16 +0530)]
[2850] Update ZoneTableSegment API documentation
Mukund Sivaraman [Fri, 10 May 2013 12:52:46 +0000 (18:22 +0530)]
[2850] Add API doc comments about plans to make reset(), etc. non-virtual
Mukund Sivaraman [Fri, 10 May 2013 12:48:39 +0000 (18:18 +0530)]
[2850] Add explicit include for zone_table_segment.h
Mukund Sivaraman [Fri, 10 May 2013 12:39:41 +0000 (18:09 +0530)]
[2850] Add default case for switch on MemorySegmentOpenMode
Mukund Sivaraman [Fri, 10 May 2013 09:52:21 +0000 (15:22 +0530)]
[2850] Add tests to check that resetHeader() is called by ZoneWriter class
Initially I thought it was not possible to test this as
ZoneTableSegment::create() was used to create the zone table segment,
but it seems it's possible to do it this way using a mock class.
Mukund Sivaraman [Fri, 10 May 2013 03:01:04 +0000 (08:31 +0530)]
[2850] Change style of code to fix buildbot failures
JINMEI Tatuya [Thu, 9 May 2013 22:32:31 +0000 (15:32 -0700)]
[2899] renamed namespace for InterprocessSync "interprocess" for consistency.
JINMEI Tatuya [Thu, 9 May 2013 20:20:30 +0000 (13:20 -0700)]
[2899] Merge branch 'trac2899' into trac2899-2
JINMEI Tatuya [Thu, 9 May 2013 20:21:05 +0000 (20:21 +0000)]
[2899] explicitly LDADD libb10-threads from log lock test
seems to be necessary for some OS. also explicitly include the relevant
header file.
JINMEI Tatuya [Thu, 9 May 2013 20:20:15 +0000 (13:20 -0700)]
[2899] Merge branch 'trac2823-regression' into trac2899-2
Tomek Mrugalski [Thu, 9 May 2013 15:12:18 +0000 (17:12 +0200)]
[master] Merge branch 'trac2898' (DHCPv6 relayed traffic)
Conflicts:
src/lib/dhcp/tests/pkt6_unittest.cc
Tomek Mrugalski [Thu, 9 May 2013 13:43:20 +0000 (15:43 +0200)]
Merge branch 'trac2898' of ssh://git.bind10.isc.org/var/bind10/git/bind10 into trac2898
Tomek Mrugalski [Thu, 9 May 2013 13:43:02 +0000 (15:43 +0200)]
[2898] comment updated in one dhcp6/config_parser test
Mukund Sivaraman [Thu, 9 May 2013 13:10:37 +0000 (18:40 +0530)]
[2850] Add isUsable() and getImplType() methods
It would be better if these were static (to save on space and also to
use them inside ZoneTableSegment::create()), but unfortunately we cannot
make it virtual then. Another option would be to pass a static string
from ZoneTableSegment::create() onto the ZoneTableSegment constructor
and make it a non-virtual base class method.
Mukund Sivaraman [Thu, 9 May 2013 12:38:27 +0000 (18:08 +0530)]
[2850] Rename MemorySegmentTest to MemorySegmentMock (to not resemble a fixture)
Mukund Sivaraman [Thu, 9 May 2013 12:28:31 +0000 (17:58 +0530)]
[2850] Rename ZoneTableSegmentTest to ZoneTableSegmentMock (to not resemble a fixture)
Mukund Sivaraman [Thu, 9 May 2013 12:14:49 +0000 (17:44 +0530)]
[2850] Destroy ZoneTableSegment object upon exception (see full log)
Ideally, this should use something like a SegmentObjectHolder, but a
SegmentObjectHolder takes unnecessary arguments. In this limited
usecase, ZoneTableSegment::destroy() just calls its destructor, so
std::auto_ptr should be ok here.
Stephen Morris [Thu, 9 May 2013 09:54:56 +0000 (10:54 +0100)]
[2909] Updated schema_copy.h to more accurately reflect the database schema
When the MySql lease manager tests create the database, they now also
create all the indexes as well.
Mukund Sivaraman [Thu, 9 May 2013 09:28:15 +0000 (14:58 +0530)]
[2850] Add CREATE over corrupted file testcase
Mukund Sivaraman [Thu, 9 May 2013 09:20:40 +0000 (14:50 +0530)]
[2850] Check that the old data is still available after the corruption tests
Mukund Sivaraman [Thu, 9 May 2013 08:52:27 +0000 (14:22 +0530)]
[2850] Remove obsolete comment (isWritable() no longer throws)
Mukund Sivaraman [Thu, 9 May 2013 08:50:51 +0000 (14:20 +0530)]
[2850] Add a test for clear() on an uninitialized segment
Mukund Sivaraman [Thu, 9 May 2013 08:10:44 +0000 (13:40 +0530)]
[2850] Add resetHeader() method
JINMEI Tatuya [Thu, 9 May 2013 06:05:14 +0000 (23:05 -0700)]
[master] exit from SyncUDPServer::handleRead immediately if stopped.
while not really correct, this seems to work as a workaround for the crash
problem reported in #2946.
okayed on jabber.
JINMEI Tatuya [Thu, 9 May 2013 05:08:27 +0000 (22:08 -0700)]
[master] don't initialize test data objects in namescope level.
this caused statici initialization fiasco for some build, e.g.:
http://git.bind10.isc.org/~tester/builder/BIND10/
20130508225127 -MacOSX10.6-x86_64-Clang-Static/logs/unittests.out
string objects moved inside the compare tests did not actually cause harm
in this environment, but should be generally better to be initialized
this way for the same reason.
while it's not a kind of 5-line patch, it should be pretty straightforward,
so I'm committing it at my discretion.
JINMEI Tatuya [Thu, 9 May 2013 03:21:58 +0000 (20:21 -0700)]
[2899] added a README file explaining the intent of the interproc stuff
JINMEI Tatuya [Thu, 9 May 2013 03:15:10 +0000 (20:15 -0700)]
[2899] hide the interprocess stuff from public log API more.
- not include the header file, but use a forward declaration
- added a note that setInterprocessSync shouldn't be used by normal apps
JINMEI Tatuya [Thu, 9 May 2013 00:16:42 +0000 (17:16 -0700)]
[2899] move interprocess-lock related things under lib/log/interprocess
also
- a utility for tests using multi processes was moved under lib/util/unittests
- other Makefile adjustments
JINMEI Tatuya [Wed, 8 May 2013 23:03:14 +0000 (16:03 -0700)]
[2851] check return value of insertZone of mock data source, just in case.
JINMEI Tatuya [Wed, 8 May 2013 22:47:10 +0000 (15:47 -0700)]
[2851] added missing parameter description.
JINMEI Tatuya [Wed, 8 May 2013 22:45:40 +0000 (15:45 -0700)]
[2851] corrected an error code in documentation (a simple typo)
JINMEI Tatuya [Wed, 8 May 2013 22:41:49 +0000 (15:41 -0700)]
[2851] use "non writable" instead of read-only for a test case on this.
in some sense they mean the same thing, but technically there's a subtle
difference between them; "non writable" includes the case the cache (segment)
isn't usable at atll. calling it "read-only" is not really correct.
JINMEI Tatuya [Wed, 8 May 2013 22:39:19 +0000 (15:39 -0700)]
[2851] updated description of NOT_WRITABLE.
"yet" seemed to be confusing; while we could explain it more, it's probably
not much of interest for the caller anyway, and this is expected to be
a concise description. so I chose it rather simpler.
JINMEI Tatuya [Wed, 8 May 2013 22:37:47 +0000 (15:37 -0700)]
[2851] added a new test case for reloading a zone added to the datasrc later
JINMEI Tatuya [Wed, 8 May 2013 22:25:51 +0000 (15:25 -0700)]
[2851] updated comment wording for reloadZoneGone test.
it now doesn't throw an exception but reject the attempt with an error code.
Stephen Morris [Wed, 8 May 2013 17:33:25 +0000 (18:33 +0100)]
[2898] Minor editing changes to DHCPv6 relay text
Paul Selkirk [Wed, 8 May 2013 15:37:31 +0000 (11:37 -0400)]
Merge branch 'trac2521'
Conflicts:
src/lib/dns/gen-rdatacode.py.in
Mukund Sivaraman [Wed, 8 May 2013 12:06:45 +0000 (17:36 +0530)]
[2850] Include <cerrno> for errno
Mukund Sivaraman [Wed, 8 May 2013 12:05:50 +0000 (17:35 +0530)]
[2850] Simplify the corruption of checksum
Mukund Sivaraman [Wed, 8 May 2013 12:01:06 +0000 (17:31 +0530)]
[2850] Use pre-created test data so that it's not confusing to check
Mukund Sivaraman [Wed, 8 May 2013 11:38:53 +0000 (17:08 +0530)]
[2850] Remove unnecessary use of scoped_ptr
Mukund Sivaraman [Wed, 8 May 2013 11:32:16 +0000 (17:02 +0530)]
[2850] Handle current_filename_ assignment causing an exception
Mukund Sivaraman [Wed, 8 May 2013 11:24:30 +0000 (16:54 +0530)]
[2850] Make getHeader() return the current address of header
It could have been relocated since its construction.
Mukund Sivaraman [Wed, 8 May 2013 11:13:41 +0000 (16:43 +0530)]
[2850] Remove obsolete comment
Mukund Sivaraman [Wed, 8 May 2013 11:00:17 +0000 (16:30 +0530)]
[2850] Fix address name generation
Stephen Morris [Wed, 8 May 2013 10:54:45 +0000 (11:54 +0100)]
[2467] Merge branch 'master' into trac2467
Conflicts:
src/bin/dhcp4/tests/dhcp4_srv_unittest.cc
src/lib/dhcp/tests/iface_mgr_unittest.cc
Tomek Mrugalski [Wed, 8 May 2013 09:30:50 +0000 (11:30 +0200)]
[2898] Compilation fix after recent changes.
Tomek Mrugalski [Wed, 8 May 2013 09:22:40 +0000 (11:22 +0200)]
[2898] pair<a,b> replaced with make_pair
Tomek Mrugalski [Wed, 8 May 2013 09:21:59 +0000 (11:21 +0200)]
[2898] Second part of changes after review
JINMEI Tatuya [Wed, 8 May 2013 07:20:18 +0000 (00:20 -0700)]
[2823-regression] make test_polling_init indepent from ordering of "getstat"s
with multi-module setup, it can sometimes fail with python3.3 due to its
unpredictable hash values (and the internal ordering of dictionaries).
JINMEI Tatuya [Wed, 8 May 2013 07:18:54 +0000 (00:18 -0700)]
[2823-regression] mock mccs.check_command for MyStatsHttpd.
our tests basically shouldn't call this method, but, as commented, it could
still happen on some buggy OSes. we need to work around it.
JINMEI Tatuya [Wed, 8 May 2013 07:16:11 +0000 (00:16 -0700)]
[2823-regression] shutdown MyStatsHttpd running on a separate thread
the dangling threads do not necessarily do harm (test failure, etc),
but show confusing behaviors such as leaked exception. explicit shutdown
should prevent these (for a longer term, we should really stop using threads
for the http-handler tests)
JINMEI Tatuya [Wed, 8 May 2013 03:43:17 +0000 (20:43 -0700)]
[master] use AF_UNIX socket.socket object instead of socket.socketpair()[0]
for "dummy" socket. in python3.1 the latter is of _socket.socket, which
breaks the assumption of a test.
okayed on bind10-dev.
Paul Selkirk [Tue, 7 May 2013 22:12:00 +0000 (18:12 -0400)]
[2521] add 0-length check to DHCID from-wire constructor
JINMEI Tatuya [Tue, 7 May 2013 20:42:40 +0000 (13:42 -0700)]
[2851] untabify
JINMEI Tatuya [Tue, 7 May 2013 20:32:05 +0000 (13:32 -0700)]
[master] tweak TestOSEnv just like stats-httpd_test to suppress log leak
also renamed the stats-httpd_test counterpart; it seemed to be tenntatively
named and left unchanged, so doesn't really make sense for what it does.
these should be trivial, so I'm committing this at my discretion.
JINMEI Tatuya [Tue, 7 May 2013 20:25:37 +0000 (13:25 -0700)]
[master] Merge branch 'trac2823'
JINMEI Tatuya [Tue, 7 May 2013 20:21:51 +0000 (13:21 -0700)]
[2850] style cleanups: spacing, combining short lines
Tomek Mrugalski [Tue, 7 May 2013 17:46:57 +0000 (19:46 +0200)]
[2898] First set of changes after review
JINMEI Tatuya [Tue, 7 May 2013 16:50:00 +0000 (09:50 -0700)]
[2850] minor style cleanups: constify and brace position
Michal 'vorner' Vaner [Tue, 7 May 2013 13:28:36 +0000 (15:28 +0200)]
[2823] Don't use private prefix in local scope
For one, it makes no sense (it won't be visible from outside the
function anyway), for another, it didn't work, because it was called
from different scope (inside the FailingStatsHttpd class) and mangling
the name wrongly.
Thomas Markwalder [Tue, 7 May 2013 13:22:02 +0000 (09:22 -0400)]
[2355] Added logic to bypass large value test for Uint32BitParser on 32-bit
platforms.
JINMEI Tatuya [Tue, 7 May 2013 06:03:40 +0000 (23:03 -0700)]
[2850] unrelated cleanup: make some test methods non public when possible
also clarify TearDown is inherited by explicitly adding 'virtual'.
Naoki Kambe [Tue, 7 May 2013 01:53:50 +0000 (10:53 +0900)]
[master] changelog for #2252
Naoki Kambe [Tue, 7 May 2013 01:48:55 +0000 (10:48 +0900)]
[master] Merge branch 'trac2252'
Naoki Kambe [Tue, 7 May 2013 00:47:56 +0000 (09:47 +0900)]
[2252] wording cleanups, and omission of the repeated same notes
(The original patch is proposed by Jinmei-san.)
JINMEI Tatuya [Tue, 7 May 2013 00:27:01 +0000 (17:27 -0700)]
[2850] style cleanup: added () for returned values
JINMEI Tatuya [Mon, 6 May 2013 23:22:21 +0000 (16:22 -0700)]
[2823] updated test_init_hterr so it also checks close_mccs is called.
JINMEI Tatuya [Mon, 6 May 2013 22:57:09 +0000 (15:57 -0700)]
[2823] use assertIs(Not)None wherever possible
JINMEI Tatuya [Mon, 6 May 2013 22:53:54 +0000 (15:53 -0700)]
[2823] clarify the purpose of mock auth statistics spec and data