Page MenuHomeFreeBSD

cap_dns tests: Convert to ATF, avoid failing when lookups don't resolve
ClosedPublic

Authored by markj on Mar 24 2023, 12:39 AM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 30 2025, 6:41 AM
Unknown Object (File)
Jan 27 2025, 4:47 PM
Unknown Object (File)
Jan 24 2025, 5:30 PM
Unknown Object (File)
Jan 22 2025, 1:15 PM
Unknown Object (File)
Dec 28 2024, 10:15 PM
Unknown Object (File)
Dec 28 2024, 9:55 PM
Unknown Object (File)
Dec 28 2024, 7:15 AM
Unknown Object (File)
Dec 5 2024, 5:31 PM
Subscribers

Details

Summary

The cap_dns tests require Internet access. Currently they fail when
that's not available, which for CI purposes is undesirable. Let's
instead skip the tests if none of the non-casper name/addr lookups
succeed.

To that end:

  • Convert the tests to ATF so that skipping is more natural.
  • Break up the tests into separate test cases.
  • If one of the system (i.e., non-casper) lookup functions fails, skip the test if all of them failed, otherwise fail the tests, since partial failure indicates something is flaky.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable