Commit graph

9 commits

Author SHA1 Message Date
Petr Špaček
a2daff3cb6 Fix compatibility with Python < 3.10
Dataclass kw_only argument was added only in Python 3.10 but EL9 image
has only 3.9.21.

(cherry picked from commit b0c7f8b598)
2025-07-30 14:36:46 +00:00
Michał Kępień
f79c638118 Adjust type hints for the "nsec3-answer" test
Add missing type hints in the tests_nsec3.py module.  Tweak the syntax
used for type hints for better consistency with other Python code in
bin/tests/system/.

(cherry picked from commit adb931f700)
2025-07-29 13:19:23 +02:00
Petr Špaček
d5cc05db49 Add more empty non-terminals to test zone
I don't know exactly why, I just have a feeling there might be
interesting corner cases somewhere.

(cherry picked from commit fc3d5e5918)
2025-07-29 13:19:23 +02:00
Petr Špaček
0adaa4a244 Randomize NSEC3 salt
This should prevent the case where are are unlucky enough that static
values hash 'just right' for the test to pass, but only accidentally.

(cherry picked from commit 46781845ea)
2025-07-29 13:19:23 +02:00
Petr Špaček
548d1a81f9 Test proof of nonexistance of DS in insecure referrals
Currently this test is limited only to auth because currently BIND
resolver does not send DS proof of nonexistence for RD=0 queries.

(cherry picked from commit 548632b18a)
2025-07-29 13:19:23 +02:00
Petr Špaček
cce3fe0683 Test dangling DNAME answers come with NXDOMAIN proofs
Simplistic test. Ignores the possibility of DNAME chain going through
multiple zones and/or wildcard expansions.

(cherry picked from commit 73e4201331)
2025-07-29 13:19:23 +02:00
Petr Špaček
0d3d1d0442 Test dangling CNAMEs come with NXDOMAIN proofs
Simplistic test. Ignores the possibility of CNAME chain going through
multiple zones and/or wildcard expansions.

(cherry picked from commit d0e413dd57)
2025-07-29 13:19:23 +02:00
Petr Špaček
e866ffd9c1 Move query outside of check_() functions
This allows better check() code reuse.

(cherry picked from commit cc6544b417)
2025-07-29 13:19:23 +02:00
Petr Špaček
1dfd384fd2 Separate test into a new directory
The test actually needs just two servers - auth and resolver. The rest
was not needed and made test setup only slower and harder to debug.

(cherry picked from commit ac58b58002)
2025-07-29 13:19:23 +02:00