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)
Sat, May 11, 8:10 PM
Unknown Object (File)
Tue, May 7, 2:54 AM
Unknown Object (File)
Sun, Apr 28, 10:15 PM
Unknown Object (File)
Apr 16 2024, 2:25 PM
Unknown Object (File)
Mar 12 2024, 3:47 PM
Unknown Object (File)
Mar 12 2024, 3:46 PM
Unknown Object (File)
Mar 12 2024, 3:23 PM
Unknown Object (File)
Feb 27 2024, 11:24 AM
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