]>
git.ipfire.org Git - thirdparty/kea.git/log
JINMEI Tatuya [Thu, 5 Apr 2012 04:40:25 +0000 (21:40 -0700)]
[1791] initial refactoring: extracted createSQLite3Client so it can be shared.
the plan is to use it in in-memory tests for this branch. No functional change
or add/delete test cases yet.
JINMEI Tatuya [Wed, 4 Apr 2012 22:30:12 +0000 (15:30 -0700)]
[master] changelog for #1773
JINMEI Tatuya [Wed, 4 Apr 2012 22:28:29 +0000 (15:28 -0700)]
[master] Merge branch 'trac1773new'
JINMEI Tatuya [Wed, 4 Apr 2012 22:27:21 +0000 (15:27 -0700)]
[master] Revert "[master] Merge branch 'trac1773'"
This was an older version of the branch, and wasn't expected to be a
merge target. I'll revert it and then merge the right branch.
JINMEI Tatuya [Wed, 4 Apr 2012 22:09:19 +0000 (15:09 -0700)]
[master] Merge branch 'trac1773'
JINMEI Tatuya [Wed, 4 Apr 2012 21:43:57 +0000 (14:43 -0700)]
[master] Merge branch 'trac1820'
JINMEI Tatuya [Wed, 4 Apr 2012 21:41:53 +0000 (14:41 -0700)]
[master] changelog for #324
JINMEI Tatuya [Wed, 4 Apr 2012 21:38:14 +0000 (14:38 -0700)]
[master] Merge branch 'trac324new2' with fixing conflict for
src/lib/python/isc/notify/tests/testdata/test.sqlite3
Mukund Sivaraman [Wed, 4 Apr 2012 11:47:53 +0000 (17:17 +0530)]
[master] Update .gitignore files
JINMEI Tatuya [Tue, 3 Apr 2012 23:38:53 +0000 (16:38 -0700)]
[1820] removed constructors concrete DNSServer classes with addre+port.
This is part of the cleanup. as we removed the corresponding
interface at DNSService, no one now uses these constructors.
JINMEI Tatuya [Tue, 3 Apr 2012 23:12:05 +0000 (16:12 -0700)]
[master] make sure a large int constant is unsigned.
this will fix build failure on some systems
JINMEI Tatuya [Tue, 3 Apr 2012 21:51:35 +0000 (14:51 -0700)]
[1773] missing initialization
JINMEI Tatuya [Tue, 3 Apr 2012 21:39:06 +0000 (14:39 -0700)]
[master] Merge branch 'trac1746'
JINMEI Tatuya [Tue, 3 Apr 2012 21:30:38 +0000 (14:30 -0700)]
[324] make sure the temporary DB file for zonemgr test is always cleaned up.
Mukund Sivaraman [Thu, 29 Mar 2012 20:22:23 +0000 (01:52 +0530)]
[1220] Add testcase which checks use of trailing slashes with indices
Trailing slashes are supposed to work. It should not result in an error
like this:
> config show Resolver/listen_on
Resolver/listen_on[0]/address "::1" string
Resolver/listen_on[0]/port 53 integer
> config show Resolver/listen_on/
Error: Resolver/listen_on/[0]/address not found
Bug #1220 was fixed as a part of bug #1649 (see commit
b31b7eff36397f30f00d7c31805bf7634395dfa8 ). We just add another testcase
for bug #1220.
Jelte Jansen [Tue, 3 Apr 2012 09:09:47 +0000 (11:09 +0200)]
[master] update changelog for merge of 1626
JSON parser improvements
Jelte Jansen [Tue, 3 Apr 2012 08:39:58 +0000 (10:39 +0200)]
[master] Merge branch 'trac1626'
Michal 'vorner' Vaner [Tue, 3 Apr 2012 08:10:48 +0000 (10:10 +0200)]
Changelog for #1715
Michal 'vorner' Vaner [Tue, 3 Apr 2012 07:50:38 +0000 (09:50 +0200)]
Merge #1715
Crash of bindctl when the config unset command was invoked. The code of
the command was missing, probably never implemented and obviously never
tested.
JINMEI Tatuya [Tue, 3 Apr 2012 06:41:55 +0000 (23:41 -0700)]
[1746] removed SQLite3Accessor::getRecordDiff, and adjusted the test as such.
it was intended to be a short term hack until we implement getDiffs(),
but apparently we forgot to complete the cleanup task. So this is just an
originally planned cleanup.
note that there was a bug in the test code. The change to diff_add_a_data
is not to hide a problem in the tested code, but it's a fix to the test's bug.
JINMEI Tatuya [Tue, 3 Apr 2012 01:13:48 +0000 (18:13 -0700)]
[1820] use the ScopedSocket wrapper throughout the code for more safety.
JINMEI Tatuya [Tue, 3 Apr 2012 01:05:27 +0000 (18:05 -0700)]
[1820] avoid using the removed DNSService interfaces.
also made other cleanups, making it the code more exception safe.
JINMEI Tatuya [Tue, 3 Apr 2012 01:01:18 +0000 (18:01 -0700)]
[1820] removed DNSService::addServer() as they were mostly unused.
Likewise, some of the constructors of DNSService were removed too.
the test code specific to the removed interfaces were also removed.
JINMEI Tatuya [Mon, 2 Apr 2012 22:28:43 +0000 (15:28 -0700)]
[master] indentation fix.
JINMEI Tatuya [Mon, 2 Apr 2012 22:17:38 +0000 (15:17 -0700)]
[1773] comment updates due to interface changes as part of fix.
JINMEI Tatuya [Tue, 13 Mar 2012 07:01:53 +0000 (00:01 -0700)]
[1773new] [1773] initial fix for clang++/Lion build failure
JINMEI Tatuya [Tue, 13 Mar 2012 07:01:53 +0000 (00:01 -0700)]
[1773] initial fix for clang++/Lion build failure
JINMEI Tatuya [Mon, 2 Apr 2012 20:38:28 +0000 (13:38 -0700)]
[master] Merge branch 'trac1535'
JINMEI Tatuya [Mon, 2 Apr 2012 20:31:10 +0000 (13:31 -0700)]
[1535] Merge branch 'trac1535' of ssh://git.bind10.isc.org/var/bind10/git/bind10 into trac1535
JINMEI Tatuya [Mon, 2 Apr 2012 18:17:54 +0000 (11:17 -0700)]
[324] use a much larger major version (1000) for "newschema" test DBs.
it will reduce the risk of getting conflict soon due to schema updates.
JINMEI Tatuya [Mon, 2 Apr 2012 18:13:21 +0000 (11:13 -0700)]
[324new2] renamed major/minor version variables so they are more consistent.
JINMEI Tatuya [Mon, 2 Apr 2012 18:07:50 +0000 (11:07 -0700)]
[324] make sure initial SQLite3 DB creation is exception safe.
this is not really an issue of this task, and I believe we should soon stop
creating the schema in the accessor context in the first place, but the bug
is real so I fixed it anyway. Assuming this creation code and the older
version of implementation will be gone soon, I simply duplicated the mostly
same code in both old and new implementations.
Also, it seemed extremely difficult (I'd say it's effectively impossible) to
test these cases. I couldn't come up with any reasonable way to test them,
so I didn't add any test.
Jelte Jansen [Mon, 2 Apr 2012 13:36:04 +0000 (15:36 +0200)]
[1626] move some more json tests around
Jelte Jansen [Mon, 2 Apr 2012 13:16:27 +0000 (15:16 +0200)]
[1626] use one list of 'whitespace' chars
and even more tests
Moved a couple of 'basic' tests out of 'escape' and to 'to_and_from_string' test
Mukund Sivaraman [Mon, 2 Apr 2012 11:53:09 +0000 (17:23 +0530)]
[1626] Add more testcases
Jelte Jansen [Mon, 2 Apr 2012 10:47:21 +0000 (12:47 +0200)]
[master] update changelog for merge of #1535
Jelte Jansen [Mon, 2 Apr 2012 09:45:16 +0000 (11:45 +0200)]
[master] Merge branch 'trac1535'
Jelte Jansen [Mon, 2 Apr 2012 09:44:42 +0000 (11:44 +0200)]
[1535] use OutOfZone instead of InvalidParameter in findNSEC3()
Jelte Jansen [Mon, 2 Apr 2012 08:50:26 +0000 (10:50 +0200)]
[1626] check string termination and whitespace fix
whitespace 'outside' of elements is skipped, now including \r and \b
Mukund Sivaraman [Mon, 2 Apr 2012 06:51:07 +0000 (12:21 +0530)]
[1626] Add some more testcases
JINMEI Tatuya [Sat, 31 Mar 2012 00:03:31 +0000 (17:03 -0700)]
[master] trivial editorial cleanup: removed spaces in a blank line.
JINMEI Tatuya [Fri, 30 Mar 2012 18:14:06 +0000 (11:14 -0700)]
[1535] (editorial) combined two shorter lines into one.
Jelte Jansen [Fri, 30 Mar 2012 15:45:45 +0000 (17:45 +0200)]
[1535] renamed OutOfZoneFind to OutOfZone
And remove the memory-datasrc specific one
Jelte Jansen [Fri, 30 Mar 2012 14:54:01 +0000 (16:54 +0200)]
[1535] address review comments
- removed superfluous toText() calls in out-of-zone exception creation
- moved in-memory out-of-zone check to be part of findNode instead of separate check in find()
- added out-of-zone check to addAdditional lookup (and don't lookup unless in zone)
- removed FIND_DEFAULT parameters in unit tests (they are default values)
- change notify_out sqlite test data to have out-of-zone-but-known NS target
Mukund Sivaraman [Fri, 30 Mar 2012 10:33:30 +0000 (16:03 +0530)]
[master] Move cppcheck suppressions to the source files (inline)
This fixes a cppcheck regression introduced in commit
48cfa00bb988cfeebab4e6ac7ae440cd685137e5 (I think), which caused line
numbers to change.
Jelte Jansen [Fri, 30 Mar 2012 09:14:57 +0000 (11:14 +0200)]
[1626] fix non-printable escaping in json conv
Mukund Sivaraman [Thu, 29 Mar 2012 22:17:06 +0000 (03:47 +0530)]
[1627] Add comment about use of try-catch blocks
Mukund Sivaraman [Thu, 29 Mar 2012 22:15:26 +0000 (03:45 +0530)]
[1627] Add a couple more testcases
* Case when no file is specified
* Case where both origin and file are not specified
Mukund Sivaraman [Thu, 29 Mar 2012 22:11:23 +0000 (03:41 +0530)]
[master] Fix testcase name
Mukund Sivaraman [Thu, 29 Mar 2012 22:09:02 +0000 (03:39 +0530)]
[1627] Fix type of exception thrown in testcase
NameParserExceptions are now caught and AuthConfigError is thrown.
Mukund Sivaraman [Thu, 29 Mar 2012 22:02:37 +0000 (03:32 +0530)]
[1627] Rewrite code to use local variables
JINMEI Tatuya [Thu, 29 Mar 2012 20:59:38 +0000 (13:59 -0700)]
[1627] (editorial) folded long lines
JINMEI Tatuya [Thu, 29 Mar 2012 20:32:49 +0000 (13:32 -0700)]
[1627] (editorial) folded long lines
Mukund Sivaraman [Tue, 27 Mar 2012 10:32:35 +0000 (16:02 +0530)]
[1627] Add the namestring that triggers the exception to the message
This is so that users see what name caused problems in the log.
Mukund Sivaraman [Tue, 27 Mar 2012 07:36:18 +0000 (13:06 +0530)]
[1627] Unify testcases for NameParserException checks
Mukund Sivaraman [Tue, 27 Mar 2012 07:03:38 +0000 (12:33 +0530)]
[1627] Check for empty origin and file in config, and throw with more relevant error msg
JINMEI Tatuya [Mon, 26 Mar 2012 22:17:11 +0000 (15:17 -0700)]
[1627] fixed some style issues: untabify, position of '*', fold long lines.
Mukund Sivaraman [Mon, 26 Mar 2012 12:18:49 +0000 (17:48 +0530)]
bug #1627: Update error message
Mukund Sivaraman [Mon, 26 Mar 2012 12:03:25 +0000 (17:33 +0530)]
bug #1627: Generate better error messages when origin is not specified
Mukund Sivaraman [Mon, 26 Mar 2012 12:02:16 +0000 (17:32 +0530)]
bug #1627: Rewrite code to use NameParserException
Mukund Sivaraman [Mon, 26 Mar 2012 11:59:47 +0000 (17:29 +0530)]
bug #1627: Add common base class for name parser exceptions
JINMEI Tatuya [Fri, 30 Mar 2012 08:06:50 +0000 (01:06 -0700)]
[324] missing EXTRA_DIST
JINMEI Tatuya [Fri, 30 Mar 2012 07:45:47 +0000 (00:45 -0700)]
[324] make sure dbutil is run only when the DB file exists.
otherwise make install incorrectly fails for a clean install.
JINMEI Tatuya [Fri, 30 Mar 2012 07:29:35 +0000 (00:29 -0700)]
[324] cleanup: removed tests checking broken DB missing "diffs" table.
now this scenario shouldn't happen (unless the operator intentionally creates
such DB by hand) because we increased the major version. These tests
require manually crafted DB files, and I don't think it worth the overhead.
JINMEI Tatuya [Fri, 30 Mar 2012 07:29:12 +0000 (00:29 -0700)]
[324] cleanup: sorted messages. (no content change)
JINMEI Tatuya [Fri, 30 Mar 2012 07:09:44 +0000 (00:09 -0700)]
[324] use the dbutil script for pre-compatibility checker.
sqlite3-difftbl-check.py is now unnecessary, so has been removed.
JINMEI Tatuya [Fri, 30 Mar 2012 06:58:31 +0000 (23:58 -0700)]
[324] added tests for different schema versions for sqlite3_ds.
this is mostly retired, but we are still using it for the current loadzone
script. so I re-enabled the test, removed old test stuff, and added this
new test case.
JINMEI Tatuya [Fri, 30 Mar 2012 06:40:17 +0000 (23:40 -0700)]
[324] added test cases for different SQLite3 schema versions.
also made a minor cleanup: use char* instead of string in the namespace level.
it should be more robust against initialization fiasco.
JINMEI Tatuya [Fri, 30 Mar 2012 04:34:54 +0000 (21:34 -0700)]
[324] upgraded all test SQLite3 data to schema version 2.0
(except for some "intentionally broken" ones). these were semi-automatically
convered by b10-dbutil. "nodiffs" needed to be tweaked by hand after upgrade
for their test. and all unit/system/lettuce tests now passed.
JINMEI Tatuya [Fri, 30 Mar 2012 04:25:20 +0000 (21:25 -0700)]
[324] fixed typo in schema def, and make sure setting the minor version.
JINMEI Tatuya [Fri, 30 Mar 2012 04:24:23 +0000 (21:24 -0700)]
[324] fixed typo in the new schema definition, and make sure set minor version.
JINMEI Tatuya [Fri, 30 Mar 2012 01:06:26 +0000 (18:06 -0700)]
[324] re-increased the assumed latest version dbutil (to 2.0).
test cases that rely on the latest version and were temporarily disabled
were now re-enabled.
JINMEI Tatuya [Fri, 30 Mar 2012 00:55:59 +0000 (17:55 -0700)]
[324] make sure latest SQLite3 version (2.0) will be used on creation.
also, in sqlite3 accessor and the old data source API, check both the
major and minor versions, log any mismatches, and throw if major doesn't
match. right now there's no test for it, which is bad, but this seems to
be best way forward from the given patch.
JINMEI Tatuya [Thu, 29 Mar 2012 22:51:28 +0000 (15:51 -0700)]
[324new2] Merge branch 'trac324new' into trac324new2
JINMEI Tatuya [Thu, 29 Mar 2012 22:26:42 +0000 (15:26 -0700)]
[1535] (editorial) folded long lines
Mukund Sivaraman [Thu, 29 Mar 2012 20:36:39 +0000 (02:06 +0530)]
[master] Add .gitignore files
Jelte Jansen [Thu, 29 Mar 2012 16:07:50 +0000 (18:07 +0200)]
[1626] remove wrong comment line
Jelte Jansen [Thu, 29 Mar 2012 15:56:30 +0000 (17:56 +0200)]
[1626] do not escape forward slash in toJSON
Jeremy C. Reed [Thu, 29 Mar 2012 15:14:35 +0000 (10:14 -0500)]
[master]Revert "[master] Show testnames when running Python unit tests"
This reverts commit
6a9dbeff7d28a8ef91ceddff5dbcdef9a7d1452e .
Most builder systems use Python 3.1.
This verbosity feature was added in Python 3.2.
Jelte Jansen [Thu, 29 Mar 2012 15:10:45 +0000 (17:10 +0200)]
[1626] escape JSON strings correctly
Jelte Jansen [Thu, 29 Mar 2012 13:20:50 +0000 (15:20 +0200)]
[1535] improve OutOfZoneFind text and docstring
Mukund Sivaraman [Tue, 27 Mar 2012 08:32:00 +0000 (14:02 +0530)]
[master] Show testnames when running Python unit tests
Mukund Sivaraman [Tue, 27 Mar 2012 08:20:39 +0000 (13:50 +0530)]
bug #1819: Remove duplicated code
Jelte Jansen [Thu, 29 Mar 2012 12:49:15 +0000 (14:49 +0200)]
[1535] make ZoneFinder::find throw on out-of-zone query
Added new OutOfZoneFind exception, which is thrown (instead of NXDOMAIN result) when zonefinder::find() is called for an out-of-zone name (normally this should not happen; the zonefinder object is itself the result of a call to findZone()
JINMEI Tatuya [Wed, 28 Mar 2012 21:00:03 +0000 (14:00 -0700)]
[master] Merge branch 'trac1772'
Jeremy C. Reed [Wed, 28 Mar 2012 20:23:04 +0000 (15:23 -0500)]
[master] disable SQLite3Update.rollbackFailure test
see ticket #1845
Jeremy C. Reed [Wed, 28 Mar 2012 19:56:56 +0000 (14:56 -0500)]
[master]Merge branch 'master' of ssh://git.bind10.isc.org/var/bind10/git/bind10
Jeremy C. Reed [Wed, 28 Mar 2012 17:03:59 +0000 (12:03 -0500)]
[master] add Mukund to authors.bind.
Jeremy C. Reed [Wed, 28 Mar 2012 17:00:59 +0000 (12:00 -0500)]
[master] changelog maintenance
add date for
20120329 release
use a tab before the keyword type.
use two tabs before the committer username.
Jeremy C. Reed [Wed, 28 Mar 2012 16:44:01 +0000 (11:44 -0500)]
[master] regenerate xml from mes files
Jeremy C. Reed [Wed, 28 Mar 2012 16:42:38 +0000 (11:42 -0500)]
[master] regen manpages
Jeremy C. Reed [Wed, 28 Mar 2012 15:33:42 +0000 (10:33 -0500)]
[master] add a git commit reference
But not specific for the entire merge
Jeremy C. Reed [Wed, 28 Mar 2012 15:30:25 +0000 (10:30 -0500)]
[trac1732] add changelog entry
Jelte Jansen [Wed, 28 Mar 2012 15:25:01 +0000 (17:25 +0200)]
[1535] do find_zone for each NS address in notify lib
Jeremy C. Reed [Wed, 28 Mar 2012 15:12:14 +0000 (10:12 -0500)]
[trac1732] datasource type is required
This was copied from manpage so fix there.
Noticed by jelte. And I confirmed:
2012-03-28 11:07:43.931 ERROR [b10-auth.auth] AUTH_CONFIG_UPDATE_FAIL update of configuration failed: Missing data source type
Jeremy C. Reed [Wed, 28 Mar 2012 14:55:14 +0000 (09:55 -0500)]
[trac1732] more doc work for loading zones
Add more examples and explanations about in-memory.
Be clear again that b10-loadzone is sqlite3.
Jeremy C. Reed [Wed, 28 Mar 2012 14:15:11 +0000 (09:15 -0500)]
[trac1732] remove redundant note about IN class
Jeremy C. Reed [Wed, 28 Mar 2012 14:12:04 +0000 (09:12 -0500)]
[trac1732] minor docbook tags formatting changes
Jeremy C. Reed [Wed, 28 Mar 2012 14:08:38 +0000 (09:08 -0500)]
[trac1732] add a single section id
TODO: add them for all sections in table of contents for linking
Jeremy C. Reed [Wed, 28 Mar 2012 14:05:46 +0000 (09:05 -0500)]
[trac1732] more in-memory datasource docs
Some cleanup, formatting tags added.
Change example from single configuration step (in JSON) to multiple
configuration commands.
More examples.