2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 13:37:55 +00:00
Commit Graph

12705 Commits

Author SHA1 Message Date
Michal 'vorner' Vaner
44b1d42219 [2292] Add a TODO about re-adding tests
Planned for merge #2268
2012-10-11 10:04:36 -07:00
Michal 'vorner' Vaner
3efb1402e7 [2292] Clarify test
And make it slightly stronger (it now checks something that should be
mostly obvious too, but who knows, with software).
2012-10-11 10:04:35 -07:00
Michal 'vorner' Vaner
a3953a556b [2292] Pass the old zone back
Instead of releasing it directly. While the internal release was more
convenient, it didn't allow for swapping things fast under a mutex and
then spending the time releasing it unlocked.
2012-10-11 10:04:35 -07:00
Michal 'vorner' Vaner
ea4149ff70 [2292] Don't pass SegmentObjectHolder
It is supposed to be mostly private. Use it internally only.
2012-10-11 10:04:35 -07:00
JINMEI Tatuya
7b2aa97d01 [2292] minor cleanups: constify, indentation 2012-10-11 10:04:35 -07:00
Michal 'vorner' Vaner
e84770a805 [2292] Update tests
They don't need the mutable versions to work, but they used them anyway.
2012-10-11 10:04:35 -07:00
Michal 'vorner' Vaner
fa5076be0c [2292] Re-add version of find removed by accident
This one was not mutable, it just took Name as an argument.
2012-10-11 10:04:34 -07:00
Michal 'vorner' Vaner
b31ee9e471 [2292] Drop tests for InMemoryClient::add
As the method was removed.
2012-10-11 10:04:34 -07:00
Michal 'vorner' Vaner
45ae6bad11 [2292] Remove unused template parameters
The domain tree no longer supports the mutable find versions, so we
don't need the template parameters allowing for them.
2012-10-11 10:04:34 -07:00
Michal 'vorner' Vaner
a270e0425f [2292] Remove mutable find methods
They are currently used in test code only (so we'll need to update the
tests to compile). The real code seams clean now.
2012-10-11 10:04:34 -07:00
Michal 'vorner' Vaner
0a23277c5b [2292] Remove the setZoneData method
Currently, the content of zone is passed to the addZone method. No way
to change it later, but the addZone overwrites the old value if called
again.

This should hopefully allow for removal of mutable find methods from the
tree.
2012-10-11 10:04:34 -07:00
Michal 'vorner' Vaner
bb347f1941 [2292] Get rid of the const_cast
It was needed when extracting data from a domain tree chain. The chain
now can hold mutable pointers too, so we use that (and some amount of
template bureaucracy) to avoid the cast.

