Commit graph

79 commits

Author SHA1 Message Date
Jan Vcelak
349a4d8afe tests-extra: basic/query, review queries and clarify comments 2015-07-09 15:40:35 +02:00
Jan Vcelak
e44e6b499e tests-extra: fix query for a CNAME below NS 2015-07-09 15:40:35 +02:00
Jan Vcelak
2c4ebdffe1 tests-extra: enable additionals checking for selected tests
The Additional section of the answers should be compared with BIND on
expected delegations.

Knot DNS also puts A/AAAA records into the Additional section for NS,
MX, and SRV records.
2015-07-09 15:40:35 +02:00
Jan Vcelak
be03a91d94 tests-extra: basic/flags, remove obsolete exceptions 2015-07-09 15:33:29 +02:00
Lubos Slovak
76e84fc247 tests-extra: CNAME loop + fixed basic/query test.
- Test response with a long CNAME loop.
- Some queries in basic/query test did not have the zone name
  appended, resulting in bogus answers (REFUSED). Not visible,
  because the responses are only compared to ones from Bind.

TODO: Comparison with Bind should be replaced by checks for
      particular requirements for the response.
2014-11-11 23:26:52 +01:00
Marek Vavruša
8d40f2fc57 tests-extra: don't compare RFC5155/B.5 test with BIND9
Explained in the test, BIND9 as of 9.9.4 provides wrong closest
encloser wildcard NSEC3 record.
2014-03-19 16:14:34 +01:00
Daniel Salzman
a90ba585b3 tests-extra: add basic/opt-out test case 2014-03-17 15:07:12 +01:00
Daniel Salzman
856c594a40 tests-extra: unify comments 2014-03-17 15:07:12 +01:00
Marek Vavrusa
a4b5df22a8 tests-extra: tests for proofs of expanded/unexpanded wildcards below dp 2014-02-25 15:36:24 +01:00
Lubos Slovak
8ab8b4397a Added some BIND-independent checks to basic tests. 2014-02-25 12:56:55 +01:00
Lubos Slovak
1b438a7e2c Added some more test cases to basic tests. 2014-02-12 19:02:52 +01:00
Marek Vavrusa
5aafc31688 tests-extra: added NSEC/NSEC3 tests for wildcard expansions
- new test for wildcard expansion leading to NXDOMAIN
- new test for wildcard expansion leading to NODATA
2014-02-10 16:27:49 +01:00
Marek Vavrusa
5e74c14ba2 nameserver: fixed query to wildcard expansion -> apex
Added test cases for this and previous commit.

Conflicts:
	src/libknot/nameserver/name-server.c
2014-02-10 16:27:49 +01:00
Daniel Salzman
31bb2652f6 func-tests: add check for nonterminal 2014-02-05 16:48:01 +01:00
Marek Vavrusa
af68e330cf func-tests: added tests for flags clearing/preservation 2014-01-30 17:24:28 +01:00
Daniel Salzman
596655bc90 func-tests: extend dig parameters with all basic dns flags
close #198
2014-01-30 12:37:42 +01:00
Daniel Salzman
592a5b51ca func-tests: improve zonefile interface 2014-01-29 14:49:50 +01:00
Marek Vavrusa
fc08b7c021 ns_proc_context_t.flags should really be a module parameter.
Since we need address for the query processing, we should employ
the structure for query processing related flags (they all are).
Added new flag that controls whether ANY disabled should be enforced
or not. Also added test for this case.
2014-01-21 15:48:29 +01:00
Marek Vavrusa
2a73ac7973 AUTHORITY NS not added for CNAME loop or CNAME leading to out-of-zone
data.

This conforms to RFC1034, 4.3.2/pt 3.a I think,
as the CNAME target would lead us out of available zones.
(We don't support answer from multiple local zones as of now.)
2014-01-17 17:05:49 +01:00
Marek Vavrusa
4830b7ceaf Discover wildcard-covered additional records for affected nodes.
This requires an additional passthrough of the adjusted nodes
and may pose a performance penalty in the future.
If that need arises, we could sort it out in a different way.
2014-01-15 18:28:36 +01:00
Marek Vavrusa
7e33916830 CNAME loop over wildcard is checked after RR is added.
This is to give requestor proof of the loop in single response.
Also added test for this case.
2014-01-15 18:28:36 +01:00
Marek Vavrusa
2f757367f4 Merge branch 'master' into packet-api-rewrite
Conflicts:
	src/libknot/packet/packet.c
2014-01-08 17:30:58 +01:00
Daniel Salzman
6e3585f82f func-tests: adapt tests to zone changes 2014-01-07 16:22:41 +01:00
Marek Vavrusa
47db4afea5 Merge branch 'master' into packet-api-rewrite
Conflicts:
	configure.ac
	src/knot/ctl/remote.c
	src/knot/server/xfr-handler.c
	src/knot/server/zones.c
	src/libknot/nameserver/name-server.c
	src/libknot/nameserver/name-server.h
	src/libknot/packet/packet.c
	src/libknot/packet/packet.h
	src/libknot/packet/query.c
	src/libknot/packet/response.c
	src/libknot/updates/xfr-in.c
	src/utils/common/exec.c
	tests-extra/tests/basic/query/test.py
2014-01-06 15:56:01 +01:00
Daniel Salzman
e37a31e7a0 func-tests: yet another query test tuning 2013-12-23 15:12:28 +01:00
Marek Vavrusa
8b1065bcc4 Varied qname should be tested both in name and zone qname parts. 2013-12-23 14:46:45 +01:00
Daniel Salzman
a464c624ea func-tests: remove basic/rcode test, since basic/query is more exhaustive 2013-12-23 14:25:32 +01:00
Daniel Salzman
ac53fc0568 func-tests: add query owner case-sensitivity test 2013-12-23 14:21:29 +01:00
Daniel Salzman
5af6511582 func-tests: change location 2013-12-19 16:35:31 +01:00