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)
Tue, Oct 21, 12:54 AM
Unknown Object (File)
Sun, Oct 19, 4:48 PM
Unknown Object (File)
Sun, Oct 12, 5:25 AM
Unknown Object (File)
Sun, Oct 12, 5:25 AM
Unknown Object (File)
Sun, Oct 12, 5:25 AM
Unknown Object (File)
Sat, Oct 11, 7:24 PM
Unknown Object (File)
Tue, Sep 30, 9:04 AM
Unknown Object (File)
Tue, Sep 30, 2:08 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