marcbradshaw / mail-dkim

Mail::DKIM Perl module, forked from svn://svn.code.sf.net/p/dkimproxy/code/Mail-DKIM/trunk
0 stars 13 forks source link

Do authmilter.org tests need real dns? #12

Closed dlucredativ closed 1 year ago

dlucredativ commented 1 year ago

There are tests using queries against authmilter.org, which is not included in FAKE_DNS.dat. Is this on purpose?

marcbradshaw commented 1 year ago

Hi,

I see that domain in 3 test files.

2 of them are real lookups, and are guarded by a Test::RequiresInternet, so if the testing system does not have internet access those tests will be skipped.

The third is a parse test, which does not require a query, so should work when internet access it not available.

dlucredativ commented 11 months ago

Unfortunately, while Debian's Salsa Gitlab environment allows outbound http(s) for CI/CD, it does not allow DNS queries. As a result, the autopkgtest of libmail-dkim-perl fails, producing errors like:

DNS query timeout for key1._domainkey.test.authmilter.org at /usr/share/perl5/Mail/DKIM/DNS.pm line 100.

Do you have a suggestion how to make those tests succeed?