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

184 Commits

Author SHA1 Message Date
Michal 'vorner' Vaner
c6bb043854 [1758] Make it compile
By providing methods that throw NotImplemented.
2012-03-14 15:59:10 +01:00
JINMEI Tatuya
bb4cc9928f [1607] initial refactoring: change FindResult to Finder::Context and use
shared poitners to it instead of real objects.
no functional change yet, so the conversion is basically only about the
syntax.
2012-02-29 15:09:57 -08:00
JINMEI Tatuya
945e0d9a67 [1611] clean up: completely removed commented out test data that made test fail.
Removing them was actually correct as commented with "=>": they were not
atcually a wildcard match.  The interface change correctly caught the
differences and made the test fail.  (I separated the change of this point
from the first commit so that the intent is clearer.)
2012-01-23 14:09:54 -08:00
JINMEI Tatuya
2e0fd5445e [1611] updated the database zonefinder implementation to use new FindResult.
specifically, it now uses the separate flags field for wildcard and NSEC/NSEC3
signed information.  WILDCARD(_xxx) result codes were deprecated and removed.
Adjusted tests and python code accordingly.  Finally removed the temporary
workaround in auth::Query.
2012-01-23 13:57:41 -08:00
JINMEI Tatuya
ad1a5ee64e [1430] make sure that out-of-zone qname results in NXDOMAIN for find()
and findAll() (compatible with inmemory data source).
2011-12-21 00:23:20 -08:00
Michal 'vorner' Vaner
a47f01b6c8 Merge #1483 2011-12-20 15:11:59 +01:00
Michal 'vorner' Vaner
7ffef24a48 [1483] Protect the method by exception 2011-12-13 14:22:09 +01:00
Michal 'vorner' Vaner
b2da8d97a3 [1483] Implement findAll on database 2011-12-13 14:07:00 +01:00
Stephen Morris
f1f4ce3e30 [1470] replaced shared_ptr by boost::shared_ptr
shared_ptr is a candidates for the next STL version and Windows has
already adopted it.  This change removes ambiguity between the Boost
and Windows versions of the class.
2011-12-13 11:33:57 +00:00
Stephen Morris
c4ca960f31 [1470] Change "for" loop initialization to more standard style 2011-12-12 18:37:57 +00:00
Stephen Morris
5cdcda0439 [1470] Correct data type of member variable in MockAccess::MockIteratorNameContext 2011-12-12 18:20:46 +00:00
Michal 'vorner' Vaner
cbddeb5ad8 [1438] Strip the datasources of target parameter
Is is being deprecated by a separate method in this branch, so get rid
of it.
2011-12-09 19:18:20 +01:00
JINMEI Tatuya
c1138d13b2 [master] Merge branch 'trac1332' with fixing conflicts.
Conflicts:
	ChangeLog
	src/lib/datasrc/sqlite3_accessor.h
	src/lib/datasrc/tests/database_unittest.cc
2011-11-18 09:38:53 -08:00
Jelte Jansen
46bd9a8e6e Merge branch 'trac1384' 2011-11-18 08:33:26 +01:00
JINMEI Tatuya
9f89f07adc [1332] added more checks in the journalReader test. 2011-11-16 15:50:15 -08:00
JINMEI Tatuya
fdefb47da0 [1332] fixed a bug in the previous update to the test: termination condtion
was wrong.
2011-11-16 15:48:56 -08:00
JINMEI Tatuya
93a5d45d9c [1332] changed a type test back to mock specific test when it doesn't have
database specific checks.  also add more detailed tests in checkJournal()
to support generic databases.
2011-11-16 15:37:28 -08:00
Stephen Morris
78770f52c7 Merge branch 'master' into trac1330 2011-11-16 09:24:06 +00:00
Michal 'vorner' Vaner
713160c9be Merge #1331 2011-11-16 08:26:23 +01:00
Michal 'vorner' Vaner
e9e0f96594 [1331] Forgotten test update
The exception was changed, so must be the test.
2011-11-15 10:58:57 +01:00
JINMEI Tatuya
9ab6902f20 [1332] added documentation reagrding ZoneJournalReader. 2011-11-14 23:34:02 -08:00
JINMEI Tatuya
e84f2aa5e9 [1332] comment update 2011-11-14 18:50:03 -08:00
JINMEI Tatuya
dabf62d544 [1332] handle bad data from data source. it revealed a bug in the mock
accessor, which was fixed, too.
2011-11-14 18:48:39 -08:00
JINMEI Tatuya
94ec743d73 [1332] detect read attempt and beyond the end of sequence and reject it by
exception.  a new generic exception "InvalidOperation" was introduced.
2011-11-14 17:43:20 -08:00
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
Jelte Jansen
c2213ce728 [1384] rename test for consistency 2011-11-14 15:00:52 +01:00
Jelte Jansen
8780f99820 [1384] change adjust_ttl to separate_rrs 2011-11-11 18:34:52 +01:00
Michal 'vorner' Vaner
0d94cca23a [1331] Code cleanups 2011-11-11 15:40:19 +01:00
Michal 'vorner' Vaner
219879a5c8 [1331] Propagate exception 2011-11-11 15:17:56 +01: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