9333 Commits
Author SHA1 Message Date
Tinderbox User d271d444aa prep v9.14.11 2020-02-12 20:07:41 +00:00
Mark Andrews 8bea078674 spin waiting for prototype dig responses
(cherry picked from commit c38752b07c)
2020-02-12 19:48:02 +11:00
Mark Andrews d3f726cbef wait for apex NSEC3 to be generated
(cherry picked from commit c99ad5c8c7)
2020-02-12 19:12:40 +11:00
Ondřej SurýandMichał Kępień f172ecabda Remove reference to prepending label with engine in manpage
(cherry picked from commit 33fa3d5eb1)
2020-02-11 10:32:12 +01:00
Mark Andrews 4db05004ef indent failed: descriptions
(cherry picked from commit 1e4773f121)
2020-02-07 21:48:46 +00:00
Mark Andrews cf40f76703 indent some test descriptions/continuation
(cherry picked from commit ec95bc6f2c)
2020-02-07 21:48:46 +00:00
Mark Andrews 1264cbc9b8 remove space before 'failed'
(cherry picked from commit 0d5ec0c7dc)
2020-02-07 21:48:46 +00:00
Mark Andrews 1df2df5706 ident continuation of test descriptions
(cherry picked from commit 059b16b991)
2020-02-07 21:48:46 +00:00
Mark Andrews 9804cdb5f2 remove space from before 'failed'; count errors
(cherry picked from commit 879c63b573)
2020-02-07 21:48:46 +00:00
Mark Andrews 85d2a2c633 wait for root server to complete reloading
(cherry picked from commit 784e64f238)
2020-02-07 21:09:30 +00:00
Mark Andrews 5a559c3fcf wait a short while for no NSEC3PARAM
(cherry picked from commit e378241324)
2020-02-08 00:43:06 +11:00
Mark Andrews f015929d35 Correct logged function name.
(cherry picked from commit 550bbee427)
2020-02-07 21:43:26 +11:00
Michał Kępień 6c5295ca09 Fix the "dnssec" system test on Windows
Make sure carriage return characters are stripped from awk input to
enable the "dnssec" system test to pass on Windows.

(cherry picked from commit 2f694f0b77)
2020-02-06 15:17:51 +01:00
Matthijs Mekking 832763a7d7 Increase TTL in serve-stale test
Increase the short lived record TTL and negative SOA TTL to make
this test less vulnerable to timing issues. The drawback is that we
also have to sleep longer in this test.

(cherry picked from commit 2c0c333d16)
2020-02-04 14:06:39 +01:00
Mark AndrewsandEvan Hunt c09d01c7da don't swallow backslash characters in test output
(cherry picked from commit fc4e44bd37)
2020-02-03 19:19:45 -08:00
Mark AndrewsandEvan Hunt c1754035cb test all the scenarios for hashed filenames together
(cherry picked from commit 8745043a86)
2020-02-03 19:19:45 -08:00
Evan Hunt 68eb6c1bb9 Correctly handle catalog zone entries containing slashes
- Add quotes before and after zone name when generating "addzone"
  input so avoid "unexpected token" errors.
- Use a hex digest for zone filenames when the zone or view name
  contains a slash.
- Test with a domain name containing a slash.
- Incidentally added 'catzhash.py' to contrib/scripts to generate
  hash labels for catalog zones, as it was needed to write the test.

(cherry picked from commit dba0163dac)
2020-02-03 19:19:45 -08:00
Mark Andrews ea5e1ad762 add more CDS / CDNSKEY deletion record tests
(cherry picked from commit d159fdf25d)
2020-01-31 00:15:16 +11:00
Mark Andrews a7e5a14624 check CDS and CDNSKEY content
(cherry picked from commit 68a360772f)
2020-01-31 00:15:16 +11:00
Mark Andrews 7f079c4fa3 check kskonly key ids
(cherry picked from commit 379949cce4)
2020-01-31 00:15:16 +11:00
Mark Andrews 735dfc1ab8 check that a CDNSKEY deletion record is accepted
(cherry picked from commit f91b3a69ce)
2020-01-31 00:15:16 +11:00
Mark Andrews 103cd665e1 handle CDS deletion record in consistancy checks
(cherry picked from commit 0adb4b25d3)
2020-01-31 00:15:15 +11:00
Michał Kępień 6e9d3680f9 List atypical failures in system test summary
Each system test can be marked as failed not only due to some tested
component(s) not behaving as expected, but also because of core dumps,
assertion failures, and/or ThreadSanitizer reports being found among its
artifacts.  Make the system test summary list the tests which exhibit
such atypical symptoms to more clearly present the nature of problems
found.

