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

9621 Commits

Author SHA1 Message Date
Mukund Sivaraman
9a56eb7ebb [1626] Add some more testcases 2012-04-02 12:21:07 +05:30
JINMEI Tatuya
ead53d5c0f [master] trivial editorial cleanup: removed spaces in a blank line. 2012-03-30 17:03:31 -07:00
JINMEI Tatuya
c31cfdf844 [1579] editorial cleanups: shortened long lines, indentation consistency. 2012-03-30 16:43:01 -07:00
JINMEI Tatuya
cd6faa250e [1579] folded a long line 2012-03-30 15:21:41 -07:00
JINMEI Tatuya
5893305969 [1579] more suggested editorial fixes: use boolean as boolean 2012-03-30 15:18:53 -07:00
JINMEI Tatuya
4196650265 [1579] some more suggested editorial fixes:
- use boolean as boolean: if (is_xx == true) => if (is_xx)
- spacing consistency if (X){ => if (X) { // (many of this in the branch)
- folded a long line
2012-03-30 15:12:58 -07:00
JINMEI Tatuya
ad0ce258df [1579] editorial cleanup, mostly per the guidelines.
- folded long lines
- removed white space at EOL
- spacing consistency.  in particular, add one space after comma
- alignment
2012-03-30 15:01:35 -07:00
JINMEI Tatuya
fa4aa9c87c [1579] cancel unnecessary change (this will help reduce conflict on merge) 2012-03-30 14:36:22 -07:00
JINMEI Tatuya
70515e4857 [1535] (editorial) combined two shorter lines into one. 2012-03-30 11:14:06 -07:00
Jelte Jansen
65b293e599 [1535] renamed OutOfZoneFind to OutOfZone
And remove the memory-datasrc specific one
2012-03-30 17:45:45 +02:00
Jelte Jansen
532aa507e5 [1535] address review comments
- removed superfluous toText() calls in out-of-zone exception creation
- moved in-memory out-of-zone check to be part of findNode instead of separate check in find()
- added out-of-zone check to addAdditional lookup (and don't lookup unless in zone)
- removed FIND_DEFAULT parameters in unit tests (they are default values)
- change notify_out sqlite test data to have out-of-zone-but-known NS target
2012-03-30 16:54:01 +02:00
haikuo zhang
94793e41d9 [1579] If nsec and nsec3 coexist in zone, find function and findAll
function will throw error. find and findAll function will set
RESULT_NSEC3_SIGNED if the zone is signed with NSEC3.
2012-03-30 19:52:51 +08:00
Mukund Sivaraman
c1a0b11d84 [master] Move cppcheck suppressions to the source files (inline)
This fixes a cppcheck regression introduced in commit
48cfa00bb9 (I think), which caused line
numbers to change.
2012-03-30 16:17:55 +05:30
Jelte Jansen
737c4eb744 [1626] fix non-printable escaping in json conv 2012-03-30 11:14:57 +02:00
Mukund Sivaraman
1a4d0ae65b [1627] Add comment about use of try-catch blocks 2012-03-30 14:43:30 +05:30
Mukund Sivaraman
f95e202d7e [1627] Add a couple more testcases
* Case when no file is specified
 * Case where both origin and file are not specified
2012-03-30 14:43:30 +05:30
Mukund Sivaraman
6ac392ce79 [master] Fix testcase name 2012-03-30 14:43:30 +05:30
Mukund Sivaraman
376c01fc1b [1627] Fix type of exception thrown in testcase
NameParserExceptions are now caught and AuthConfigError is thrown.
2012-03-30 14:43:30 +05:30
Mukund Sivaraman
9d192aa44e [1627] Rewrite code to use local variables 2012-03-30 14:43:29 +05:30
JINMEI Tatuya
88a80126ce [1627] (editorial) folded long lines 2012-03-30 14:43:29 +05:30
JINMEI Tatuya
77eddb37c5 [1627] (editorial) folded long lines 2012-03-30 14:43:29 +05:30
Mukund Sivaraman
252fc353ba [1627] Add the namestring that triggers the exception to the message
This is so that users see what name caused problems in the log.
2012-03-30 14:43:29 +05:30
Mukund Sivaraman
1a46994e85 [1627] Unify testcases for NameParserException checks 2012-03-30 14:43:29 +05:30
Mukund Sivaraman
c80eae98a8 [1627] Check for empty origin and file in config, and throw with more relevant error msg 2012-03-30 14:43:29 +05:30
JINMEI Tatuya
ae9eae2905 [1627] fixed some style issues: untabify, position of '*', fold long lines. 2012-03-30 14:43:29 +05:30
Mukund Sivaraman
48cd72d455 bug #1627: Update error message 2012-03-30 14:43:29 +05:30
Mukund Sivaraman
06280cc6b4 bug #1627: Generate better error messages when origin is not specified 2012-03-30 14:43:29 +05:30
Mukund Sivaraman
af354fd9eb bug #1627: Rewrite code to use NameParserException 2012-03-30 14:43:28 +05:30
Mukund Sivaraman
48cfa00bb9 bug #1627: Add common base class for name parser exceptions 2012-03-30 14:43:28 +05:30
JINMEI Tatuya
16ad60fe0d [324] missing EXTRA_DIST 2012-03-30 01:06:50 -07:00
JINMEI Tatuya
9aa4dd78f5 [324] make sure dbutil is run only when the DB file exists.
otherwise make install incorrectly fails for a clean install.
2012-03-30 00:45:47 -07:00
JINMEI Tatuya
61cdd0f353 [324] cleanup: removed tests checking broken DB missing "diffs" table.
now this scenario shouldn't happen (unless the operator intentionally creates
such DB by hand) because we increased the major version.  These tests
require manually crafted DB files, and I don't think it worth the overhead.
2012-03-30 00:29:35 -07:00
JINMEI Tatuya
eee654360f [324] cleanup: sorted messages. (no content change) 2012-03-30 00:29:12 -07:00
JINMEI Tatuya
6cce379ad4 [324] use the dbutil script for pre-compatibility checker.
sqlite3-difftbl-check.py is now  unnecessary, so has been removed.
2012-03-30 00:09:44 -07:00
JINMEI Tatuya
8ef09a5063 [324] added tests for different schema versions for sqlite3_ds.
this is mostly retired, but we are still using it for the current loadzone
script.  so I re-enabled the test, removed old test stuff, and added this
new test case.
2012-03-29 23:58:31 -07:00
JINMEI Tatuya
5b0ea09b5f [324] added test cases for different SQLite3 schema versions.
also made a minor cleanup: use char* instead of string in the namespace level.
it should be more robust against initialization fiasco.
2012-03-29 23:40:17 -07:00
JINMEI Tatuya
52f1b58737 [324] upgraded all test SQLite3 data to schema version 2.0
(except for some "intentionally broken" ones).  these were semi-automatically
convered by b10-dbutil.  "nodiffs" needed to be tweaked by hand after upgrade
for their test.  and all unit/system/lettuce tests now passed.
2012-03-29 21:34:54 -07:00
JINMEI Tatuya
6736c51047 [324] fixed typo in schema def, and make sure setting the minor version. 2012-03-29 21:25:20 -07:00
JINMEI Tatuya
3104e910b9 [324] fixed typo in the new schema definition, and make sure set minor version. 2012-03-29 21:24:23 -07:00
JINMEI Tatuya
01d11e9fe7 [324] re-increased the assumed latest version dbutil (to 2.0).
test cases that rely on the latest version and were temporarily disabled
were now re-enabled.
2012-03-29 18:06:26 -07:00
JINMEI Tatuya
a3ccc5c647 [324] make sure latest SQLite3 version (2.0) will be used on creation.
also, in sqlite3 accessor and the old data source API, check both the
major and minor versions, log any mismatches, and throw if major doesn't
match.  right now there's no test for it, which is bad, but this seems to
be best way forward from the given patch.
2012-03-29 17:55:59 -07:00
JINMEI Tatuya
07403ec675 [324new2] Merge branch 'trac324new' into trac324new2 2012-03-29 15:51:28 -07:00
JINMEI Tatuya
ce81fab641 [1535] (editorial) folded long lines 2012-03-29 15:26:42 -07:00
Mukund Sivaraman
061f5a1ae1 [master] Add .gitignore files 2012-03-30 02:06:39 +05:30
Jelte Jansen
9f4292fa5d [1626] remove wrong comment line 2012-03-29 18:07:50 +02:00
Jelte Jansen
5a4cf2dd59 [1626] do not escape forward slash in toJSON 2012-03-29 17:56:30 +02:00
Jeremy C. Reed
fe5549bb7e [master]Revert "[master] Show testnames when running Python unit tests"
This reverts commit 6a9dbeff7d.

Most builder systems use Python 3.1.

This verbosity feature was added in Python 3.2.
2012-03-29 10:14:35 -05:00
Jelte Jansen
63e4fc15cc [1626] escape JSON strings correctly 2012-03-29 17:10:45 +02:00
Jelte Jansen
2df61b4c21 [1535] improve OutOfZoneFind text and docstring 2012-03-29 15:20:50 +02:00
Mukund Sivaraman
6a9dbeff7d [master] Show testnames when running Python unit tests 2012-03-29 18:48:41 +05:30