[bind10-dev] questions about task 88 and 89
Jeremy C. Reed
jreed at isc.org
Thu May 6 10:22:58 UTC 2010
On Thu, 6 May 2010, tingting shen wrote:
> I have some questions about task 88 and 89.
>
> task 88: loadzone test suite of different file formats to load
>
> Question: Does it mean to design different types of zone files in correct or
> wrong format, to test loadzone?
It is worded wrong. It is not about different file formats to load, but
about loading different RFC1035 master file format zone files. Some
containing correct zones and some containing deliberate errors (like
impossible TTLs or bogus RDATA of wrong format, et cetera).
I believe the goal is to make a collection of many zone files and a way
to use them for testing.
BIND 9 source contains many zone files. I think they are all named
"*.db" under bin/tests/. Maybe these can give some ideas and maybe some
or all can be re-used. You can also collect and create your own zone
data. Consider to document somewhere (maybe the files themselves) what
they contain and expected behaviour.
Also need some way to test using those master files. I think Cucumber
will be used in the long run. But for now, maybe some simple shell or
python scripts to load the files and check the results: verbose output
(see task 89), store and compare sqlite text dumps, or maybe even real
queries.
> task 89: loadzone:verbose option to exactly what is happening with name
> cleanup based on origin, and %done while running
>
> Question: What does ?name cleanup? mean here?
I am guessing that "name cleanup" is to report what was derived for the
origin (in the case that the origin is not defined on the command line).
We talked about various different "verbose" options for b10-loadzone,
but for now:
- report to STDERR
- report origin name
- show count of how many RRsets or records were loaded
- report where the data is stored to (for now is a sqlite database file)
- if possible, report whether or not a new database is created or an
existing one is updated
- maybe report whether a new zone was created or an existing zone was
replaced
- maybe periodically show a count of how many RRSets or records have
been loaded
"%done" is for periodically showing the percentage of the master file
data that is loaded until complete. I am not sure how relevant or easy
that is to do now as I don't know if it pre-parses the loaded data to
get something to compare with. It is probably not required in the first
"verbose" option.
Jeremy C. Reed
ISC
More information about the bind10-dev
mailing list