Commit Graph
38650 Commits
Author SHA1 Message Date
Mark Andrews 2e224d46d2 Add RESINFO record type
This is a TXT clone using code point 261.

(cherry picked from commit 0651063658)
2024-02-26 13:20:48 +11:00
Michal Nowak 5138f7bbde Merge branch 'mnowak/pytest_rewrite_dsdigest-9.18' into 'bind-9.18'
[9.18] Rewrite dsdigest system test to pytest

See merge request isc-projects/bind9!8781
2024-02-23 13:52:45 +00:00
Michal Nowak 05416a52b8 Rewrite dsdigest system test to pytest
(cherry picked from commit cfb68bda79)
2024-02-23 14:19:22 +01:00
Michal Nowak f4f7827cf9 Add isctest.check.servfail()
(cherry picked from commit 5830ac831f)
2024-02-23 14:19:18 +01:00
Michal Nowak a16a210d1c Merge branch 'mnowak/pytest_rewrite_xferquota-9.18' into 'bind-9.18'
[9.18] Rewrite xferquota system test to pytest

See merge request isc-projects/bind9!8775
2024-02-23 12:15:08 +00:00
Michal Nowak 07bd58d836 Rewrite xferquota system test to pytest
(cherry picked from commit 69bf4432cc)
2024-02-23 11:49:47 +01:00
Michal Nowak b54455e43e Add isctest.check.rrsets_equal function
(cherry picked from commit 1e52a11343)
2024-02-23 11:49:43 +01:00
Michal Nowak 474eb35d59 Add retry_with_timeout() utility function
(cherry picked from commit 5694c52f52)
2024-02-23 11:49:38 +01:00
Michal Nowak eeaf17f5d4 Add RegEx support to wait_for_line() and wait_for_lines()
(cherry picked from commit 6dd1b3ab38)
2024-02-23 11:49:34 +01:00
Michal Nowak e83d28a9a4 Merge branch 'mnowak/pytest_rewrite_sortlist-9.18' into 'bind-9.18'
[9.18] Rewrite sortlist system test to pytest

See merge request isc-projects/bind9!8774
2024-02-23 10:35:55 +00:00
Michal Nowak 0e92b14cce Make pytest a bit more verbose
The "-vv" option gives us full untruncated diffs of compared data
strustures.

(cherry picked from commit bcbe34e22d)
2024-02-23 10:59:09 +01:00
Michal Nowak b7bc0e8117 Rewrite sortlist system test to pytest
(cherry picked from commit e7b5cf7f79)
2024-02-23 10:59:05 +01:00
Michal Nowak 16f950e86b Support "source" parameter in isctest.query.(tcp|udp)
(cherry picked from commit 4a203dcb93)
2024-02-23 10:59:01 +01:00
Tom Krizek 8fb49c5a8a Merge branch 'tkrizek/pytest-log-9.18' into 'bind-9.18'
[9.18] Simplify pytest logging

See merge request isc-projects/bind9!8748
2024-02-16 15:35:01 +00:00
Tom Krizek b27ac8d1bd Don't include temp testdir on each log line
This was mostly an artifact to tell which log lines belong to which test
from the time when the test output could be all mingled together. Now
this info is reduntant, because the pytest logger already includes both
the system test name, and the specific test.

(cherry picked from commit 8058140b67)
2024-02-16 16:03:53 +01:00
Tom Krizek 51bd0f2949 Add utility logging functions to isctest.log
Unify the different loggers (conftest, module, test) into a single
interface. Remove the need to select the proper logger by automatically
selecting the most-specific logger currently available.

This also removes the need to use the logger/mlogger fixtures manually
and pass these around. This was especially annoying and unwieldy when
splitting the test cases into functions, because logger had to always be
passed around. Instead, it is now possible to use the
isctest.log.(debug,info,warning,error) functions.

(cherry picked from commit c60975f108)
2024-02-16 16:03:50 +01:00
Tom Krizek 7a1869c23f Move watchlog module into isctest.log package
Preparation for further logging improvements - keep the watchlog
contents in a separate module inside isctest.log. Export the names in
the log package so the imports don't change for the users of these
classes.

(cherry picked from commit 52f9e6f557)
2024-02-16 16:01:09 +01:00
Tom Krizek 1f987a6c49 Remove accidentally duplicated RNDCExecutor code
This code has probably been accidentally added during some rebase. The
actual RNDCExecutor and related classes are in isctest/rndc.py. Remove
the duplicated and unused code from isctest/log.py, as it doesn't belong
there.

