2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-29 13:07:50 +00:00

9667 Commits

Author SHA1 Message Date
Michal 'vorner' Vaner
438b5b183c [1793] Fix variable name
We have camelCase in many places, but variable names are not one of
those.
2012-04-19 11:07:35 +02:00
JINMEI Tatuya
da4d8df9ee [master] changelog for #1891 2012-04-19 01:08:39 -07:00
JINMEI Tatuya
672f129700 [master] Merge branch 'trac1891' 2012-04-19 00:58:32 -07:00
Jelte Jansen
a6cc81d79b [1843] lettuce test for builtin init_authoritative_server 2012-04-19 00:32:59 +02:00
Jelte Jansen
a9b59f8a77 [1843] half-related cleanup; return copies of spec parts
so that if they have nested default values, which may be set to 'local', and modified later, the original isn't changed. (technically it should be enough to do the copy when setting, but it's safer to copy them entirely for now)
2012-04-19 00:31:19 +02:00
JINMEI Tatuya
bcb62dd7e4 [1891] enabled some DatabaseClientTest for add/del NSEC3s for SQLite3, too.
They were originally planned to be enabled with the completion of this branch,
but I forgot to enable them before review.  As expected, they just passed
for SQLite3, too.
2012-04-18 14:26:05 -07:00
JINMEI Tatuya
400ff18a8c [1891] added bindXXX methods to StatementProcessor as sqlite_bind_xxx wrapper.
As suggested in review.

This will make the caller code simpler.  It's also safer in that the caller
doesn't have to manipulate the statement separetely (in the previous way
StatementProcessor and the caller could use different statements).

Also made naming more consistent: in the very initial version the class was
called "Executer" and then renamed to Processor.  Some variables of this class
were still named "exec", etc, but it's more consistent if they are named
like "proc".
2012-04-18 14:18:35 -07:00
Jelte Jansen
1c3fe6e537 [1843] add a builtin command set for execute
moved exception catching around a bit, so the set does not get completed if one of its steps fails
2012-04-18 22:07:06 +02:00
Stephen Morris
7eaf3a710c [1528] Modifications to some of the comments 2012-04-18 19:10:56 +01:00
Jelte Jansen
64f69a1433 [1843] basic bindctl execute directives and lettuce tests 2012-04-18 16:29:17 +02:00
Jelte Jansen
233c7295de [1843] initial addition of 'execute' command set 2012-04-18 15:26:24 +02:00
Michal 'vorner' Vaner
52707b1951 [1793] Minor editorial fixes 2012-04-18 10:27:45 +02:00
Michal 'vorner' Vaner
f782145ec0 [1793] Split the config lookup out of validate
It is now placed into the getZoneConfig method. This is code cleanup
only, functionality should not be changed.
2012-04-18 10:08:42 +02:00
JINMEI Tatuya
f93cd951e3 [master] Merge branch 'trac1781' 2012-04-18 00:50:24 -07:00
JINMEI Tatuya
e7c91fe725 [1891] (unrelated) cleanup: removed 'GET_RECORD_DIFF' sqlite3 statement.
this was intended to be a temporary workaround while developing writability,
and should have been cleaned up in #1746.  no one uses this anymore, so
we can safely remove it.
2012-04-17 21:10:23 -07:00
JINMEI Tatuya
14a13b8494 [1891] added a check in xfrin lettuce test for xfr with NSEC3.
- the test zone DB was updated by hand with an NSEC3 record in the nsec3 table.
- changes to transfer.py was the same one as that in quering.py to support IPv6
  transport
