test: extend with raw packets (+fuzzed) tests
Depends on #5 (closed)
To do:
-
Support for raw queries in the .rpl files (http://unbound.net/svn/trunk/testdata/test_packets.1 .. 9)
This could look something like:
SCENARIO_BEGIN raw_queries
STEP 0 QUERY
ENTRY_BEGIN
RAW
00000000700240004aa200000204059801010402
ENTRY_END
STEP 1 CHECK_ANSWER
ENTRY_BEGIN
RAW
000080010000000000000000
ENTRY_END
If you just add the RAW
parsing in the https://gitlab.labs.nic.cz/knot/resolver/blob/master/tests/test_integration.py#L44 and https://gitlab.labs.nic.cz/knot/resolver/blob/master/tests/pydnstest/scenario.py#L5 but that's just one way to do it.