2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 05:27:55 +00:00

13916 Commits

Author SHA1 Message Date
Michal 'vorner' Vaner
9e8813efff [2377] Reject load incremental of 0 RRs
As it makes little sense.
2012-12-10 13:26:05 +01:00
Stephen Morris
e4e8de3175 [2546] Correct issues raised by cppcheck
Mostly adding "const" to methods that don't change the class, but
also correcting a few other points that were raised.
2012-12-10 12:06:06 +00:00
Stephen Morris
03b92733bf [2546] Unify deleteLease4() and deleteLease6() into a single deleteLease() 2012-12-10 11:21:24 +00:00
Marcin Siodelski
8afd799648 [2491] Moved option std option definitions to a separate header. 2012-12-10 12:17:47 +01:00
Jelte Jansen
807cc540e1 [2445] Some more cleanups
- renamed test class
- added a subclass of BufferAppender to directly test append()
(and re-enabled the relevant test case)
- minor doxy updates
2012-12-10 11:52:00 +01:00
Stephen Morris
d87597de14 [2546] Define ClientIdPtr type
This is akin to the DuidPtr and is a shared point to a Client ID.
2012-12-10 10:35:28 +00:00
Jelte Jansen
2a69f5cd6a [2445] Add assert() after dynamic_cast 2012-12-10 11:26:41 +01:00
Jelte Jansen
7e30c020cd [2445] rename unit test file as well 2012-12-10 11:26:16 +01:00
Jelte Jansen
17fb43189b [2445] Store string version of log level in buffer
And use those in the case of flushStdout() upon destruction
2012-12-10 11:24:02 +01:00
Stephen Morris
084a166845 [2546] Remove LeaseMgr::getLease4(address, subnetid)
As the address is th eprimary key of the table, there can only ever
be at most one lease in the database with a given address.  Additional
selection by subnet ID is not needed.
2012-12-10 10:13:53 +00:00
Jelte Jansen
8bf2c98d2e [2445] rename log_buffer_impl to buffer_appender_impl
Since LogBuffer no longer exists, the file name did not match its content anymore
2012-12-10 10:54:12 +01:00
Jelte Jansen
12dba9fb97 [2445] Remove LogBuffer class
and pull its functionality into BufferAppender
(one unit test temporarily disabled, might be removed in next commit or updated to get around the protected method it uses)
2012-12-10 10:31:47 +01:00
Mukund Sivaraman
c4b7c85d1a [2503] Check result of findNSEC3() 2012-12-10 07:56:19 +05:30
Mukund Sivaraman
3e2d8b00ba [2353] Update comments (recommended by review) 2012-12-10 06:47:56 +05:30
Mukund Sivaraman
32011f9a36 [2353] Rename and document BoB._run_under_unittests 2012-12-10 06:43:07 +05:30
Mukund Sivaraman
02f306c854 [2353] Unify repeated test code 2012-12-10 06:40:41 +05:30
Mukund Sivaraman
6af3de2d2e [2353] Use a test environment instead of an empty one 2012-12-10 06:30:36 +05:30
Mukund Sivaraman
366f210b82 [2353] Use assertRaises() instead of the excessive code 2012-12-10 06:14:00 +05:30
Mukund Sivaraman
93eddf78d2 [2504] Add ChangeLog entry 2012-12-09 19:53:32 +05:30
Mukund Sivaraman
835553eb30 Merge branch 'master' into trac2504 2012-12-09 18:33:06 +05:30
Mukund Sivaraman
a6b558c0d0 [2504] Check result of find() 2012-12-09 18:04:59 +05:30
JINMEI Tatuya
85c5f47252 [2377] constify 2012-12-07 15:29:40 -08:00
Marcin Siodelski
cb4d9b014e [master] perfdhcp test creates template files in a local folder.
The test used to create template files in a testdata folder without write
permissions. That caused 'make distcheck' errors. This regression had
been introduced with the ticket #2479. Okayed on jabber.
2012-12-07 21:36:42 +01:00
Stephen Morris
5c9dba4001 [master] Remove indirection in defining size of arrays
cppcheck was complaining about what was effectively:
const int A = 6; const int B = A; std::string array[b];

Changing this to
const int B = 6; std::string array[b];