2012-04-17 21:05:23 -07:00
JINMEI Tatuya
47f1415387 [1891] reject attempt of deleting NSEC3 before start transaction. 2012-04-17 17:52:18 -07:00
JINMEI Tatuya
9a4619a0a1 [1891] implemented sqlite3 deleteNSEC3RecordInZone. 2012-04-17 17:48:52 -07:00
JINMEI Tatuya
fb7201b9ff [1891] be sure to reject addNSEC3 attempt before begin transaction. 2012-04-17 17:29:39 -07:00
JINMEI Tatuya
bea9aaf144 [1891] make sure the 'owner' columns is filled on addNSEC3RecordToZone.
this is a kind of intermediate hack, and we should revisit this point
at the level of API/schema design.
2012-04-17 17:23:00 -07:00
JINMEI Tatuya
d7cf5f81d9 [1891] (unrelated) regression fix: make sure multiple updates after rollback.
this is a fix to the similar bug as the one fixed in the previous commit,
but for the rollback case.
2012-04-17 16:37:28 -07:00
JINMEI Tatuya
91cb18e244 [1891] make sure nsec3 table is cleared when replacing a zone.
the test for this uncovered one old regression: accessor cannot be reused
for multiple updates.  it was fixed in this commit, too.
2012-04-17 16:32:59 -07:00
JINMEI Tatuya
7aac25a59b [1891] implemented addNSEC3RecordToZone, 1st step.
defined a new statement for updating the nsec3 table, and used it from
addNSEC3RecordToZone.  some validation checks are still missing.
also made simple cleanup of removing unnecessary namespace qualifiers.
2012-04-17 15:44:40 -07:00
JINMEI Tatuya
358beb2e1e [1891] (unrelated) cleanup: unify the definition of faked NSEC3 strings.
defining const values in a shared header file isn't illegal, but it
could cause definition bloat (it's up to the linker implementation
whether to combine them).  in practice this probably doesn't matter
much for this limited scope purpose, but it's still cleaner to avoid
the bloat.
2012-04-17 14:49:10 -07:00
JINMEI Tatuya
d68d574b69 [1891] Merge branch 'trac1781' into trac1891 2012-04-17 13:04:40 -07:00
Jelte Jansen
c3be9fa408 [master] removed test db file that shouldn't be in repos
It gets (re)created on tests, and does not need to be in the repository
2012-04-17 16:13:00 +02:00
Jelte Jansen
c9b2b1cc30 [master] Fix tab in Makefile
previous commit had a mangled tab due to a copy-paste error from the original diff
2012-04-17 15:52:15 +02:00
Jelte Jansen
0422339a5a [master] set B10_FROM_BUILD in auth tests
So that the sqlite3_ds.so is found correctly
This has been acked on jabber, and is tentatively waiting full resolution in ticket #1895
2012-04-17 15:40:49 +02:00
Michal 'vorner' Vaner
4deb49cf84 [1793] More tests
Checking various error modes, like unreadable database, wrong or missing
configuration.
2012-04-17 13:36:34 +02:00
Michal 'vorner' Vaner
f00dd21c6c [1793] Update the loadzone command
It now looks into the configuration and checks if the zone should be
loaded from the sqlite3 data source instead of the text file.
2012-04-17 11:49:17 +02:00
Stephen Morris
95410c8037 [1704] Changes to documentation regarding jumbled up messages
Logging output from different processes can get jumbled up if written
to stderr (because messages are output in multiple write(2) operations.)
This change updates the documentation to suggest that the user switch
to stdout if that happens.
2012-04-17 10:23:47 +01:00
Michal 'vorner' Vaner
89071a2140 Changelog for #1782 2012-04-17 10:47:36 +02:00
Michal 'vorner' Vaner
36efa7d10e Merge #1782 2012-04-17 10:46:13 +02:00
JINMEI Tatuya
a318061e3c [1781] Merge branch 'master' into trac1781 with fixing conflicts.
As part of conflict resolution, I've extended the unified textToRRset
so it takes an optional 'origin' parameter.  It's necessary to convert
SOA RRs.
2012-04-16 17:14:03 -07:00
JINMEI Tatuya
4a7381b8b8 [1781] renamed the new NSEC3 methods.
so it will be clearer that they are used only for NSEC3-related records.
as suggested in review.
2012-04-16 14:43:14 -07:00
JINMEI Tatuya
211934fe44 [1781] doc: explicitly noted DataSourceError can be thrown from NSEC3 methods.
(as suggested in review)
2012-04-16 14:16:18 -07:00
JINMEI Tatuya
136e63b823 [1781] small editorial/style fixes: updated comment and use unnamed namespace.
the previous "TODO" comment was a leftover when I moved it from the datasrc
test.  also moved the callback function to the unnamed namespace as it
doesn't have to be referrable from others.
2012-04-16 14:02:50 -07:00
JINMEI Tatuya
149ac337e9 [master] added boss configuration to the newly added lettuce tests with #1792.
the server components now need to be specified explicitly.
2012-04-16 13:56:41 -07:00
JINMEI Tatuya
93f11d2a96 [master] Merge branch 'trac1792' with fixing conflicts. 2012-04-16 13:47:51 -07:00
Jeremy C. Reed
a7dbb75a88 [master]Merge branch 'master' of ssh://git.bind10.isc.org//var/bind10/git/bind10 2012-04-16 14:24:58 -05:00
Jeremy C. Reed
952cf4c1d9 [master] add boost license used by the external code 2012-04-16 14:24:20 -05:00
Jeremy C. Reed
277af902ee [master] mention external code using boost license 2012-04-16 14:24:01 -05:00
Michal 'vorner' Vaner
7f108b1ad1 [1793] Tests for the loadzone command
It puts the configuration of the zone (which is loaded from SQLite3
database) and the database at the disposition of the test. Then it asks
it to load the zone and it expects it to load it.
2012-04-16 15:14:21 +02:00
Michal 'vorner' Vaner
a93523dfcf [1793] Remove generated file
The file is created during tests so the original one is not destroyed.
So it makes no sense to store the file that is being modified by the
test each run in git.
2012-04-16 15:01:58 +02:00
Michal 'vorner' Vaner
56bd002f57 Merge #1577
Conflicts:
	src/lib/datasrc/tests/memory_datasrc_unittest.cc
2012-04-16 12:21:41 +02:00
Mukund Sivaraman
4653281fb8 [1818] Add ChangeLog entry 2012-04-15 15:13:14 +05:30
Mukund Sivaraman
0f9b1d45d3 [1818] Switch back to DEBUG log level for process starting messages 2012-04-15 15:11:37 +05:30
Mukund Sivaraman
d3fd5c7fa4 [1818] Add spacing for consistency 2012-04-15 15:11:36 +05:30
Michal 'vorner' Vaner
ae46e78f9e [1818] Removed spaces at the end of line 2012-04-15 15:11:21 +05:30
Mukund Sivaraman
0464833bec [1818] Untabify *.feature files 2012-04-15 15:09:46 +05:30