(cherry picked from commit a8836b381f)
2020-01-29 14:50:42 +01:00
Mark Andrews 7865f1e28a wait longer for dynamic zone to be transfered
(cherry picked from commit 7b0ba6eb10)
2020-01-29 08:24:42 +11:00
Tinderbox UserandEvan Hunt 2b13e3ca3b regen v9_14 2020-01-27 11:06:04 -08:00
Mark Andrews cb271dcef0 wait for the ./NS lookup to complete
(cherry picked from commit 9b6df37303)
2020-01-24 08:20:04 +11:00
Mark Andrews c585221d10 check that all servers have finished loading before beginging tests
(cherry picked from commit 4a992c7a18)
2020-01-24 08:20:04 +11:00
Mark Andrews 0336701524 wait for log message before testing that mirror zone is correctly removed
(cherry picked from commit c6ba51cfc4)
2020-01-23 16:19:38 +11:00
Mark Andrews a0505547ca address timing issues in padding system test
'rndc stats' is not instantaneous. Wait for the dump to complete
before looking at the content.

(cherry picked from commit b3f06729e5)
2020-01-23 14:19:41 +11:00
Diego FronzaandEvan Hunt f506a40914 Added test for the proposed fix
Added test to ensure that NXDOMAIN is returned when BIND is queried for a
non existing domain in CH class (if a view of CHAOS class is configured)
and that it also doesn't crash anymore in those cases.

(cherry picked from commit 7417b79c7a)
2020-01-22 12:25:34 -08:00
Michal Nowak 377e48e897 mkeys: Prevent failing grep invocations
Some 'grep' invocations were not guarded from interrupting the test
prematurely, e.g. when no text was matched.

(cherry picked from commit 6c4a2b602042d83450f0af50c25225efa8698750)
2020-01-22 15:54:19 +01:00
Mark Andrews 2db5a2539a dnssec: do not publish CDS records when -Psync is in the future
This is a bug I encountered when trying to schedule an algorithm
rollover. My plan, for a zone whose maximum TTL is 48h, was to sign
with the new algorithm and schedule a change of CDS records for more
than 48 hours in the future, roughly like this:

    $ dnssec-keygen -a 13 -fk -Psync now+50h $zone
    $ dnssec-keygen -a 13 $zone
    $ dnssec-settime -Dsync now+50h $zone_ksk_old

However the algorithm 13 CDS was published immediately, which could
have made the zone bogus.

To reveal the bug using the `smartsign` test, this change just adds a
KSK with all its times in the future, so it should not affect the
existing checks at all. But the final check (that there are no CDS or
CDSNSKEY records after -Dsync) fails with the old `syncpublish()`
logic, because the future key's sync records appear early. With the
new `syncpublish()` logic the future key does not affect the test, as
expected, and it now passes.

(cherry picked from commit 4227b7969b)
2020-01-21 23:04:16 +00:00
Witold Kręcicki 3f54e31d0c tests: add a missing log nextpart in inline test 2020-01-21 15:15:42 +01:00
Mark Andrews 1151df1715 document that nslookup defaults to A + AAAA lookups
(cherry picked from commit 938fc81493)
2020-01-20 10:47:54 +11:00
Michał Kępień bfedaa5a99 Fix the "dnssec" system test on Windows
Make sure carriage return characters are stripped from awk input to
enable the "dnssec" system test to pass on Windows.

(cherry picked from commit 451484b870)
2020-01-16 09:50:06 +01:00
Mark AndrewsandMichał Kępień 0384fb7d92 address some timing issues in inline system test
(cherry picked from commit 2dc4d72fa9)
2020-01-14 14:36:35 +01:00
Mark AndrewsandMichał Kępień 1327031232 Fix autosign system test issues.
* report when NSEC3PARAM is not yet present
* allow more time for NSEC3PARAM to become present
* adjust frequency failure message

