JINMEI Tatuya
9b060a79e2
[1792] added support for "sqlite3" filetype of inmemory zone.
2012-04-09 16:35:57 -07:00
JINMEI Tatuya
501c5f296f
[1792] added supplemental utility for tests using SQLite3 backend.
...
it creates a temporary SQLite3 DB file from a shared template with a specified
stream of zone data. this will help reduce the number of pre-generated DB
files in the repository (which will be subject to upgrading the schema).
2012-04-09 16:34:16 -07:00
JINMEI Tatuya
99adadb049
[1791] comment update.
...
the revised comment didn't make sense in the generalized context of
test_client. the updated comment clarifies that.
2012-04-09 16:30:42 -07:00
JINMEI Tatuya
e267a6928a
[1791] moved <cstdlib> to test_client.cc now the latter calls system().
2012-04-09 16:26:11 -07:00
JINMEI Tatuya
08d1332164
[1792] moved rwtest.sqlite3 under lib/testutils so that it can be shared.
...
it's going to be used in subsequent auth tests.
2012-04-09 15:55:30 -07:00
JINMEI Tatuya
7610a7bace
[1791] updated the log description for mismatched TTLs.
...
it didn't seem correct to say "it's not allowed on the wire". this
restriction is more about the definition of the RRset concept, rather than
what we'd see in the wire. also added a reference to the relevant RFC (2181).
2012-04-09 13:27:23 -07:00
JINMEI Tatuya
0996aa92a1
[1791] more cleanup: remove variable 'rdata' and make it a member variable.
...
this way we can also avoid creating the same RDATA twice. textual row
variables were renamed to *_txt_ for consistency.
2012-04-09 13:21:08 -07:00
JINMEI Tatuya
f1f0bc0044
[1791] fixed the bug in database iterator wrt RRs of mixed TTLs.
...
the previous version didn't always reset it to the smallest TTL; the new test
added in the previous commit uncovered it. this version passed that test.
also made some cleanups in the code reducing temporary variables for better
readability.
2012-04-09 13:05:36 -07:00
JINMEI Tatuya
fb9b8cd9f1
[1791] added a database iterator test that would uncover an (unrelated) bug.
...
it checks the case for RRsets with the TTL of the first RR is later than that
of the second. The original implementation has a bug in this case, but the
previous test was insufficient and fail to discover it.
2012-04-09 11:10:49 -07:00
Michal 'vorner' Vaner
16a1358aa2
[1577] Port a NSEC3 test from memory to database
...
One test is taken and ported to the database. It does compile partially
(the rest is commented out for now) and does not pass. Also, another
function moved to common file.
2012-04-09 16:46:03 +02:00
Michal 'vorner' Vaner
c02b9f4c1f
[1577] Move TestNSEC3HashCreator to separate file
...
I want to reuse it in another test, so taking the help mock class out.
2012-04-09 15:21:33 +02:00
JINMEI Tatuya
aaf4fb3d70
[1792] unrelated cleanup: constify and fold a long line
...
just noticed them and the changes are small, so I did it here.
2012-04-05 21:34:01 -07:00
JINMEI Tatuya
2397c86b17
[1792] unrelated style fix per guideline. should be obvious from the diff.
2012-04-05 17:37:29 -07:00
JINMEI Tatuya
2fa92e2396
[1792] Merge branch 'trac1791' into trac1792
2012-04-05 17:27:47 -07:00
JINMEI Tatuya
9858d6dd9a
[1791] missing regression fix: needed to adjust python datasrc tests.
...
this is a result of the "unrelated" bug fix at commit b446618.
I also clarified the magic number of expected RRsets in comments.
2012-04-05 17:26:15 -07:00
JINMEI Tatuya
654f0cbd18
[1792] Merge branch 'trac1791' into trac1792
2012-04-05 16:34:40 -07:00
JINMEI Tatuya
dcdd4e10f2
[1791] added a new file, which was just forgotten.
...
consider this as part of cf16578.
2012-04-05 16:33:46 -07:00
JINMEI Tatuya
68308bd95e
[1792] Merge branch 'trac1791' into trac1792
2012-04-05 16:27:07 -07:00
JINMEI Tatuya
d5531c9856
[1791] added a couple of more tests.
...
- confirm separating iterator triggers an exception as expected.
- try to load a bit more realistic zone with some trivial checks.
2012-04-05 16:12:26 -07:00
JINMEI Tatuya
ea528f50fd
[1791] complete inmemory loader from iterator w/ consideration for RRSIGs.
...
the iterator is now assumed to be created in the 'non separate' mode based
on the bug fix of the previous commit.
tests are updated with RRSIGs, and about how to create the iterator.
doxygen comments clarify this point too.
2012-04-05 15:54:16 -07:00
JINMEI Tatuya
b446618815
[1791] make sure DB iterator distinguishes 2 RRSIGs of different types covered.
...
this could be a separate bug fix, but this branch would be easier to implement
with this fix, so I chose to fix it here.
2012-04-05 14:46:55 -07:00
Jeremy C. Reed
4df912c903
[master] increase the BIND 10 version to today's date
2012-04-05 12:07:57 -05:00
Jeremy C. Reed
81300648c7
[master] ticket #1823 remove ASIO_DISABLE_KQUEUE hack
...
We had this for a behavior on NetBSD, the new ASIO (already in our
source tree) has workaround for it.
This is for ticket #1823 .
2012-04-05 12:04:23 -05:00
Jelte Jansen
97389bad9b
[1789] refactor remote_config handling
...
moving add_remote to initialization, and cleanup to shutdown code
update 'database file' in remote config callback handler
2012-04-05 15:02:29 +02:00
Jelte Jansen
8f3e82a987
[master] Merge branch 'trac1757'
2012-04-05 11:34:38 +02:00
Jelte Jansen
44d2850a0d
[1845] also check new rollback behaviour
...
And add corresponding EXPECT statements on the 'running' transaction
2012-04-05 11:30:11 +02:00
JINMEI Tatuya
e663cfecd5
[master] Merge branch 'trac1788'
2012-04-05 01:20:18 -07:00
JINMEI Tatuya
efb79bb638
[1788] removed the default for 'filetype' from the spec file.
...
for optional items setting the default doesn't make sense, but we also have
test cases where syntax validation is skipped, so changing it to non-optional
will break existing test cases. at least for now, it seems to make most sense
to keep it optional and define the default within the parser code.
2012-04-05 09:53:36 +02:00
JINMEI Tatuya
2645b19434
[1788] used a simpler version of validateConfig() (not taking 'errors' list).
...
in this test we are only interested in the specific config is valid or not,
so we didn't need the 'errors'. (actually I didn't notice there was this
version of validateConfig() previously).
2012-04-05 09:53:32 +02:00
JINMEI Tatuya
00bc99c5a2
[1788] reject in-memory file types other than "text" for now.
2012-04-05 09:53:25 +02:00
JINMEI Tatuya
f48ddb1460
[1791] first implementation of in-memory load() from another data source.
...
It simply inserts each RRset from the iterator to the internal in-memory
tree. still passed basic tests, but incomplete at this moment.
2012-04-05 00:24:47 -07:00
JINMEI Tatuya
cf16578b3e
[1791] initial refactoring: extracted createSQLite3Client so it can be shared.
...
the plan is to use it in in-memory tests for this branch. No functional change
or add/delete test cases yet.
2012-04-04 21:40:25 -07:00
Naoki Kambe
92cc4a7b43
[1852] Add a regression test for checking StatsHttpd is no longer registered in Cfgmgr after its unexpected shutdown
2012-04-05 13:10:45 +09:00
Naoki Kambe
ed1f3349ee
[1852] When opening a HTTP socket is unexpectedly failed due to a socket error e.g. Address already in use, it explicitly closes the CC Session already opened before it shuts down.
2012-04-05 13:10:23 +09:00
JINMEI Tatuya
635e3dae01
[master] changelog for #1773
2012-04-04 15:30:12 -07:00
JINMEI Tatuya
ceaa247d89
[master] Merge branch 'trac1773new'
2012-04-04 15:28:29 -07:00
JINMEI Tatuya
dddc267e55
[master] Revert "[master] Merge branch 'trac1773'"
...
This was an older version of the branch, and wasn't expected to be a
merge target. I'll revert it and then merge the right branch.
2012-04-04 15:27:21 -07:00
JINMEI Tatuya
d5e250eff9
[master] Merge branch 'trac1773'
2012-04-04 15:09:19 -07:00
JINMEI Tatuya
923c859c0f
[master] Merge branch 'trac1820'
2012-04-04 14:43:57 -07:00
JINMEI Tatuya
7f72027665
[master] changelog for #324
2012-04-04 14:41:53 -07:00
JINMEI Tatuya
8644866497
[master] Merge branch 'trac324new2' with fixing conflict for
...
src/lib/python/isc/notify/tests/testdata/test.sqlite3
2012-04-04 14:38:14 -07:00
JINMEI Tatuya
36ec15a272
[1788] more test, syntax cleanup
...
- added one test case for checking the new "filetype" item is optional.
- also added a test in MemoryDatasrcConfigTest to see whether "filetype" is
accepted.
- others should be trivial editorial cleanup.
2012-04-04 10:00:06 -07:00
Jelte Jansen
c30d4ccd7f
[1757] use explicit +noedns in lettuce dig calls
2012-04-04 15:36:11 +02:00
Jelte Jansen
8a33648413
[1845] only do rollbackFailure test for older sqlite3 lib
...
test is a noop for versions 3007011+
2012-04-04 14:43:34 +02:00
Mukund Sivaraman
49c83cc4d3
[master] Update .gitignore files
2012-04-04 17:18:35 +05:30
JINMEI Tatuya
f4489fa39c
[1788] extended auth.spec so an inmemory zone has an optional filetype item.
...
also added a new set of unittests that verify the new spec syntax.
2012-04-03 20:47:35 -07:00
JINMEI Tatuya
350e65820e
[1820] removed constructors concrete DNSServer classes with addre+port.
...
This is part of the cleanup. as we removed the corresponding
interface at DNSService, no one now uses these constructors.
2012-04-03 16:38:53 -07:00
JINMEI Tatuya
8ae80ada66
[master] make sure a large int constant is unsigned.
...
this will fix build failure on some systems
2012-04-03 16:12:05 -07:00
JINMEI Tatuya
fe9349ae3a
[1773] missing initialization
2012-04-03 14:51:35 -07:00
JINMEI Tatuya
d9ede029ea
[master] Merge branch 'trac1746'
2012-04-03 14:39:06 -07:00