JINMEI Tatuya
57a9b48c6f
missing include file
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1031 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-27 20:50:54 +00:00
Evan Hunt
c3c47b30cf
- in the fromText function, check string length before sscanf(),
...
and use DATE_LEN enum instead of hard-coding the value 14
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1030 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-27 19:14:12 +00:00
JINMEI Tatuya
0bcbba63bf
pass by reference, not an object, to avoid unnecessary copy
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1029 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-27 08:07:10 +00:00
JINMEI Tatuya
0dd0a98e11
added run_unittests_CPPFLAGS for gtest header files
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1028 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-27 07:04:59 +00:00
JINMEI Tatuya
e587cfd186
added some more pathological cases to badText.
...
actually I'm not sure if these should be rejected or accepted.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1027 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-27 04:09:13 +00:00
JINMEI Tatuya
1e4b9fbb88
simplification
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1026 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-27 03:37:49 +00:00
Evan Hunt
6a3dd4ec6e
DNSKEY, DS, NSEC unittests
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1025 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-27 03:31:43 +00:00
Evan Hunt
9506f69d86
DNAME unit test
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1024 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-27 03:30:31 +00:00
JINMEI Tatuya
9d98075218
worked around const handling of BOOST_FOREACH
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1023 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-27 03:28:49 +00:00
Evan Hunt
f7d286f4fe
oops, left something in by mistake...
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1022 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-27 03:24:31 +00:00
JINMEI Tatuya
104259fa33
clarify constness of const/normal iterators
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1021 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-27 03:22:33 +00:00
Evan Hunt
28682c14c8
Improved unit test coverage for rdata types; fixed some cosmetic bugs
...
along the way
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1020 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-27 03:11:25 +00:00
JINMEI Tatuya
72095c6761
applied some proposed patch:
...
- clarify the use of constness
- don't expose vector iterators directly
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1019 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-27 01:16:52 +00:00
JINMEI Tatuya
a418240378
copyright and propset
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1018 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-27 00:04:06 +00:00
JINMEI Tatuya
1295f5bbf5
specify C++ mode for editing them via emacs
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1017 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-27 00:02:29 +00:00
JINMEI Tatuya
3fe2c34795
added a test case highlighting using the default parameter for
...
findRRset(type/class) isn't really a good idea.
the test would crash, so commented it out for now.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1016 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-26 23:26:14 +00:00
Evan Hunt
450ec1904b
missed adding this in previous commit
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1015 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-26 21:54:30 +00:00
Evan Hunt
c7a873b7ef
- addressed some review comments in rdata implementation
...
- fixed formatting error with DNSSEC time
- decodeHex() can read lower-case hex digits now
- added fromWire constructor for RRSIG, and associated unit test
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1014 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-26 20:20:19 +00:00
Michael Graff
da421b8d5b
mostly empty class for Tsig key holding
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1013 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-26 20:12:09 +00:00
JINMEI Tatuya
853dd60122
cleanup: removed unused header files
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1012 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-26 20:04:32 +00:00
JINMEI Tatuya
3973738979
findRRset(type/class version): we don't need to extract the bare pointer.
...
cleaned it up.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1011 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-26 20:03:18 +00:00
JINMEI Tatuya
e5d9ebdd2a
cleanup: this test doesn't need UnitTestUtil.
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1010 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-26 19:47:00 +00:00
JINMEI Tatuya
c67692d087
simplification: rdata_xxx constants doesn't have to be static const members.
...
(they are in anonymous namespace so there's no name conflict issue)
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1009 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-26 19:36:48 +00:00
JINMEI Tatuya
7ea7a4e46d
propset
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1008 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-26 19:33:27 +00:00
JINMEI Tatuya
fc1bed43bf
missing initalization
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1007 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-26 19:32:42 +00:00
JINMEI Tatuya
6e331c4d33
preferred EXPECT_EQ(a,b) to EXPECT_TRUE(a==b) because on failure we can see
...
the vlaues of a and b
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1006 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-26 19:29:32 +00:00
JINMEI Tatuya
688bab2aea
proposet
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1005 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-26 18:52:21 +00:00
Evan Hunt
4afe7f8969
- query task queue now stores shared ptr's to query tasks;
...
this should fix a memory leak
- changed several instances of "QueryTask t" to "QueryTask newtask",
after Michael noted it as a readability problem
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1004 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-26 18:16:32 +00:00
Jelte Jansen
29c5ffbd6c
simple example to set the database file in auth (which is seen and remembered, but not passed on to the sqlite3datasource yet)
...
we should look for a decent way to do this without needing a global auth variable (jinmei has some ideas)
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1003 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-26 17:32:49 +00:00
Jelte Jansen
dbf288e25b
moved python unittests to unittests/ directory
...
removed a few prints from cfgmgr
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1002 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-26 13:57:03 +00:00
Jelte Jansen
2d71c1c3ce
add a 'shortcut' in cmdctl.py; it now only checks for existing module/command if the module is not ConfigManager (that one doesn't pass around its commands, i am thinking that that is possible, but at the moment it is completely seen as core and builtin)
...
added unittests for UIModuleCCSession
fixed a few badly named exceptions
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1001 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-26 13:40:48 +00:00
Jelte Jansen
1ff862306e
unittests complete for ModuleCCSession (python version)
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1000 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-26 12:18:28 +00:00
Jelte Jansen
718c75b966
working on ccsession tests
...
updated command callback fingerprint; the function a module provides should now
take 2 arguments; the first is a string with the name of the command, the second
an ElementPtr containing argument(s)
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@999 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-26 11:21:41 +00:00
Jelte Jansen
8988bd54ed
comment out targets for not-yet-existing unittest source files (lines to be uncommented again once they are added)
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@998 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-26 09:36:38 +00:00
Jelte Jansen
4f86dfdce8
forgot to add new test spec file
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@997 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-26 09:31:03 +00:00
JINMEI Tatuya
8109d46488
added a test case for reverse.
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@996 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-26 09:30:57 +00:00
JINMEI Tatuya
d71484bf1c
removed unnecessary const
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@995 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-26 09:24:07 +00:00
JINMEI Tatuya
73b062a068
removed unnecessary const
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@994 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-26 09:16:32 +00:00
JINMEI Tatuya
687c14c081
returning 'const uint16_t' doesn't make sense. removed const.
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@993 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-26 09:07:30 +00:00
Likun Zhang
0adcc4ff0a
1. Check if module name and command name exist according module's specification file before send it to the specified module. Parameter check need to be added later.
...
2. Let cmdctl return the command result to bindctl.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@992 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-26 08:56:37 +00:00
JINMEI Tatuya
7a84828942
propset
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@991 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-26 08:53:26 +00:00
Likun Zhang
5379b40c81
1. Refactor the function get_param_name_by_position of class CommandInfo, add add some unittest for it.
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@990 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-26 08:52:21 +00:00
JINMEI Tatuya
8d57d033cc
added more tests that currently fail (if 0'ed).
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@989 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-26 08:52:11 +00:00
Evan Hunt
404aa0602f
Committed each-ds branch to trunk (still needing formal review; see
...
ticket #50 for full details)
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@988 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-26 06:32:44 +00:00
JINMEI Tatuya
ec88f026fd
don't copy {topdir}/COPYING to auto-generated files, following a
...
suggestion in code review.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@986 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-25 23:48:16 +00:00
JINMEI Tatuya
0189b832b8
cleanup: avoid using a magic number directly
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@983 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-25 23:28:44 +00:00
JINMEI Tatuya
842d9903bd
checkpoint: slightly improve efficiency of construction
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@982 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-25 23:28:17 +00:00
JINMEI Tatuya
98b6d38558
propset
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@979 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-25 23:15:13 +00:00
JINMEI Tatuya
6011bc4117
propset
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@978 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-25 23:14:06 +00:00
JINMEI Tatuya
b61e2c989a
cleanup: moved rrsetlist_unittest.cc to tests/
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@977 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-25 23:13:21 +00:00