(cherry picked from commit f8fa528cdd)
2024-02-16 16:01:07 +01:00
Evan Hunt 0e361227c1 Merge branch 'each-rbtdb-dbiterator-fixes-bind-9.18' into 'bind-9.18'
[9.18] fix several bugs in the RBTDB dbiterator implementation

See merge request isc-projects/bind9!8743
2024-02-15 20:11:01 +00:00
Evan Hunt 198c6bc22e CHANGES for [GL !8741]
(cherry picked from commit 32241022b5)
2024-02-15 11:34:34 -08:00
Evan Hunt fe05278424 fix several bugs in the RBTDB dbiterator implementation
- the DNS_DB_NSEC3ONLY and DNS_DB_NONSEC3 flags are mutually
  exclusive; it never made sense to set both at the same time.
  to enforce this, it is now a fatal error to do so.  the
  dbiterator implementation has been cleaned up to remove
  code that treated the two as independent: if nonsec3 is
  true, we can be certain nsec3only is false, and vice versa.
- previously, iterating a database backwards omitted
  NSEC3 records even if DNS_DB_NONSEC3 had not been set. this
  has been corrected.
- when an iterator reaches the origin node of the NSEC3 tree, we
  need to skip over it and go to the next node in the sequence.
  the NSEC3 origin node is there for housekeeping purposes and
  never contains data.
- the dbiterator_test unit test has been expanded, several
  incorrect expectations have been fixed. (for example, the
  expected number of iterations has been reduced by one; we were
  previously counting the NSEC3 origin node and we should not
  have been doing so.)

(cherry picked from commit e40fd4ed06)
2024-02-15 11:34:34 -08:00
Michał Kępień fc16701eef Merge branch 'michal/post-release-tweaks-9.18' into 'bind-9.18'
[9.18] Miscellaneous post-release tweaks

See merge request isc-projects/bind9!8739
2024-02-14 16:23:09 +00:00
Michał Kępień 6a40a5eada Mention CVE-2023-50868 in CHANGES entry 6322
Since CVE-2023-50868 does not have a dedicated fix in BIND 9, mention
its CVE identifier in the CHANGES entry for CVE-2023-50387 (KeyTrap),
which accompanied the code change that addresses both of these
vulnerabilities.

(cherry picked from commit 2fd20bbaf5)
2024-02-14 17:17:49 +01:00
Michal Nowak 67e322b980 Merge branch 'mnowak/accommodate-black-24.2.0-9.18' into 'bind-9.18'
[9.18] Accommodate black 24.2.0

See merge request isc-projects/bind9!8734
2024-02-14 14:46:22 +00:00
Michal Nowak 60c5f6f972 Accommodate black 24.2.0
(cherry picked from commit 70163a8b3f)
2024-02-14 15:45:17 +01:00
Michał Kępień 4ad3c694f1 Merge tag 'v9.18.24' into bind-9.18
BIND 9.18.24
2024-02-14 13:35:19 +01:00
Mark Andrews 2044384f6d Merge branch '4571-findnsec3proofs-failed-to-disassociate-all-rdatasets-returned-by-dns_ncache_current-bind-9.18' into 'bind-9.18'
[9.18] Resolve "findnsec3proofs failed to disassociate all rdatasets returned by dns_ncache_current"

