]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
new: test: add helper functions to isctest
authorEvan Hunt <each@isc.org>
Tue, 29 Jul 2025 22:56:53 +0000 (22:56 +0000)
committerEvan Hunt <each@isc.org>
Tue, 29 Jul 2025 22:56:53 +0000 (22:56 +0000)
added some helper functions in isctest to reduce code repetition
in dnssec-related tests:

- isctest.check.adflag() - checks that a response contains AD=1
- isctest.check.noadflag() - checks that a response contains AD=0

- isctest.check.rdflag() - checks that a response contains RD=1
- isctest.check.nordflag() - checks that a response contains RD=0

- isctest.check.raflag() - checks that a response contains RA=1
- isctest.check.noraflag() - checks that a response contains RA=0

- isctest.check.rr_count_eq() - checks the number of RRsset in a section

- isctest.check.same_data() - checks that two message have the
                              same rcode and data
- isctest.check.same_answer() - checks that two message have the same
                                rcode and answer

- isctest.query.create() - a wrapper for dns.message.make_query() that
                           creates a query message similar to dig +dnssec

Merge branch 'each-isctest-helpers' into 'main'

See merge request isc-projects/bind9!10760


Trivial merge