2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-05 00:15:17 +00:00
Commit Graph

22978 Commits

Author SHA1 Message Date
Jelte Jansen
b302cfa381 refactoring of cfgmgr and config in general; they now use the datadefinition class so they could later validate data that is passed around
(refactoring not done yet, though it is now in a working state again, which seemed like a good time to commit)
added a config_data.py with classes for storing definitions and data (for both modules and UIs)
fixed a missed refactoring bug in bob
changed DataDefinition initializer; a string is now parsed instead of seen as a file name; there is a helper function in the module to read a datadef directly from file now
added a temporary example config data specification for auth module
added a temporary second config data element to bob.spec



git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-configuration@814 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-13 22:07:58 +00:00
Jelte Jansen
8e06ee7688 found bug when to/fromwiring empty lists
added unittest


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-configuration@809 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-12 14:36:24 +00:00
JINMEI Tatuya
d8412e1da7 more detailed description for the rdata and generic rdata classes
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@808 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-12 09:48:47 +00:00
JINMEI Tatuya
b39fa83ff2 comment update: factories of well known RR types are now automatically inserted
by python script.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@807 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-12 09:48:05 +00:00
JINMEI Tatuya
cbe0692558 - (re)added src/lib/dns
- updated EXCLUDE_PATTERNS to avoid including .py and placeholder C++ files


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@806 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-12 09:45:13 +00:00
JINMEI Tatuya
097eb4f372 added description for Rdata factories
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@805 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-12 03:12:54 +00:00
JINMEI Tatuya
137d916391 described the rest of RRParamRegistry
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@804 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-12 02:39:56 +00:00
JINMEI Tatuya
65de16f52b moved MAX_CHARSTRING_LEN from the TXT definition to rdata.h as it's not
specific TXT.