... works
2012-12-07 20:25:25 +00:00
Michal 'vorner' Vaner
1ba16e4d72 [2377] Check for EOF on recover from problem 2012-12-07 19:51:41 +01:00
Michal 'vorner' Vaner
d7b4201a3b [2377] More broken cases
Some quoted strings where they can't happen and some broken tokens.
2012-12-07 19:34:47 +01:00
Michal 'vorner' Vaner
3b1307a071 [2377] Check the implementation accepts quoted names
This is questionable if it should be allowed (at least vim marks it in
red as error), but bind9 accepts it, so shall we too.
2012-12-07 19:26:04 +01:00
Michal 'vorner' Vaner
27597c6b64 [2377] Document fields of ErrorCase in tests 2012-12-07 19:24:25 +01:00
Michal 'vorner' Vaner
612e52448e [2377] Use rdata::compare to check equality of Rdata 2012-12-07 19:22:10 +01:00
Michal 'vorner' Vaner
1261088d77 [2377] Pass string by reference
It was obviously forgotten (and cppcheck complained).
2012-12-07 19:13:47 +01:00
Michal 'vorner' Vaner
d5137a3259 [2377] cleanup: Simplify the test callback 2012-12-07 19:12:28 +01:00
Michal 'vorner' Vaner
80de8b943c [2377] docs: Add forgotten update to the addRRCallback 2012-12-07 18:01:23 +01:00
Michal 'vorner' Vaner
2f50510237 [2377] Keep a boolean variable for option
The option would be used often. While the produced code would probably
be the same, because the compiler can see it's equivalent, this is more
convenient to use.
2012-12-07 17:58:26 +01:00
Michal 'vorner' Vaner
63cce9fa51 [2377] Minor code simplification 2012-12-07 17:49:15 +01:00
Michal 'vorner' Vaner
e6898f852c [2377] Don't accept quoted TTLs and such 2012-12-07 17:46:48 +01:00
Michal 'vorner' Vaner
ec661eb924 [2377] Small optimizations 2012-12-07 17:45:08 +01:00
Michal 'vorner' Vaner
ab0db5a965 [2377] Move a method outside of the class definition
Just to make it easier for some editors to parse.
2012-12-07 17:29:33 +01:00
Michal 'vorner' Vaner
2edd97ec54 [2377] Prepare MasterLoader::pushSource for future
When we support $INCLUDE, it should report reasonable place of error,
not :0.
2012-12-07 17:22:56 +01:00
Michal 'vorner' Vaner
b70d80fca2 [2377] #include just to make sure 2012-12-07 17:12:35 +01:00
Michal 'vorner' Vaner
3a2ccbf78e [2377] Report error on !MANY_ERRORS as exception
In this case, the user should be aware of the error as much as possible.
In case of MANY_ERRORS, we can't do this, exception is able to handle
just one error.
2012-12-07 17:10:27 +01:00
Jelte Jansen
06eeaf025b [2504] use example.com zone for test 2012-12-07 16:34:03 +01:00
Michal 'vorner' Vaner
cc62eeca9e [2377] docs: Reference note about Lenient mode 2012-12-07 16:01:22 +01:00
JINMEI Tatuya
52a60eb5c9 [2445] Merge branch 'trac2445' of ssh://git.bind10.isc.org/var/bind10/git/bind10 into trac2445 2012-12-07 06:54:28 -08:00
Michal 'vorner' Vaner
e5fb484fba [2377] Provide MasterLoader constructor from stream
Instead of file name. And use it for some of the tests, to avoid
juggling with files.
2012-12-07 15:52:24 +01:00
Michal 'vorner' Vaner
03911f1000 [2377] Use rrsetCheck() for comparing RRsets
Comparing their toText() might be unreliable. In theory, the toText()
result could be slightly different even for equal RRsets (if their
background implementation is different) and the test fail.

Include a hack for the rrsetCheck interface being incompatible.
2012-12-07 15:20:34 +01:00
Jelte Jansen
331a48e08d [1351] Use TSIG key ring in b10-xfrin
instead of separately configured keys;

with this change, the Xfrin/zones[X]/tsig_key value is not interpreted as a full key string, but as the name to look up in the /tsig_keys/keys list (like acls do)
2012-12-07 15:04:55 +01:00
Michal 'vorner' Vaner
22d72fe82d [2377] Fix BasicRRset::getRRsig() documentation
It claimed it throws every time and returns NULL at the same time. It is
impossible and the first one is not true.
2012-12-07 14:59:48 +01:00
Stephen Morris
755a3b5fa1 [master] ChangeLog for trac 2404 2012-12-07 13:42:03 +00:00
Stephen Morris
ce7db48d3f [2404] Merge branch 'master' into trac2404 2012-12-07 12:28:21 +00:00
Stephen Morris
1c59115d79 [2404] Alter memfile "getName()" to return "memory"
This reflects the fact that at the moment, the data is stored in
memory and not in a backing file.
2012-12-07 12:25:40 +00:00