]>
git.ipfire.org Git - thirdparty/kea.git/log
Michal 'vorner' Vaner [Fri, 26 Oct 2012 18:15:53 +0000 (20:15 +0200)]
[2209] Don't release the zone table twice
Removing the release from the test, since the segment now destroys it
itself. We can't check all memory is deallocated at that moment in the
test (since we can't do it before the destroy -- it is not deallocated
fully yet, and can't do it after also, since the memory segment doesn't
exist). But that doesn't matter, since the segment checks by assert.
Michal 'vorner' Vaner [Fri, 26 Oct 2012 18:11:40 +0000 (20:11 +0200)]
[2209] Writer for the test segment
Michal 'vorner' Vaner [Fri, 26 Oct 2012 18:09:21 +0000 (20:09 +0200)]
[2209] Test ZoneTableSegmentLocal
And not ZoneTableSegmentTest like before. Testing a mock class (and not
testing the real class) makes no sense.
Michal 'vorner' Vaner [Fri, 26 Oct 2012 17:33:53 +0000 (19:33 +0200)]
[2209] Merge trac2208
Compiles, but tests don't pass. There's something rotten in there.
Conflicts:
src/lib/datasrc/memory/memory_client.cc
src/lib/datasrc/memory/memory_client.h
src/lib/datasrc/memory/zone_table_segment_local.h
src/lib/datasrc/tests/memory/memory_client_unittest.cc
src/lib/datasrc/tests/memory/zone_table_segment_unittest.cc
JINMEI Tatuya [Fri, 26 Oct 2012 16:19:41 +0000 (09:19 -0700)]
[2212] guard death tests with !runningOnValgrind().
JINMEI Tatuya [Fri, 26 Oct 2012 16:14:10 +0000 (09:14 -0700)]
[2212] wording updates to BUILDER_COMMAND_ERROR description
JINMEI Tatuya [Fri, 26 Oct 2012 16:12:29 +0000 (09:12 -0700)]
[2212-2] added an unnecessary return to silence some compilers
Michal 'vorner' Vaner [Fri, 26 Oct 2012 14:21:28 +0000 (16:21 +0200)]
[2209] Typo
Michal 'vorner' Vaner [Fri, 26 Oct 2012 14:08:18 +0000 (16:08 +0200)]
[2209] Rewrite the reload() wrapper
Some people found the previous hard to follow.
Michal 'vorner' Vaner [Fri, 26 Oct 2012 14:01:10 +0000 (16:01 +0200)]
[2209] Hide private type shortcut
Michal 'vorner' Vaner [Fri, 26 Oct 2012 13:55:33 +0000 (15:55 +0200)]
[2209] Rename ZONE_RELOADED
Since it is not used for reloading a zone only. It is now ZONE_SUCCESS.
Tomek Mrugalski [Fri, 26 Oct 2012 13:37:45 +0000 (15:37 +0200)]
[2324] Changes after review.
Marcin Siodelski [Fri, 26 Oct 2012 11:57:42 +0000 (13:57 +0200)]
[2324] Corrected some minor typos.
Naoki Kambe [Tue, 16 Oct 2012 09:43:52 +0000 (18:43 +0900)]
[2298] skip test_do_GET() if XMLParser() is unavailable
skip test_do_GET() if XMLParser() is unavailable on the system. This
is for Ticket #2048 (configure check for pyexpat).
Naoki Kambe [Tue, 16 Oct 2012 09:47:20 +0000 (18:47 +0900)]
[2298] add a unittest using XML validation with XSD
XML validation with XSD by using the lxml module. the lxml module is a
third-party module. so if it is not installed on the system, the unittest using
the validation would be skipped.
Naoki Kambe [Fri, 26 Oct 2012 07:14:22 +0000 (16:14 +0900)]
[2298] use assertGreater() rather than assertTrue()
Naoki Kambe [Fri, 26 Oct 2012 07:16:52 +0000 (16:16 +0900)]
[2298] assert IOError raising instead of StatsHttpdDataError
Naoki Kambe [Mon, 15 Oct 2012 12:14:46 +0000 (21:14 +0900)]
[2298] modify the open_template() method
open_template() throws StatsHttpdDataError instead of IOError when the
specified file is not found. The parent class catches it and returns a
404 status code.
Naoki Kambe [Mon, 15 Oct 2012 12:08:51 +0000 (21:08 +0900)]
[2298] append a Last-Modified header
This is because the server tells browsers that the contents are always
being modified.
Naoki Kambe [Mon, 15 Oct 2012 12:08:09 +0000 (21:08 +0900)]
[2298] return a 500 status code when catching any exception
Naoki Kambe [Fri, 26 Oct 2012 10:02:07 +0000 (19:02 +0900)]
[2298] revert checks of http status codes when requesting XSL URI with some path
This is because in the case the daemon responds a 404 code.
Naoki Kambe [Fri, 26 Oct 2012 10:01:50 +0000 (19:01 +0900)]
[2298] revert checks of http status codes when requesting XSD URI with some path
This is because in the case the daemon responds a 404 code.
Naoki Kambe [Fri, 26 Oct 2012 10:00:22 +0000 (19:00 +0900)]
[2298] modify check_XML_URL_PATH() in test_do_GET()
pass a single itentifier of each item to the check_XML_URL_PATH()
method as a URI.
Naoki Kambe [Fri, 26 Oct 2012 09:58:41 +0000 (18:58 +0900)]
[2298] modify the xsl_handler() method
do not accept any arguments due to unnecessity
Naoki Kambe [Fri, 26 Oct 2012 09:58:09 +0000 (18:58 +0900)]
[2298] modify the xsd_handler() method
do not accept any arguments due to unnecessity
Naoki Kambe [Fri, 26 Oct 2012 09:55:59 +0000 (18:55 +0900)]
[2298] modify the xml_handler() method
The requested URI is divided at the delimiter '/' and the module name
and the top-level item name are extracted if there are. It requests
statistics data and statistics schema of them the the stats daemon. It
builds an xml document by the values returned from the stats daemon.
Naoki Kambe [Tue, 16 Oct 2012 01:41:49 +0000 (10:41 +0900)]
[2298] modify DUMMY_DATA
For consistency with consts in test_utils.py. Modifying for consisting
of time values based on CONST_BASETIME in test_utils.py. Modifying to
counters returned from MockAuth in test_utils.py.
Naoki Kambe [Tue, 16 Oct 2012 02:15:01 +0000 (11:15 +0900)]
[2298] add CONST_BASETIME and use it in MockBoss and MyStats classes
Add fixed BASETIME not depending on the time module. And modify
MockBoss and MockStats classes in order that they return time values
of that. This is for testing b10-stats and b10-stats-httpd.
Naoki Kambe [Tue, 16 Oct 2012 02:15:38 +0000 (11:15 +0900)]
[2298] add a copyright
Naoki Kambe [Mon, 15 Oct 2012 12:18:50 +0000 (21:18 +0900)]
[2298] append a slash at the end of the URI
Naoki Kambe [Mon, 15 Oct 2012 12:07:10 +0000 (21:07 +0900)]
[2298] modify handling the accepted URI
- Do not return a dynamic page when being requested XSD or XSL. So
pass nothing to xsd_handler() or xsl_handler(). Pass path in URI to
xml_handler().
- XML_URL_PATH is handled as a directory. When XML_URL_PATH which
doesn't ends with '/' is requested, the request is redirected to
XML_URL_PATH + '/'.
Naoki Kambe [Mon, 15 Oct 2012 13:07:30 +0000 (22:07 +0900)]
[2298] modify consts related to XML, XSD, and XSL
change URIs of XSD and XSL to fixed ones
Naoki Kambe [Fri, 26 Oct 2012 07:21:53 +0000 (16:21 +0900)]
[2298] rename the parameter name for template
Naoki Kambe [Fri, 26 Oct 2012 09:42:12 +0000 (18:42 +0900)]
[2298] update HTTP status codes due to the change of xsl_handler()
Naoki Kambe [Mon, 15 Oct 2012 12:30:48 +0000 (21:30 +0900)]
[2298] modify test_xsl_handler()
Remove the obsoleted content and add checks for items in the xsl
document which can be also in the xml document.
Naoki Kambe [Mon, 15 Oct 2012 13:01:36 +0000 (22:01 +0900)]
[2298] modify test_do_GET() and check_XSL_URL_PATH()
This change is due to the change of the xsl format displayed by
b10-stats-httpd.
Naoki Kambe [Tue, 16 Oct 2012 04:16:54 +0000 (13:16 +0900)]
[2298] modify test_xsl_handler()
Remove the obsoleted content and add checks for items in the xsl document which
can be also in the xml document.
Naoki Kambe [Mon, 15 Oct 2012 12:04:49 +0000 (21:04 +0900)]
[2298] modify the xsl template file
The XSL contents are fixed.
Naoki Kambe [Fri, 26 Oct 2012 09:29:19 +0000 (18:29 +0900)]
[2298] update HTTP status codes due to the change of xsl_handler()
Naoki Kambe [Fri, 26 Oct 2012 07:21:32 +0000 (16:21 +0900)]
[2298] rename the parameter name for template
Naoki Kambe [Tue, 16 Oct 2012 06:37:28 +0000 (15:37 +0900)]
[2298] modify test_xsd_handler()
Remove the obsoleted content and add checks for elements in the xsd document.
Naoki Kambe [Mon, 15 Oct 2012 12:59:53 +0000 (21:59 +0900)]
[2298] modify test_do_GET() and check_XSD_URL_PATH()
This change is due to the change of the xsd format displayed by
b10-stats-httpd.
Naoki Kambe [Tue, 16 Oct 2012 04:15:49 +0000 (13:15 +0900)]
[2298] modify the xsd_handler() method
xsd_handler() doesn't accept any arguments such as a module name and a item
name. It replaces variable strings in the template and displays it.
Naoki Kambe [Mon, 15 Oct 2012 12:04:44 +0000 (21:04 +0900)]
[2298] modify the xsd template file
The XSD contents are fixed.
Naoki Kambe [Tue, 16 Oct 2012 01:24:57 +0000 (10:24 +0900)]
[2298] add constants of XML namespaces for using in tests
Naoki Kambe [Fri, 26 Oct 2012 08:58:37 +0000 (17:58 +0900)]
[2298] add some consts (xml root element and attributes)
Naoki Kambe [Mon, 15 Oct 2012 12:22:32 +0000 (21:22 +0900)]
[2298] update test_xml_handler()
Remove the obsoleted content and add checks for items in the xml document.
Naoki Kambe [Fri, 26 Oct 2012 09:09:59 +0000 (18:09 +0900)]
[2298] modify test_do_GET() and check_XML_URL_PATH()
This change is due to the change of the xml format displayed by
b10-stats-httpd.
Naoki Kambe [Fri, 26 Oct 2012 10:25:02 +0000 (19:25 +0900)]
[2298] modify the xml_handler() method
Build an XML document with a new format by module_name and item_name. Each
item is a item tag of the XML document. Each item attribute in statistics spec
is an attribute in the 'item' element. dict-type and list-type values in python
are not displayed in the XML document as it is. They are changed to empty
strings. Then actual values are displayed in the lower level under them.
Mukund Sivaraman [Fri, 26 Oct 2012 05:00:09 +0000 (10:30 +0530)]
[2369] Add InputSource helper class (work-in-progress)
Mukund Sivaraman [Fri, 26 Oct 2012 06:33:28 +0000 (12:03 +0530)]
[master] Enable CondVarTest.destroyWhileWait where it's possible to run it
JINMEI Tatuya [Fri, 26 Oct 2012 06:15:39 +0000 (23:15 -0700)]
[2370] defined MasterLexer and its Token classes, added main methods and tests
Mukund Sivaraman [Fri, 26 Oct 2012 03:14:57 +0000 (08:44 +0530)]
[master] Disable MutexTest.destoryLocked on Solaris
JINMEI Tatuya [Fri, 26 Oct 2012 03:14:33 +0000 (20:14 -0700)]
[2297] Merge branch 'trac2297' of ssh://git.bind10.isc.org/var/bind10/git/bind10 into trac2297
ommit.
JINMEI Tatuya [Fri, 26 Oct 2012 03:09:50 +0000 (20:09 -0700)]
[2297] simply use timedelta.str() for update_desc().
some of the corresponding tests were just removed because the detailed
behavior does nto matter much any more, and in this case there can be
margin errors.
JINMEI Tatuya [Fri, 26 Oct 2012 02:55:16 +0000 (19:55 -0700)]
[2297] introduce a filter for process_rename test to prevent false positives
isc-sysinfo (now) isn't expected to be renamed, so shouldn't be tested.
Mukund Sivaraman [Fri, 26 Oct 2012 01:21:21 +0000 (06:51 +0530)]
[2297] Update .gitignore
Mukund Sivaraman [Fri, 26 Oct 2012 01:20:21 +0000 (06:50 +0530)]
[2297] Return output value directly
Mukund Sivaraman [Fri, 26 Oct 2012 01:19:58 +0000 (06:49 +0530)]
[2297] Make some minor readability and typo fixes in comments
Mukund Sivaraman [Fri, 26 Oct 2012 00:37:42 +0000 (06:07 +0530)]
[2360] Update wording in API doc comment for RRset::toText()
Mukund Sivaraman [Fri, 26 Oct 2012 00:03:30 +0000 (05:33 +0530)]
Merge branch 'master' into trac2357
Mukund Sivaraman [Thu, 25 Oct 2012 23:57:37 +0000 (05:27 +0530)]
[2357] Wrap comments above 80 char
JINMEI Tatuya [Thu, 25 Oct 2012 23:50:20 +0000 (16:50 -0700)]
[2209] style: combine two short lines
JINMEI Tatuya [Thu, 25 Oct 2012 23:07:00 +0000 (16:07 -0700)]
[2209] style fixes: folded long lines, constify, ptr vs bool
Mukund Sivaraman [Thu, 25 Oct 2012 22:54:07 +0000 (04:24 +0530)]
Merge branch 'master' into trac2236
Conflicts:
src/bin/auth/auth_srv.cc
src/bin/auth/tests/auth_srv_unittest.cc
JINMEI Tatuya [Thu, 25 Oct 2012 22:19:58 +0000 (15:19 -0700)]
[2212] some minor cleanups: removed unnecessary return; wording/editorial fix
JINMEI Tatuya [Thu, 25 Oct 2012 21:41:18 +0000 (14:41 -0700)]
[2212] internal refactoring with a helper method for readability.
JINMEI Tatuya [Thu, 25 Oct 2012 21:27:27 +0000 (14:27 -0700)]
[2212] use the new (staged) version of zone loading API from the builder thread
JINMEI Tatuya [Thu, 25 Oct 2012 21:02:20 +0000 (14:02 -0700)]
[2212] added one more necessary header file
JINMEI Tatuya [Tue, 23 Oct 2012 07:23:10 +0000 (00:23 -0700)]
[2212] also ported loadZoneWithoutDataSrc test.
JINMEI Tatuya [Tue, 23 Oct 2012 07:08:16 +0000 (00:08 -0700)]
[2212] reorder log messages
JINMEI Tatuya [Tue, 23 Oct 2012 07:07:39 +0000 (00:07 -0700)]
[2212] added log for completion of load zone
JINMEI Tatuya [Tue, 23 Oct 2012 07:01:59 +0000 (00:01 -0700)]
[2212] make sure catching internal error exceptions.
with fixing trivial conflicts:
src/bin/auth/tests/datasrc_clients_builder_unittest.cc
JINMEI Tatuya [Tue, 23 Oct 2012 06:46:53 +0000 (23:46 -0700)]
[2212] added two untested reload() cases: ZONE_NOT_CACHED and CACHE_DISABLED
JINMEI Tatuya [Tue, 23 Oct 2012 06:25:47 +0000 (23:25 -0700)]
[2212] comment update
JINMEI Tatuya [Tue, 23 Oct 2012 06:22:26 +0000 (23:22 -0700)]
[2212] ported command test's loadZoneInvalidParams
JINMEI Tatuya [Tue, 23 Oct 2012 06:03:02 +0000 (23:03 -0700)]
[2212] ported command test's loadBrokenZone test.
now catch exceptions from reload().
JINMEI Tatuya [Tue, 23 Oct 2012 05:53:32 +0000 (22:53 -0700)]
[2212] ported command tests' loadZoneSQLite3.
note: I simply removed the last error case. Such a broken config isn't
installed anyway, so checking after that doesn't seem to make much sense.
JINMEI Tatuya [Tue, 23 Oct 2012 05:22:16 +0000 (22:22 -0700)]
[2212] supported some part of loadzone command porting command unittests.
Fixed minor conflicts:
src/bin/auth/datasrc_clients_mgr.h
JINMEI Tatuya [Thu, 25 Oct 2012 21:47:11 +0000 (14:47 -0700)]
[2212] Merge branch 'trac2209' into trac2212-2
Michal 'vorner' Vaner [Thu, 25 Oct 2012 18:58:37 +0000 (20:58 +0200)]
[2209] Make ConfigurableClientList::reload a wrapper
Since the function is to reload and we provide an object that can
reload, we just get one and call it. It is just to avoid duplicate code.
Michal 'vorner' Vaner [Thu, 25 Oct 2012 18:43:38 +0000 (20:43 +0200)]
[2209] Provide the callbacks to load data
So now the loading works correctly (at least as the tests say).
Michal 'vorner' Vaner [Thu, 25 Oct 2012 18:42:39 +0000 (20:42 +0200)]
[2209] Pass objects by const reference
Passing it as const RRClass (and making a copy) makes no real sense. It
looks more expected with the reference and might even be slightly
faster.
Marcin Siodelski [Thu, 25 Oct 2012 18:05:29 +0000 (20:05 +0200)]
[2318] Do not allow zero and negative option codes.
Marcin Siodelski [Thu, 25 Oct 2012 16:35:07 +0000 (18:35 +0200)]
[2318] Renamed some of the unit tests.
Marcin Siodelski [Thu, 25 Oct 2012 16:33:17 +0000 (18:33 +0200)]
[2318] Added full unit tests coverage for option data parser.
Jelte Jansen [Thu, 25 Oct 2012 16:29:32 +0000 (18:29 +0200)]
[2357] clean up a few #endif comments
Jelte Jansen [Thu, 25 Oct 2012 16:13:52 +0000 (18:13 +0200)]
[2357] additional __ fixes
in generator for rdataclass.h, and updated a doxygen comment
Marcin Siodelski [Thu, 25 Oct 2012 13:34:57 +0000 (15:34 +0200)]
[2318] Parsing and setting option data.
Tomek Mrugalski [Thu, 25 Oct 2012 13:22:31 +0000 (15:22 +0200)]
[2324] Documentation updated, {Hashed,Random}Allocator skeletons implemented.
Jeremy C. Reed [Thu, 25 Oct 2012 12:18:22 +0000 (07:18 -0500)]
[master]Merge branch 'master' of ssh://git.bind10.isc.org//var/bind10/git/bind10
Yoshitaka Aharen [Thu, 25 Oct 2012 12:08:16 +0000 (21:08 +0900)]
[2155] remove surrounding block
Naoki Kambe [Mon, 15 Oct 2012 12:16:06 +0000 (21:16 +0900)]
[2298] add tests for item_name_list()
Naoki Kambe [Tue, 16 Oct 2012 04:07:27 +0000 (13:07 +0900)]
[2298] add a method item_name_list()
Naoki Kambe [Thu, 25 Oct 2012 12:00:58 +0000 (21:00 +0900)]
[2298] update copyrights
Yoshitaka Aharen [Thu, 25 Oct 2012 11:57:16 +0000 (20:57 +0900)]
[2155] update test case comments
Yoshitaka Aharen [Thu, 25 Oct 2012 11:48:21 +0000 (20:48 +0900)]
[2155] add notes for SIG(0)
Tomek Mrugalski [Thu, 25 Oct 2012 11:46:02 +0000 (13:46 +0200)]
[2324] Developer's Guide section written
Yoshitaka Aharen [Thu, 25 Oct 2012 11:40:33 +0000 (20:40 +0900)]
[2155] call reset() instead of initializer
Yoshitaka Aharen [Thu, 25 Oct 2012 11:36:08 +0000 (20:36 +0900)]
[2155] removed inline keywords from methods inside class definition