added some more documentation.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@803 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-11 22:50:32 +00:00
JINMEI Tatuya
bc6d1d5d32 added more tests for rrparamregistry
added removeRdataFactory methods


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@799 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-11 01:22:59 +00:00
JINMEI Tatuya
46d9282164 merged from trunk
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@798 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-11 01:21:49 +00:00
JINMEI Tatuya
2a53c1987a propset
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@796 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-10 23:54:21 +00:00
JINMEI Tatuya
68e99a935a simplification
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@795 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-10 23:53:35 +00:00
JINMEI Tatuya
5f1344f7c0 merged from trunk
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@792 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-10 23:20:51 +00:00
JINMEI Tatuya
40cd668476 a minor bug fix: check the iss state before trying to use it
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@791 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-10 23:06:00 +00:00
JINMEI Tatuya
a89bee8509 propset
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@790 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-10 23:01:16 +00:00
JINMEI Tatuya
a568683bf2 added quick hack implementation of the SOA rdata class for datasource
development.
passed minimum level of unit test, will get it reviewed in the next review
cycle.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@789 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-10 23:00:58 +00:00
JINMEI Tatuya
c2fb21d9b3 added test/documentation for operator= and copy constructor
(trac ticket #47, reviewed by Evan)


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@788 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-10 21:07:37 +00:00
JINMEI Tatuya
d49b0ce988 plugged a leak in the destructor
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@787 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-10 20:04:59 +00:00
Jeremy C. Reed
eb27d3af6c Add two missing boost headers as seen on Solaris10 build
system (which doesn't have boost installed).


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@786 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-10 19:17:40 +00:00
Jeremy C. Reed
2784c595fd Add AC_SEARCH_LIBS to add libraries to LIBS as noticed on Solaris10.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@785 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-10 19:11:57 +00:00
Jeremy C. Reed
fadf58e7ee Remove parkinglot from trunk. It is still in branches/parkinglot if needed.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@784 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-10 19:05:57 +00:00
JINMEI Tatuya
0d2b4dfaf3 added more tests for the rdata related class and functions
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@783 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-10 09:50:33 +00:00
JINMEI Tatuya
a125e69fb6 supporged the generic rdata case in createRdata (by copy)
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@782 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-10 09:50:05 +00:00
JINMEI Tatuya
93104b9f14 fixed a bug in compareNames()
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@781 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-10 09:48:04 +00:00
JINMEI Tatuya
2c586f07fd style/cleanup
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@780 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-10 09:46:49 +00:00
JINMEI Tatuya
027119c4e2 added detailed test cases for the generic rdata class
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@778 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-10 03:56:45 +00:00
JINMEI Tatuya
11c412d47e cleanup
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@777 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-10 03:56:26 +00:00
JINMEI Tatuya
2295e005f7 merged a fix in trunk
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@776 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-10 03:55:30 +00:00
JINMEI Tatuya
bde6077141 fixed an obvious error in assignment
(fixed in trunk, this will get reviewed in the next cycle of branching)


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@775 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-10 03:52:29 +00:00
JINMEI Tatuya
a9dc811752 bug fixes identified via unittests, some cleanups, added operator<<
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@774 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-10 03:48:36 +00:00
Jelte Jansen
04f3eb1b3e cfgmgr handle non-existent db file
update copyright statements
added tests for data element helper functions
improved and cleaned up data element helper functions


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-configuration@773 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-09 16:12:41 +00:00
JINMEI Tatuya
4abeb3e389 used pimpl idiom to hide the internal use of std::vector (and therefore for
better portability)


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@765 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-09 05:03:48 +00:00
JINMEI Tatuya
5d391aeb50 updated test data
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@764 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-09 04:04:09 +00:00
JINMEI Tatuya
45e7be0bbf added some test cases for "unknown" type of RDATA
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@763 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-09 04:00:26 +00:00
JINMEI Tatuya
59ddc483c0 made sure RR{Type|Class}Param's constant parameters are initialized when it's
first used.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@762 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-09 03:52:26 +00:00
JINMEI Tatuya
4d5233becd moved test cases for specific RDATA-type classes to separate files to keep
each test unit concise and more focused.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@758 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-09 00:43:38 +00:00
JINMEI Tatuya
450c2681a1 supported toText() and "from text" constructor for the generic (unknown) type
of RDATA


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@757 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-09 00:37:26 +00:00
Jelte Jansen
877a52f1c9 bit of refactoring in cfgmgr.py
added tests for ConfigManager class
also added in these tests a fake command session class, which we might want to generalize for other tests



git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-configuration@748 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-08 16:31:00 +00:00
Jelte Jansen
15c1f8bc21 tests for ConfigManagerData
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-configuration@747 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-08 12:04:23 +00:00
Jelte Jansen
d21bec5c81 reply var could be uninitialized, so set to None before doing len check
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@746 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-08 11:15:08 +00:00
Jelte Jansen
03515c9829 created new branch for configuration changes
removed obsolete datasource branch


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-configuration@745 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-08 09:53:45 +00:00
JINMEI Tatuya
227a2d7a3d - avoided unnecessary file generation based on time stamps
- handle exceptions in a more sophisticated way
- made it more modular


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@744 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-06 07:40:52 +00:00
JINMEI Tatuya
fcfd8c8cbc specify tests in cpp/Makefile.am
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@743 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-06 00:57:18 +00:00
JINMEI Tatuya
6582726397 moved unit test related files to tests/ as we agreed in the f2f week.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@742 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-06 00:39:24 +00:00
JINMEI Tatuya
7618c5a326 new development branch from the latest trunk
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsrdata2@741 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-05 22:25:01 +00:00
Jelte Jansen
737d95aced also move host includes to 'new style' (i.e. without /cpp/)
reviewed by jeremy


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@740 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-05 19:10:01 +00:00
Jelte Jansen
9bbf5a1452 added $srcdir to cat __init__.py files statements
reviewed by jeremy


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@739 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-05 19:05:29 +00:00
Jeremy C. Reed
ddcf8a07b7 So trunk is now a copy of branches/parkinglot as of revision 736.
This is not a merge.
I will provide a list of code that must be reviewed using
our review procedure (other than it is in trunk now).
No commits to trunk from now on, unless they have followed
our review policy.
If code now in trunk is not reviewed, it will be removed from trunk.
An email will be sent with details.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@738 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-05 17:21:42 +00:00
Jelte Jansen
7cb3db70f5 forgot to svn add
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@736 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-05 11:13:45 +00:00
Jelte Jansen
3a866699f9 moved exceptions out of libdns and created libexceptions
don't forget to make clean and autoreconf again


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@735 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-05 11:09:38 +00:00