See merge request isc-projects/bind9!8730
2024-02-13 23:09:54 +00:00
Mark Andrews 0f086ddfe1 Add CHANGES note for [GL #4571]
(cherry picked from commit 3b7cddfb1b)
2024-02-14 09:40:42 +11:00
Mark Andrews 1c8851b142 Dissassociate rdatasets returned from dns_ncache_current
lib/dns/validator.c:findnsec3proofs failed to disassociate the
temporary rdataset returned by dns_ncache_current on all paths.

(cherry picked from commit dc94f42209)
2024-02-14 09:38:56 +11:00
Michał Kępień 6d7674f8f2 Update BIND version for release v9.18.24 2024-02-11 11:39:40 +01:00
Michał Kępień b402191074 Add a CHANGES marker 2024-02-11 11:39:40 +01:00
Michał Kępień 4ba9ebefd1 Merge branch 'michal/prepare-documentation-for-bind-9.18.24' into 'v9.18.24-release'
Prepare documentation for BIND 9.18.24

See merge request isc-private/bind9!657
2024-02-11 10:38:21 +00:00
Michał Kępień 0b7dc5eca7 Merge branch '4568-fix-isc_ht-case-insensitive-matching-9.18.24' into 'v9.18.24-release'
[9.18.24] Fix case insensitive matching in isc_ht hash table implementation

See merge request isc-private/bind9!656
2024-02-11 10:26:52 +00:00
Michał Kępień 886793e8de Add release note for GL #4459 2024-02-11 11:23:28 +01:00
Ondřej SurýandMichał Kępień bb1bf51f10 Add CHANGES note for [GL #4568]
(cherry picked from commit b7797adc4e)
2024-02-11 11:23:28 +01:00
Michał Kępień 5ce386aa5c Prepare release notes for BIND 9.18.24 2024-02-11 11:23:28 +01:00
Ondřej SurýandMichał Kępień c8b623d87f Add a system test for mixed-case data for the same owner
We were missing a test where a single owner name would have multiple
types with a different case.  The generated RRSIGs and NSEC records will
then have different case than the signed records and message parser have
to cope with that and treat everything as the same owner.

(cherry picked from commit 14e435b814)
2024-02-11 11:23:28 +01:00
Ondřej SurýandMichał Kępień c462d65b2f Fix case insensitive matching in isc_ht hash table implementation
The case insensitive matching in isc_ht was basically completely broken
as only the hashvalue computation was case insensitive, but the key
comparison was always case sensitive.

(cherry picked from commit ec11aa2836)
2024-02-11 11:23:28 +01:00
Michał Kępień 2a5a7c3770 Merge branch 'michal/set-up-version-and-release-notes-for-bind-9.18.25' into 'bind-9.18'
Set up version and release notes for BIND 9.18.25

See merge request isc-projects/bind9!8721
2024-02-11 10:09:30 +00:00
Michał Kępień eef4bc99d0 Set up release notes for BIND 9.18.25 2024-02-11 11:05:50 +01:00
Michał Kępień 5e3d4ade06 Update BIND version to 9.18.25-dev 2024-02-11 11:05:50 +01:00
Ondřej Surý 4c5f1c6d43 Merge branch '4568-fix-isc_ht-case-insensitive-matching-9.18' into 'bind-9.18'
[9.18] Fix case insensitive matching in isc_ht hash table implementation

See merge request isc-projects/bind9!8719
2024-02-11 08:55:43 +00:00
Ondřej Surý b7797adc4e Add CHANGES note for [GL #4568]
(cherry picked from commit 299ab7623a3ae6e7442cccaab36b21e047c0d1b1)
2024-02-11 09:39:19 +01:00
Ondřej Surý 14e435b814 Add a system test for mixed-case data for the same owner
We were missing a test where a single owner name would have multiple
types with a different case.  The generated RRSIGs and NSEC records will
then have different case than the signed records and message parser have
to cope with that and treat everything as the same owner.
2024-02-11 09:39:19 +01:00
Ondřej Surý ec11aa2836 Fix case insensitive matching in isc_ht hash table implementation
The case insensitive matching in isc_ht was basically completely broken
as only the hashvalue computation was case insensitive, but the key
comparison was always case sensitive.

(cherry picked from commit 34ae6916f115fc291865857509433f95c2bc0871)
2024-02-11 09:39:19 +01:00
Tom Krizek 96473a5edb Merge branch 'tkrizek/adjust-shotgun-load' into 'bind-9.18'
[9.18] Reduce shotgun load during performance tests

See merge request isc-projects/bind9!8711
2024-02-08 17:03:22 +00:00
Tom Krizek 38c66b8bb0 Reduce shotgun load during performance tests
Make the performance test results more stable by lowering the load on
the resolver.
2024-02-08 16:29:21 +01:00
Tom Krizek 444f005e4c Merge branch '4560-pytest-junit-xml-compat-9.18' into 'bind-9.18'
[9.18] Support older junit XML format in test result processing

See merge request isc-projects/bind9!8709
2024-02-08 14:28:04 +00:00
Tom Krizek 2dd238dbd0 Add CHANGES note for [GL #4560]
(cherry picked from commit 06a977a699)
2024-02-08 14:58:47 +01:00
Tom Krizek 6af67e028e Support older junit XML format in test result processing
When running `make check` on a platform which has older (but still
supported) pytest, e.g. 3.4.2 on EL8, the junit to trs conversion would
fail because the junit format has different structure. Make the junit
XML processing more lenient to support both the older and newer junit
XML formats.

(cherry picked from commit bec3dd10b3)
2024-02-08 14:58:11 +01:00