]>
git.ipfire.org Git - thirdparty/kea.git/log
JINMEI Tatuya [Tue, 19 Feb 2013 18:30:09 +0000 (10:30 -0800)]
[2676] some more unrelated editorial cleanups.
just happen to notice them in review, and since these files will be updated
this is probably a good opportunity to fix them with the branch.
JINMEI Tatuya [Tue, 19 Feb 2013 17:58:19 +0000 (09:58 -0800)]
[2676] editorial cleanup: removed unnecessary backslash
Jeremy C. Reed [Tue, 19 Feb 2013 17:50:00 +0000 (11:50 -0600)]
[master] remove generated file from dist tarball
Don't include example.zone test data file in dist tarball.
It is generated from an .in file via ./configure.
This was noticed by emhn during Debian packaging.
(distclean created a source different than extract tarball.)
I didn't get okay, but I mentioned my patch on jabber.
I tested on one system. This seems to be trivial.
JINMEI Tatuya [Tue, 19 Feb 2013 17:37:03 +0000 (09:37 -0800)]
[2676] remove the comment about using "protected" member in __notify_update.
the revised code eliminated its use as a side effect.
JINMEI Tatuya [Tue, 19 Feb 2013 17:36:26 +0000 (09:36 -0800)]
[2676] indentation fix
Jeremy C. Reed [Tue, 19 Feb 2013 14:08:55 +0000 (08:08 -0600)]
[master] fix case in acronym
(noticed when another fix was suggested for same line)
Shane Kerr [Tue, 19 Feb 2013 13:58:35 +0000 (14:58 +0100)]
Some starting questions for recursive resolver research.
Mukund Sivaraman [Tue, 19 Feb 2013 13:02:45 +0000 (18:32 +0530)]
[2641] Fix __init__() args
Shane Kerr [Tue, 19 Feb 2013 12:33:43 +0000 (13:33 +0100)]
Typo fixes
Jelte Jansen [Tue, 19 Feb 2013 10:46:23 +0000 (11:46 +0100)]
[2669] Update check_valgrind.h documentation
Michal 'vorner' Vaner [Tue, 19 Feb 2013 10:04:07 +0000 (11:04 +0100)]
[2676] (minor) Explain a FIXME comment
Michal 'vorner' Vaner [Tue, 19 Feb 2013 09:59:46 +0000 (10:59 +0100)]
[2676] Translate to the correct exception
If the remote is not there, it's not "Data error"
Michal 'vorner' Vaner [Tue, 19 Feb 2013 09:29:57 +0000 (10:29 +0100)]
[2676] Remove unused variable
Michal 'vorner' Vaner [Tue, 19 Feb 2013 09:19:20 +0000 (10:19 +0100)]
[2676] (minor) Comment clarification
Michal 'vorner' Vaner [Tue, 19 Feb 2013 09:12:59 +0000 (10:12 +0100)]
[2676] Error when missing ConfigManager
In the code before refactoring, when the CfgMgr wasn't there, it did a
SessionTimeout. Now the RPCRecipientMissing is raised instead, but as it
is subclass of RPCError, we need to exclude it from the error ignoring.
Actually, the error ignoring itself is very questionable thing, but it
is as it was before.
Michal 'vorner' Vaner [Tue, 19 Feb 2013 09:09:31 +0000 (10:09 +0100)]
[2676] Make the try-except block smaller
As the rpc_call is the only place the exception can be raised from, this
is equivalent, just cleaner.
Michal 'vorner' Vaner [Tue, 19 Feb 2013 08:53:01 +0000 (09:53 +0100)]
[2676] Fix FIXME
According to the notes in the review, we need to wait for the answer.
Michal 'vorner' Vaner [Tue, 19 Feb 2013 08:50:15 +0000 (09:50 +0100)]
[2676] Reuse constants for remote loadzone command
Michal 'vorner' Vaner [Tue, 19 Feb 2013 08:38:41 +0000 (09:38 +0100)]
[2676] Remove the notion of timeouts from the message docs
Remove the part of the DDNS_UPDATE_NOTIFY_FAIL message description,
complaining about how bad the timeouts are. The timeouts should be
solved by now and should happen only in really rare circumstances. If
the other module is not there, it should return error right away.
Michal 'vorner' Vaner [Tue, 19 Feb 2013 08:30:31 +0000 (09:30 +0100)]
[2676] Reorder and tweak exception to be closer to original
In case the auth wasn't there before the refactoring, it did a session
timeout, which resulted in DDNS_(START|STOP)_FORWARDER_ERROR log
message. So we handle the RPCRecipientMissing in the same branch (and
list above the RPCError, since it is a subclass of that).
Michal 'vorner' Vaner [Tue, 19 Feb 2013 08:24:42 +0000 (09:24 +0100)]
[2676] (minor) Comment tweaks
Michal 'vorner' Vaner [Tue, 19 Feb 2013 08:13:40 +0000 (09:13 +0100)]
[2676] Use constant for success code
Use CC_REPLY_SUCCESS instead of hardcoding 0.
Mukund Sivaraman [Tue, 19 Feb 2013 07:53:40 +0000 (13:23 +0530)]
[2641] Test /login API call
Mukund Sivaraman [Tue, 19 Feb 2013 07:24:09 +0000 (12:54 +0530)]
[2641] Rename test
Mukund Sivaraman [Tue, 19 Feb 2013 07:04:33 +0000 (12:34 +0530)]
[2641] Test /users-exist API call
Mukund Sivaraman [Tue, 19 Feb 2013 06:33:38 +0000 (12:03 +0530)]
[2641] Add test for _is_session_valid()
This commit was actually to update the statement inside
_is_session_valid() to be a None check, but I've written a unittest for
it anyway.
Mukund Sivaraman [Tue, 19 Feb 2013 06:11:47 +0000 (11:41 +0530)]
[2641] Test that _try_login() makes the right API call to cmdctl
Mukund Sivaraman [Tue, 19 Feb 2013 06:05:08 +0000 (11:35 +0530)]
[2641] Test that login_to_cmdctl() calls _have_users()
Mukund Sivaraman [Tue, 19 Feb 2013 05:49:12 +0000 (11:19 +0530)]
[2641] Test that _have_users() makes the right API call to cmdctl
Mukund Sivaraman [Tue, 19 Feb 2013 05:26:43 +0000 (10:56 +0530)]
[2641] Add tests for _have_users()
JINMEI Tatuya [Tue, 19 Feb 2013 04:29:29 +0000 (20:29 -0800)]
[2689] eliminated the need for threads in handler test.
needed to make some non trivial changes. hopefully it preserves the
intent of the test.
JINMEI Tatuya [Tue, 19 Feb 2013 03:06:08 +0000 (19:06 -0800)]
[2689] eliminate threads in test_start.
some refactoring to Stats class (behavior shouldn't change) and mock classes
were introduced. shutdown case was extracted to a spearate test function.
JINMEI Tatuya [Mon, 18 Feb 2013 22:51:37 +0000 (14:51 -0800)]
[2689] simplify: remove unused param for send_command(), remove send_shutdow.
this is just a refactoring for further changes. shouldn't change the
behavior.
JINMEI Tatuya [Mon, 18 Feb 2013 22:04:34 +0000 (14:04 -0800)]
[2676] editorial: folded a long line
JINMEI Tatuya [Mon, 18 Feb 2013 21:07:24 +0000 (13:07 -0800)]
[2669] piggyback style/editorial cleanups: const, spacing
Jelte Jansen [Mon, 18 Feb 2013 17:35:57 +0000 (18:35 +0100)]
[2669] Use valgrind-check in fork/thread tests
Similar to how it is checked for death tests; if valgrind is detected (when possible), parts of tests are skipped
Mukund Sivaraman [Mon, 18 Feb 2013 17:33:21 +0000 (23:03 +0530)]
[2641] Update doc for _try_login()
Mukund Sivaraman [Mon, 18 Feb 2013 17:32:21 +0000 (23:02 +0530)]
[2641] Add doc for _have_users()
Mukund Sivaraman [Mon, 18 Feb 2013 17:22:23 +0000 (22:52 +0530)]
[2641] Add doc for get_num_users()
Mukund Sivaraman [Mon, 18 Feb 2013 17:00:42 +0000 (22:30 +0530)]
[2641] Update if statement
This doesn't change any behavior, but changes the syntax used.
Mukund Sivaraman [Mon, 18 Feb 2013 07:53:07 +0000 (13:23 +0530)]
[2641] Move get_user_info() call to its own unittest
JINMEI Tatuya [Tue, 12 Feb 2013 19:32:26 +0000 (11:32 -0800)]
[2641] a minor piggy-back style cleanup: removed space in default param spec.
Mukund Sivaraman [Tue, 12 Feb 2013 06:29:57 +0000 (11:59 +0530)]
[2641] From bindctl, call /users-exist in cmdctl to check if users exist
Note: There are no tests for any HTTP API calls made to cmdctl. Adding
this framework as part of this bug would go way beyond the estimate. I
suggest creating another bug to go through bindctl and add missing
unittests for cmdctl RPCs.
Mukund Sivaraman [Tue, 12 Feb 2013 06:28:18 +0000 (11:58 +0530)]
[2641] Handle /users-exist API call in cmdctl
Note: There are no tests for any HTTP API calls in cmdctl. Adding this
framework as part of this bug would go way beyond the estimate.
I suggest creating another bug to go through cmdctl and add missing
unittests for the HTTP API.
Mukund Sivaraman [Tue, 12 Feb 2013 06:26:38 +0000 (11:56 +0530)]
[2641] Add method to get the number of users
Mukund Sivaraman [Mon, 18 Feb 2013 16:54:37 +0000 (22:24 +0530)]
[2641] Move populated cmdctl-accounts.csv to testdata directory
Michal 'vorner' Vaner [Mon, 18 Feb 2013 12:28:04 +0000 (13:28 +0100)]
[2768] Interface of the ModuleCCSession::rpcCall
Michal 'vorner' Vaner [Mon, 18 Feb 2013 10:23:08 +0000 (11:23 +0100)]
[2676] Note why Cmdctl is not converted.
Similar to previous commit, there's a hack in cmdctl that doesn't allow
it now.
Michal 'vorner' Vaner [Mon, 18 Feb 2013 08:54:40 +0000 (09:54 +0100)]
[2676] Note why XfrIn is not converted
There's a hack in XfrIn that prevents straight-forward conversion.
Adding the want_answer parameter for now as a temporary measure, until
the thing is fixed.
Michal 'vorner' Vaner [Fri, 15 Feb 2013 11:47:12 +0000 (12:47 +0100)]
[2676] Convert stats to use rpc_call
Most parts are converted, with one exception.
There's a place where many messages are sent at once and then it waits
for all the answers. This allows the other modules to process the
commands in parallel. The rpc_call is not flexible enough to allow this
(we'll need the rpc_call_async for that), so we stay with the original,
just adding the want_answer parameter.
Michal 'vorner' Vaner [Fri, 15 Feb 2013 11:37:38 +0000 (12:37 +0100)]
[2676] Convert ZoneMgr to use the rpc_call
Just a plain conversion.
Michal 'vorner' Vaner [Fri, 15 Feb 2013 11:15:47 +0000 (12:15 +0100)]
[2676] Convert DDNS to use rpc_call
Just a straight-forward conversion.
Mukund Sivaraman [Mon, 18 Feb 2013 06:52:16 +0000 (12:22 +0530)]
Unify common code
Naoki Kambe [Mon, 18 Feb 2013 07:39:23 +0000 (16:39 +0900)]
[master] Merge branch 'trac2225_statistics_4'
Naoki Kambe [Mon, 18 Feb 2013 07:26:37 +0000 (16:26 +0900)]
[2225_xfrout] add directory names of "zone", "socket" and "unixdomain" into the man page
Naoki Kambe [Mon, 18 Feb 2013 06:00:07 +0000 (15:00 +0900)]
[2225_xfrout] update "item_description" of "zone", "socket" and "unixdomain" in spec
JINMEI Tatuya [Sun, 17 Feb 2013 06:55:49 +0000 (22:55 -0800)]
[master] corrected typo: s/NSEC/NSEC3/
should be trivial, directly committing.
JINMEI Tatuya [Sat, 16 Feb 2013 04:59:17 +0000 (20:59 -0800)]
[2440] noted some differences from BIND 9
JINMEI Tatuya [Sat, 16 Feb 2013 04:18:03 +0000 (20:18 -0800)]
[2440] update documentation of RdataSet::create().
JINMEI Tatuya [Sat, 16 Feb 2013 04:03:10 +0000 (20:03 -0800)]
[2440] handle varying TTL cases.
the behavior was changed slightly: on second thought it seemed to make
more sense to adopt the smallest TTL. An existing test case was removed
because it's now covered in more comprehensive tests for this change.
JINMEI Tatuya [Sat, 16 Feb 2013 02:58:38 +0000 (18:58 -0800)]
[2440] a bit of cleanup: unify 2 versons of RdataSet::create into single one.
JINMEI Tatuya [Fri, 15 Feb 2013 23:49:31 +0000 (15:49 -0800)]
[2440] check RR type consistency in merge mode RdataSet::create.
JINMEI Tatuya [Fri, 15 Feb 2013 23:39:36 +0000 (15:39 -0800)]
[2440] handle duplicate RDATA in RdataSet create appropriately.
JINMEI Tatuya [Fri, 15 Feb 2013 22:02:38 +0000 (14:02 -0800)]
[2440] refactoring: unify two versions of create().
JINMEI Tatuya [Fri, 15 Feb 2013 21:55:14 +0000 (13:55 -0800)]
[2440] mostly completed merge version of create().
with lot of duplicate code right now, and some corner cases are not yet
handled.
JINMEI Tatuya [Fri, 15 Feb 2013 03:29:01 +0000 (19:29 -0800)]
[2440] merge version of RdataSet::create.
all basic cases are covered and tested. still some code duplicate.
ignoring corner cases.
JINMEI Tatuya [Sat, 16 Feb 2013 04:40:18 +0000 (20:40 -0800)]
[2440] documentation update for extensions to RdataEncoder with merge support.
JINMEI Tatuya [Fri, 15 Feb 2013 22:45:20 +0000 (14:45 -0800)]
[2440] update add methods of RdataEncoder to return bool depending on duplicate
This is necessary to extend RdataSet class so it calculates the correct
number of RDTA/RRSIGs excluding duplicates.
Michal 'vorner' Vaner [Fri, 15 Feb 2013 08:01:30 +0000 (09:01 +0100)]
[2676] Use dict, not keyword arguments
As it turns out, it is not as flexible as needed (it wouldn't be
possible to pass no arguments, it would not be possible to specify
parameters of name `class` easily, and so on).
Naoki Kambe [Fri, 15 Feb 2013 05:28:42 +0000 (14:28 +0900)]
[2225_statistics_4] calculate an entire server's counts even though they are zero
As well as
ffd4a283b18f8eaa453712e1e615e2440b12aa0d , in the platform (FreeBSD8,
amd64), the timer counters can be zero. However get_statistics() in counters.py
didn't calculate an entire server's counts if they are zero. This change is
added so that it calculates counters even though they are zero. An new
unittest is added to check that. This change fixes the issue reported in #2741.
For details about errors related to this change, see the following build farm
reports.
http://git.bind10.isc.org/~tester/builder/BIND10-cppcheck/
20130214075001 -FreeBSD8-amd64-GCC/logs/unittests.out
http://git.bind10.isc.org/~tester/builder/BIND10-cppcheck/
20130206173746 -FreeBSD8-amd64-GCC/logs/unittests.out
http://git.bind10.isc.org/~tester/builder/BIND10-cppcheck/
20130211135501 -FreeBSD8-amd64-GCC/logs/unittests.out
JINMEI Tatuya [Fri, 15 Feb 2013 04:09:50 +0000 (20:09 -0800)]
[master] Merge branch 'trac2679'
Mark Andrews [Fri, 15 Feb 2013 02:54:22 +0000 (13:54 +1100)]
use explicit operator precedence; reviewed via jabber
Jeremy C. Reed [Thu, 14 Feb 2013 18:43:45 +0000 (12:43 -0600)]
[master] update copyright year in guide and messages manual
Update copyright year for guide.
Update copyright year for messages manual.
Also remove the paragraph introducing bind10 from the messages manual
(it was incomplete, so misleading).
These were in the script)
This is trivial, so no review.
Jeremy C. Reed [Thu, 14 Feb 2013 17:53:20 +0000 (11:53 -0600)]
[master] remove TODO
This TODO was handled a few minutes ago.
JINMEI Tatuya [Thu, 14 Feb 2013 17:44:30 +0000 (09:44 -0800)]
[master] editorial: removed spaces after EOL
Shane Kerr [Thu, 14 Feb 2013 17:13:48 +0000 (18:13 +0100)]
Update the sponsor acknowledgment section in the BIND 10 Guide to include all of the sponsors.
Marcin Siodelski [Thu, 14 Feb 2013 13:38:03 +0000 (14:38 +0100)]
[2701] Added the key_from_key.h header file.
Marcin Siodelski [Thu, 14 Feb 2013 13:35:08 +0000 (14:35 +0100)]
[2701] Added missing const to the function returning DUID.
Michal 'vorner' Vaner [Thu, 14 Feb 2013 13:06:32 +0000 (14:06 +0100)]
[2676] Document the rpc_call
Marcin Siodelski [Thu, 14 Feb 2013 12:59:20 +0000 (13:59 +0100)]
[2701] Added warning about undefined behavior when using invalid option definition.
Marcin Siodelski [Thu, 14 Feb 2013 12:28:36 +0000 (13:28 +0100)]
[2701] Moved the KeyFromKey class to the common header.
Mukund Sivaraman [Thu, 14 Feb 2013 11:06:32 +0000 (16:36 +0530)]
[master] Add init.pyc to CLEANFILES to make distcheck pass
Jelte Jansen [Thu, 14 Feb 2013 11:02:52 +0000 (12:02 +0100)]
[2669] Use vector instead of raw array in unit test
Marcin Siodelski [Thu, 14 Feb 2013 10:08:05 +0000 (11:08 +0100)]
[2701] Added composite index to the container holding leases.
This change applies to the Memfile backend and is intended to significantly
improve its performance.
Michal 'vorner' Vaner [Thu, 14 Feb 2013 09:54:07 +0000 (10:54 +0100)]
[2676] Error handling in the rpc_call
Mukund Sivaraman [Thu, 14 Feb 2013 09:50:07 +0000 (15:20 +0530)]
Merge branch 'trac2281'
Conflicts:
src/lib/datasrc/memory/memory_messages.mes
src/lib/datasrc/memory_datasrc.cc
Michal 'vorner' Vaner [Thu, 14 Feb 2013 09:34:16 +0000 (10:34 +0100)]
[2676] Further tests for rpc_call
An unusual case and a malformed answer.
Michal 'vorner' Vaner [Thu, 14 Feb 2013 09:23:44 +0000 (10:23 +0100)]
[1676] Basics of the rpc_call in python
Successful case. Small fixes of the tests.
Michal 'vorner' Vaner [Thu, 14 Feb 2013 09:02:07 +0000 (10:02 +0100)]
[2676] Test for rpc_call
Just the simplest one for now, with success
Michal 'vorner' Vaner [Thu, 14 Feb 2013 09:00:06 +0000 (10:00 +0100)]
[2676] Store the want_answer in fake session
So we are both compatible and we can check it in the tests.
Michal 'vorner' Vaner [Thu, 14 Feb 2013 07:17:15 +0000 (08:17 +0100)]
Merge remote-tracking branch 'refs/remotes/origin/master'
JINMEI Tatuya [Thu, 14 Feb 2013 07:05:22 +0000 (23:05 -0800)]
[2440] suppress duplicate Rdata in merge. extend test cases more.
JINMEI Tatuya [Thu, 14 Feb 2013 06:21:20 +0000 (22:21 -0800)]
[2440] generalize the merge-start initialization using RdataReader.
JINMEI Tatuya [Thu, 14 Feb 2013 04:04:12 +0000 (20:04 -0800)]
[2440] update encode() considering old RRSIGs. start() still uses hardcoding.
JINMEI Tatuya [Thu, 14 Feb 2013 02:20:40 +0000 (18:20 -0800)]
[2440] extended RdataEncoder so it can begin with existing ecoded data.
some test cases are hardcoded, not all cases are covered yet.
Jelte Jansen [Wed, 13 Feb 2013 22:42:54 +0000 (23:42 +0100)]
[2669] Initialize memory in tcp unit test
Jelte Jansen [Wed, 13 Feb 2013 13:33:15 +0000 (14:33 +0100)]
[2669] Make valgrind silent for forked() tests
To supress leaks for data on parent's stack
Jeremy C. Reed [Wed, 13 Feb 2013 18:08:24 +0000 (12:08 -0600)]
[master] bump version
(note this is not the rc version, just the version for master)
Jeremy C. Reed [Wed, 13 Feb 2013 18:07:36 +0000 (12:07 -0600)]
[master] add date stamp for the 1.0.0-rc
Jeremy C. Reed [Wed, 13 Feb 2013 18:06:23 +0000 (12:06 -0600)]
[master] fix misspellings