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, Sep 21, 2:09 PM
Unknown Object (File)
Sat, Sep 21, 6:42 AM
Unknown Object (File)
Fri, Sep 20, 3:22 PM
Unknown Object (File)
Tue, Sep 17, 6:40 PM
Unknown Object (File)
Mon, Sep 16, 10:08 PM
Unknown Object (File)
Thu, Sep 12, 1:24 PM
Unknown Object (File)
Wed, Sep 4, 2:26 PM
Unknown Object (File)
Aug 21 2024, 3:03 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