While the interface changed (on the core find function, it is not
possible to pass const node chain and have a mutable node get out), it
doesn't seem to influence the current code. Also, it is a private
interface anyway, so it should be safe.
2012-10-11 10:04:33 -07:00
Michal 'vorner' Vaner
4008368601 [2292] Parametrize constness of the chain 2012-10-11 10:04:33 -07:00
Mukund Sivaraman
a841ad0aec [master] Set lockfile path for DHCP tests 2012-10-11 10:04:33 -07:00
Mukund Sivaraman
a25609c439 [master] Update .gitignore files 2012-10-11 10:04:33 -07:00
Mukund Sivaraman
b2eedd0aeb [master] Remove empty GNU-style dist files 2012-10-11 10:04:33 -07:00
JINMEI Tatuya
fa2026935d [master] define dbutil_test.sh as noinst_SCRIPTS to auto-regenerate on modify.
this will prevent surprising test failure on an incrementally updated dev
tree.  okayed on jabber.
2012-10-11 10:04:32 -07:00
JINMEI Tatuya
dd752b3422 [master] added changelog for #1870 2012-10-11 10:04:32 -07:00
JINMEI Tatuya
b675d21e2e [1870] avoid using "no" keyword as a configured value for "bind10-include". 2012-10-11 10:04:32 -07:00
JINMEI Tatuya
fe0e9a269f [1870] removed unnecessary call to AX_BOOST_INCLUDE.
since AC_REQUIRE internally does it.
2012-10-11 10:04:32 -07:00
JINMEI Tatuya
666c34d9e2 [1870] removed rrsetlist.h from the libdns___include_HEADERS
it will be cleaned up and should better be excluded from the publicly
visible list.
2012-10-11 10:04:32 -07:00
JINMEI Tatuya
4686e5da4e [1870] some more doc cleanups 2012-10-11 10:04:31 -07:00
JINMEI Tatuya
4e5ca3a84b [1870] provided top level README 2012-10-11 10:04:31 -07:00
JINMEI Tatuya
cdbc11cf13 [1870] separated BIND 10 common libs and DNS lib
so that we can eventually selectively choose module specific libraries.
2012-10-11 10:04:31 -07:00
JINMEI Tatuya
0dca4820d8 [1870] removed src/bin/host/Makefile from toplevel configure.ac. 2012-10-11 10:04:31 -07:00
JINMEI Tatuya
0edff937af [1870] introduced separate m4 files for dependencies. 2012-10-11 10:04:30 -07:00
JINMEI Tatuya
ecb4349018 [1870] make sure install some more headers under dns/ and util/
there may be more, but at least this makes (b10-)host compile as a 3rd party
app.
2012-10-11 10:04:30 -07:00
JINMEI Tatuya
83cdd8bb5d [1870] moved src/bin/host under example/
(at least for now) there's no way to transform xml doc to other formats.
only xml is provided for reference.
2012-10-11 10:04:30 -07:00
JINMEI Tatuya
dc506d0714 [1870] created a separate dir to store example "3rd party" apps using BIND 10. 2012-10-11 10:04:30 -07:00
JINMEI Tatuya
b2cb1e1e33 [2203] renamed datasrc_configurator to datasrc_config; it represents it better. 2012-10-11 10:04:30 -07:00
JINMEI Tatuya
4da98b699e [2203] forotten cleanup: removed now-unused header file. 2012-10-11 10:04:29 -07:00
JINMEI Tatuya
6f008e1916 [2203] a piggy back fix: prevent redundant initial data configuration.
this addresses the issue described in #2291.  Still not really clean,
but thanks to boost::bind we can centralize all the code logic in the
callback, so I think it's now less likely that we forget cleaning it up
when the hack is not necessary.
2012-10-11 10:04:29 -07:00
JINMEI Tatuya
e0f618ac8f [2203] changed configurator class to a simple function.
as it's now completely stateless and can work independently.
the common specialization for the main implementation is defined in a
new created .cc file.
2012-10-11 10:04:29 -07:00
JINMEI Tatuya
bb21aa5022 [2203] pass server obj to configurator's reconfigure().
now the configurator class is completely stateless.
2012-10-11 10:04:29 -07:00
JINMEI Tatuya
f38d24a77f [2203] refactoring 2nd step: configurator can now be a separate object.
i.e., it's not a singleton any more.
testReconfigure() method isn't needed any more because it doesn't hold
CC session internally.
DatasrcConfiguratorTest.initialization test currently fails and is
disabled for now.  The plan is to make the class completely stateless,
at which point we don't even have to think about initialization or cleanup,
and then the test will be able to be removed.
2012-10-11 10:04:29 -07:00
JINMEI Tatuya
da22b37709 [2203] changed the callback type of addRemoteConfig to boost::function.
this will make it more convenient, e.g., by allowing the caller to pass
boost::bind encapsulating a class object and a class method.

boost::function is upper compatible to function pointer, so it doesn't
ensure source-level compatibility.

the functor overhead shouldn't matter in this context, and since this module
already uses boost::function this change doesn't introduce additional
dependency.
2012-10-11 10:04:28 -07:00
JINMEI Tatuya
0e9c2a4c68 [2203] refactoring 1st step: move session obj outside of datasrc configurator. 2012-10-11 10:04:28 -07:00
Mukund Sivaraman
f7c0410f7d [1899] Allow other RRtypes in nsec3 table (for RRSIGs)
* The unique constraint on NSEC3 owner per zone is now removed
* NSEC3 RRSIGs are now returned next to their RR set
* Test was adjusted to check for RRSIGs too
2012-10-11 10:04:28 -07:00
Mukund Sivaraman
13089ae122 [1899] Add another unittest to check that NSEC3 RRs are being returned 2012-10-11 10:04:28 -07:00
Mukund Sivaraman
dd83505aca [1899] Break up UNION SQL query into two and merge manually
Also drop unnecessary columns and ORDER BYs.
2012-10-11 10:04:27 -07:00
Mukund Sivaraman
06c667cd02 [1899] Add a unique constraint to nsec3 table
This is to check that only one NSEC3 RR exists per owner name in a
zone.  The code to fix #1899 would depend on this assertion.
2012-10-11 10:04:27 -07:00
JINMEI Tatuya
c66fe1c8ad [master] add std:: for memset(). sunstudio requires this with <cstring> 2012-10-11 10:04:27 -07:00
Jelte Jansen
1eb3ce6df7 [2275] fix strncpy in socketrequestortest 2012-10-11 10:04:27 -07:00
Jelte Jansen
9334389794 [2275] address review comments 2012-10-11 10:04:26 -07:00
Jelte Jansen
3d98322d24 [2275] valgrind fixes: uninitialized memory 2012-10-11 10:04:26 -07:00
Jelte Jansen
1c4ec91a6f [2275] valgrind fixes: uninitialized memory 2012-10-11 10:04:26 -07:00
Jelte Jansen
b41cca56e9 [2275] use const char* for test globals 2012-10-11 10:04:26 -07:00
Jelte Jansen
c3a2105cbd [2275] valgrind fix: initialize memory in labelsequence test 2012-10-11 10:04:26 -07:00
Jelte Jansen
347e333b52 [2275] valgrind fix: store singleton instance in auto_ptr 2012-10-11 10:04:25 -07:00
Jelte Jansen
fac39dc29a [2275] valgrind fix: close db in test case 2012-10-11 10:04:25 -07:00