(cherry picked from commit 17d25dbf47)
2020-01-14 13:24:19 +01:00
Mark AndrewsandMichał Kępień 895f60d6f8 improve forensic logs
improve forensic logs by directing output to per sub-test named
files and reporting the sub-subtest number.

(cherry picked from commit 05aa45c602)
2020-01-14 11:57:40 +01:00
Mark AndrewsandMichał Kępień 28695f1c92 suppress unnecessary zone transfer
suppressed unnecessary zone transfer in "test mapped zone with
out of zone data" sub-test.

(cherry picked from commit 9bd6720f58)
2020-01-14 11:54:58 +01:00
Mark AndrewsandMichał Kępień 14ef8b10af Improve forensic logging in "testing basic zone transfer functionality"
Split the "testing basic zone transfer functionality" into primary and
secondary parts to improve forensic logging.

(cherry picked from commit 46982b414b)
2020-01-14 11:51:31 +01:00
Tony FinchandMark Andrews 6014fe13ff Fix line spacing in rndc secroots
Before this change, there was a missing blank line between the
negative trust anchors for one view, and the heading line for the next
view. This is because dns_ntatable_totext() omits the last newline.
There is an example of the incorrect output below; the fixed output
has a blank line before "Start view auth".

secure roots as of 21-Oct-2019 12:03:23.500:

 Start view rec
   Secure roots:

./RSASHA256/20326 ; managed

   Negative trust anchors:

example.com: expiry 21-Oct-2019 13:03:15.000
 Start view auth
   Secure roots:

./RSASHA256/20326 ; managed

   Negative trust anchors:

example.com: expiry 21-Oct-2019 13:03:07.000

(cherry picked from commit 5b600c2cd8)
2020-01-14 06:29:09 +11:00
Mark AndrewsandMichał Kępień 3636b0d275 replace grep -r with 'find -type f | xargs'
(cherry picked from commit 36ce99d8a4)
2020-01-10 10:51:37 +01:00
Ondřej SurýandMichał Kępień 3bc834daae Don't clean the system test temporary files if sanitizer reports were found inside
(cherry picked from commit 7489e6e6f9)
2020-01-10 10:47:54 +01:00
Michał Kępień 12f0f68742 Fix the "forward" system test on Windows
Make sure carriage return characters are stripped from sed input to
enable the "forward" system test to pass on Windows.

(cherry picked from commit 075613aea4)
2020-01-10 10:44:08 +01:00
Mark AndrewsandMichał Kępień 05596de640 consume all arguments we have processed in shift
(cherry picked from commit 0ee0580fc9)
2020-01-10 10:41:23 +01:00
Ondřej SurýandMichał Kępień bea5bcff8d Bail-out early if dig fails to finish successfully or takes too long
Before, the zero system test could get stuck almost infinitely, because
the first test sends > 300 queries with 5 seconds timeout on each in
each pass.  If named crashed early, it would took the test more than 4
hours to properly timeout.

This commit introduces a "watchdog" on the dig commands running in the
background and failing the test on timeout, failing any test if any dig
command fails to return successfully, and making the tests.sh script
shellcheck clean.

(cherry picked from commit 2a65a47f39)
2020-01-10 10:04:12 +01:00
Ondřej SurýandMichał Kępień 865fff9b5a Wait for named to forward the question before testing the validity
(cherry picked from commit fb03edacd8)
2020-01-10 09:10:46 +01:00
Ondřej SurýandMichał Kępień b29efb0406 Make forward system test shellcheck clean
(cherry picked from commit 0e15cbb092)
2020-01-10 09:10:45 +01:00
Ondřej SurýandMichał Kępień 97985a2d4d Use $n to keep diagnostic output of every individual test separate
(cherry picked from commit 10f4cd066f)
2020-01-10 09:08:21 +01:00
Ondřej SurýandMichał Kępień 4cf83a956c Add the standard $n to each test
(cherry picked from commit 64df488e1e)
2020-01-10 09:06:13 +01:00