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

156 Commits

Author SHA1 Message Date
JINMEI Tatuya
dca136175c [1332] updated the 'no such zone' case; return an error code with null pointer
instead of exception.  Also refactored the test code a bit to minimize
duplicate.
2011-11-14 17:17:23 -08:00
JINMEI Tatuya
625aea7630 [1332] handled the "no such serial" case. To distinguish various errors
change the return value of the journal reader factory to a pair of result
code and an object pointer.  added some more tests.
2011-11-14 16:57:41 -08:00
JINMEI Tatuya
0878c77ba4 [1332] [1332] implement a bit more complete version of getNextDiff() with more
detailed tests.  The MockAccessor was updated to have workable getDiffs().
2011-11-10 22:52:49 -08:00
JINMEI Tatuya
efeb506e62 [1332] [1332] updated tests for later changes: always prepare a fresh rwtest.sqlite3
so that we can test with an empty diffs table.
2011-11-10 22:51:54 -08:00
JINMEI Tatuya
fda514f6b5 [1332] [1332] refactored test cases bit: use TYPED_TEST for existing journal tests
so that we can test them with SQLite3 as much as possible.
2011-11-10 22:50:55 -08:00
JINMEI Tatuya
2afbc7d356 [1332] [1332] added a minimal framework for ZoneJournalReader. It's currently
almost empty with bootstrap tests.
2011-11-10 22:47:58 -08:00
JINMEI Tatuya
ce28b51d36 [1332] Merge branch 'trac1331' into trac1332 2011-11-10 22:38:26 -08:00
JINMEI Tatuya
9753568c85 [1332] Merge branch 'trac1330' into trac1332 2011-11-10 22:38:22 -08:00
Jelte Jansen
46c4fc8c24 [master] Merge branch 'trac1217'
Conflicts:
	src/lib/datasrc/database.cc
	src/lib/datasrc/tests/database_unittest.cc
2011-11-10 11:55:25 +01:00
JINMEI Tatuya
6da32eaece [1331] don't try to initialize an array from an array (not sure whether
there's even any compiler that allows it, but at least it shouldn't
be portable if not illegal.)
2011-11-09 14:57:30 -08:00
Michal 'vorner' Vaner
d60907a85b [1331] Fix tests 2011-11-09 20:16:07 +01:00
Michal 'vorner' Vaner
046729c743 [1331] Tests for the journal 2011-11-08 19:20:56 +01:00
JINMEI Tatuya
8cea64b69a [master] fixed build error on solaris. apparently the boost namespace
hid the definition of uint32_t.  also, replaced an unused boost header file
(foreach) to a more relevant one (shared_ptr).
may be beyond a super-trivial level, but as an urgent care fix I'll push it
now.  it was confirmed on our solaris box.
2011-11-08 07:28:25 +00:00
Stephen Morris
918c35143e [1330] Distinguish between no records for zone and none for serial number 2011-11-04 20:38:49 +00:00
Stephen Morris
81b1ba0e9c [1330] Sorted out clearing up after exception is thrown 2011-11-04 18:31:02 +00:00
Stephen Morris
fc17063223 [1330] Merge branch 'trac1329' into trac1330
Conflicts:
	src/lib/datasrc/sqlite3_accessor.cc
	src/lib/datasrc/tests/testdata/test.sqlite3

