Michal 'vorner' Vaner
c90033f1d9
[2377] Fix test and check error
...
It seemed the wrong pushSource was used due to some automatic
conversion. Also, it complained it couldn't find the file, because a
slash was missing (and nobody noticed before).
2012-12-03 11:22:43 +01:00
Michal 'vorner' Vaner
7e5b7f352d
[2377] Create Rdata
...
And fill it into the rrset.
2012-12-03 11:20:09 +01:00
Michal 'vorner' Vaner
92226343e0
[2377] Eliminate needless variable
...
This was from the template in trac and it is currently not needed.
2012-12-03 11:19:49 +01:00
Michal 'vorner' Vaner
57fda3f1db
[2377] Skeleton of the master loader
2012-12-03 11:19:49 +01:00
Michal 'vorner' Vaner
8545674c14
[2377] Tests for actually loading something
2012-12-03 10:06:32 +01:00
Michal 'vorner' Vaner
3814969790
[2377] Add missing callback to MasterLoader
...
The tentative interface of the MasterLoader was missing a callback to
add RRsets.
Also, include some small changes to the interface - pass RRClass as
reference and have DEFAULT options value for no special options.
2012-12-03 10:06:32 +01:00
Jelte Jansen
e4ecc70f8d
[2377] Initial MasterLoader class and test class
2012-12-03 10:06:32 +01:00
Michal 'vorner' Vaner
3a81d2d941
Merge remote-tracking branch 'origin/trac2382' into base/loader
2012-12-03 09:44:26 +01:00
Michal 'vorner' Vaner
425e18f704
Merge remote-tracking branch 'origin/trac2506' into base/loader
2012-12-03 09:42:55 +01:00
Mukund Sivaraman
5bb4db417e
Merge branch 'master' into trac2450
2012-12-03 08:41:30 +05:30
JINMEI Tatuya
5d239b6aed
[2382] more update on comment
2012-12-01 08:32:06 -08:00
JINMEI Tatuya
9440d65d7e
[2382] comment wording fix
2012-12-01 08:28:37 -08:00
JINMEI Tatuya
dfd0dd105b
[2382] documentation updates
2012-11-30 20:17:23 -08:00
JINMEI Tatuya
e441d6b05a
[2382] warn if RDATA immediately followed by EOF
2012-11-30 19:41:14 -08:00
JINMEI Tatuya
0ad163bb37
[2382] handle other generic isc::Exception
2012-11-30 19:41:13 -08:00
JINMEI Tatuya
f7f3060b97
[2382] supported extra token case and callback calls on error.
2012-11-30 19:41:13 -08:00
JINMEI Tatuya
b9f1eefe7e
[2382] Consume to end of line / file in createRdata().
2012-11-30 19:41:13 -08:00
JINMEI Tatuya
03dc2386b1
[2382] ungetToken EOL/EOF in the backend factories.
2012-11-30 19:41:12 -08:00
JINMEI Tatuya
3ae13a89a2
[2382] added from-lexer ctor for AAAA RDATA.
...
not directly related to this task, but I found we need one real (non wrapper)
example to test some of the feature of generic createRdata().
also updated RDATA template including with-lexer constructor.
2012-11-30 19:40:59 -08:00
JINMEI Tatuya
f73f27474f
[2382] unrelated fix to lexer: support empty qstring and nul termination.
...
an empty qstring previously caused an exception, which is a clear bug
and should be fixed. nul-terminating string regions is an extension,
but I found it useful when implementing RDATA parsers.
2012-11-30 18:50:13 -08:00
JINMEI Tatuya
ca8fc9f414
[2382] resolved remaining merge conflict on MasterLexer::Token.
2012-11-30 18:50:12 -08:00
JINMEI Tatuya
b48ecd894a
[2497] constify
2012-11-30 18:50:12 -08:00
Mukund Sivaraman
638a2d7fbb
[2497] Return NULL upon exception in rdata::createRdata()
2012-11-30 18:50:12 -08:00
Mukund Sivaraman
cb52403a8a
[2497] Add tests for NSEC3PARAM-like rrtypes
2012-11-30 18:50:11 -08:00
Mukund Sivaraman
a9a6007e02
[2497] Add tests for NSEC3PARAM, DS-like and TXT-like rrtypes
2012-11-30 18:50:11 -08:00
Mukund Sivaraman
3e964a48bd
[2497] Add tests for NSEC3, NSEC and TSIG rrtypes
2012-11-30 18:50:11 -08:00
JINMEI Tatuya
8e32eb96aa
[2382] Merge branch 'trac2506' into trac2382
2012-11-29 20:44:10 -08:00
JINMEI Tatuya
6226330df8
[2382] Merge branch 'trac2497' into trac2382
2012-11-29 20:43:49 -08:00
Mukund Sivaraman
c73280d2eb
[2497] Also check and stop at END_OF_LINE
2012-11-30 09:50:23 +05:30
Mukund Sivaraman
1c4683ddcc
[2497] Add tests for AFSDB, DHCID and DNSKEY rrtypes
2012-11-30 09:40:17 +05:30
Mukund Sivaraman
25f65134a9
[2497] Add tests for HINFO, MINFO and NAPTR rrtypes
2012-11-30 09:31:39 +05:30
Mukund Sivaraman
5c8cd4010e
[2497] Add tests for OPT, PTR and RP rrtypes
2012-11-30 09:17:01 +05:30
Mukund Sivaraman
3563065b6c
[2497] Add tests for RRSIG, SOA and SRV rrtypes
2012-11-30 08:58:00 +05:30
Mukund Sivaraman
41754f406f
[2497] Refactor RRSIG rrtype test code
2012-11-30 08:55:03 +05:30
Jelte Jansen
9a5e89e0e6
[master] Revert one change from #2398
...
Removed the socket.shutdown() before socket.close() again, this seemed to cause some errors with the statistics tests (which we will look into separately)
Discussed on jabber
2012-11-29 15:49:19 -08:00
JINMEI Tatuya
5dacdd2da8
[master] changelog for #2420
2012-11-29 15:37:45 -08:00
JINMEI Tatuya
6744c10095
[master] Merge branch 'trac2420'
2012-11-29 15:04:11 -08:00
JINMEI Tatuya
5e0e2e53c5
[2382] corrected trivial syntax error in #2497
2012-11-30 04:21:34 +05:30
Mukund Sivaraman
2b8518d982
[2497] Add a comment for RRParamRegistryTest.createFromLexer
2012-11-30 04:17:25 +05:30
Mukund Sivaraman
022d388819
[2497] Add rdata::createRdata() and tests for some RRtypes
2012-11-30 04:12:36 +05:30
JINMEI Tatuya
d4b9c33282
[2506] (unrelated) cleanup: define ReadError as a class, not a struct.
...
for consistency; it's awkward to see it as a struct while LexerError as a
.class.
The choice is basically a matter of taste, but I personally think it's
better to be defined as a class as its base is defined as a class, and
these exception structs are not just a trivial set of values.
2012-11-29 13:29:02 -08:00
JINMEI Tatuya
d27729277c
[2506] documentation update
2012-11-29 13:28:20 -08:00
JINMEI Tatuya
09cd4b9b32
[2506] handle other rare error cases
2012-11-29 10:54:54 -08:00
JINMEI Tatuya
597ed99f86
[2506] handled the case when getNextToken expects a number but it's too big.
2012-11-29 10:40:28 -08:00
JINMEI Tatuya
ae3a1e5d17
[2506] handled the case a number is expected but not found
2012-11-29 10:28:26 -08:00
JINMEI Tatuya
d52186367e
[2506] supported NUMBER in getNextToken() with expected type
2012-11-29 10:14:01 -08:00
JINMEI Tatuya
f70d131fd2
[2506] resolved remaining conflicts on rebase
2012-11-29 10:06:01 -08:00
JINMEI Tatuya
b991213a38
[2506] added another version of getNextToken, basic part
2012-11-29 10:02:37 -08:00
JINMEI Tatuya
c6c7cdee40
[2506] rename: MasterLexer::Token to MasterToken.
...
it's a kind of hack for the convenience of the planned change of this branch,
but the revised name doesn't seem really bad anyway.
2012-11-29 10:02:37 -08:00
JINMEI Tatuya
ebea1d79bc
[2506] updated part of lexer state doc to match the latest changes.
2012-11-29 10:00:25 -08:00