Jelte Jansen
b8b0f55e1a
refactoring;
...
renamed the DataDefinition class to the much more accurate ModuleSpec
also renamed some ambiguously named functions therein
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-configuration@833 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-16 11:05:05 +00:00
Jelte Jansen
976107dd7e
removed a few prints
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-configuration@832 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-16 10:27:17 +00:00
Jelte Jansen
7ccf5c90c2
type checking on client side
...
implemented sample print_settings command
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-configuration@831 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-16 09:50:03 +00:00
Jelte Jansen
ae08d2a7bb
updated tests, fixed a few bugs, updated docs
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-configuration@828 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-15 20:40:22 +00:00
Jelte Jansen
fad19e22d4
documentation
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-configuration@827 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-15 19:46:25 +00:00
Jelte Jansen
7742c46239
empty list evaluates to False, so check for None explicitely
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-configuration@826 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-15 15:40:44 +00:00
Jelte Jansen
ffe26df93c
same for bob
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-configuration@825 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-15 14:10:30 +00:00
Jelte Jansen
51512f41d1
use functions to create answer messages in cfgmgr
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-configuration@824 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-15 14:00:46 +00:00
Jelte Jansen
bc69156fbd
added option to validate 'partial' data against a definition
...
added some more dummy specfile entries
creates two simple functions for making and reading answer messages
bindctl will parse command 'config set' values natively (i.e. for "config set my_item 3" the 3 is now read as an integer instead of a string)
added config diff option that shows a dict of the current uncommited changes
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-configuration@823 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-15 13:30:39 +00:00
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
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
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
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
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
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
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