Merged with trac 1329 (a related change) to avoid the code on
the two branches diverging too much and to reduce the amount
of effort when the code is finally merged to master.
2011-11-04 17:36:44 +00:00
JINMEI Tatuya
0ea04c4bb2 [1329] a snapshot push: including diffs table schema and initial code for
adding diffs.
2011-11-03 09:43:28 -07:00
Stephen Morris
01b4b95b5f [1330] Basic definitions and test data complete 2011-11-03 15:49:26 +00:00
JINMEI Tatuya
2104208cfc [1287] added a note that startTransaction() cannot be called more than once
on a MockAccessor object.  Also added check code to detect any such attempt.
2011-11-02 10:53:15 -07:00
JINMEI Tatuya
7e1e5f38f1 [1287] fixed a typo in a test name 2011-11-02 10:45:58 -07:00
Jelte Jansen
64d4ac8b0f [1217] change 'individual_rrs' to 'adjust_ttl'
with a slightly different interpretation; if false, treat differing TTLs as an indicator of different RRsets
2011-11-02 15:12:45 +01:00
Jelte Jansen
e16e284794 [1217] add argument to getIterator to return each RR in its own RRset
and implement it for the sqlite3 backend
for the memory backend, it may not be necessary, but it might depend on how we add them
2011-11-01 11:49:08 +01:00
JINMEI Tatuya
1cdc35417c [1287] use a cloned accessor for iterator. added various minor test cases. 2011-10-31 23:46:44 -07:00
JINMEI Tatuya
0ec187bc1e [1287] make sure the entire iterator session is in a transaction. 2011-10-31 21:27:11 -07:00
JINMEI Tatuya
ce39dd192f [1287] updated the mock iterator so that the first record will be A, and
in a subseuqnet it could miss SOA after update.
also cleanup the iterator test using checkRRset.
2011-10-31 20:56:24 -07:00
JINMEI Tatuya
eb35651d68 [1287] added a test to confirm the returned getSOA() value is equal to the
SOA contained in the iteration result.
2011-10-31 20:27:02 -07:00
JINMEI Tatuya
e5c133124d [1287] first step of getSOA(). perform find(SOA) before starting iteration,
and have the new method return the result.
note: I decided to change it from the more generic 'getFinder()', because
I found it wouldn't work for some types of database backend such as MySQL.
2011-10-31 16:52:56 -07:00
JINMEI Tatuya
1aedd1b56b [1287] added generic startTransaction() method 2011-10-31 15:20:36 -07:00
JINMEI Tatuya
0f988d9f9f [1287] a small refactoring: removed "Update" from commit/rollback so that
they can be used in more generic context.  We'll use them in subsequent
changes.  other than the method name change no behavior change yet.
2011-10-28 01:24:58 -07:00
JINMEI Tatuya
9ebdb058e6 [1305] fixed typo in comments 2011-10-18 09:27:06 -07:00
JINMEI Tatuya
acab4a018b [1305] pass parameter by reference, not by object (intended to be the former,
but apparently forgot to type in '&')
2011-10-17 15:52:30 -07:00
JINMEI Tatuya
41c8d6f117 [1305] added NO_WILDCARD option for ZoneFilder::find() 2011-10-14 23:57:31 -07:00
JINMEI Tatuya
14909927e0 [1305] refactoring the test: extended the MockAccessor to generalize findPreviousName(). 2011-10-14 23:06:31 -07:00
JINMEI Tatuya
4a345eca21 [1305] clarified the behavior of various variants of NXRRSET.
originally I intended to introduce a new result code, WILDCARD_EMPTY, but
on furhter thought and look it seems we don't need it.  so this commit
is to just clarify the doxygen comments more.
2011-10-14 17:02:11 -07:00
JINMEI Tatuya
6217a55056 [1305] added a test case for DNAME on wildcard.
(not directly related to the subject of this task, but to clarify the
behavior)
2011-10-14 17:01:10 -07:00
JINMEI Tatuya
32012c8148 [1305] introduce WILDCARD_CNAME for ZoneFinder::Result, and use it for CNAME
on a wildcard.
2011-10-14 17:00:30 -07:00
JINMEI Tatuya
ff23bfe6d6 [1216] deprecated the SQLite3Accessor constructor that takes RRClass 2011-10-06 17:29:08 -07:00
JINMEI Tatuya
53d45f54e3 [master] introduced a short term workaround to fix build failure with clang++
on freebsd by reducing the amount of code to be compiled.
okayed on jabber.  will need to create a ticket for a more complete solution.
2011-09-29 19:05:13 +00:00
Michal 'vorner' Vaner
b8e90124c1 [1177] Tests for names before origin 2011-09-26 13:12:52 +02:00
Michal 'vorner' Vaner
5cf1b7ab58 [1177] Don't throw on missing NSEC
Because it can't be distinguished from unsigned zone for now. Should be
temporary solution for now.
2011-09-26 13:04:18 +02:00
Michal 'vorner' Vaner
17d9827aa4 [1177] Bugfix: don't check for NS-alone in apex 2011-09-26 12:52:15 +02:00
Michal 'vorner' Vaner
09349cf206 [1177] Don't wrap around in previous 2011-09-23 11:35:12 +02:00
Michal 'vorner' Vaner
dd340b32df [1177] Empty nonterminal asterisk 2011-09-21 12:55:25 +02:00
Michal 'vorner' Vaner
30c277567f [1177] Remove FIXME comments
As the concerns there seem to be false ones.
2011-09-21 11:07:42 +02:00
Michal 'vorner' Vaner
a59c7f28a4 [1177] Don't propagate name exceptions from findPreviousName
They should be turned into DataSourceError instead, as they mean bad
data in the DB.
2011-09-21 10:53:09 +02:00
Michal 'vorner' Vaner
f16de89251 [1177] Little bit more tests 2011-09-20 16:46:37 +02:00
JINMEI Tatuya
51c4b53945 [1177] some minor, mainly editorial, changes: coding style, typo, simplify, constify, etc. 2011-09-13 22:55:29 -07:00
Michal 'vorner' Vaner
cb4d844364 [1177] Empty non-terminal case 2011-09-09 14:19:41 +02:00
Michal 'vorner' Vaner
05512e090c [1177] Tests for NXDOMAIN NSEC case 2011-09-09 13:47:06 +02:00
Michal 'vorner' Vaner
c35f6b15bb [1177] Implement previous name for SQLite3 2011-09-09 13:03:29 +02:00