export NODNSTAPTESTS=1
fi
+# Run with -m 'not external' to skip test that require external connectivity
+# Run with -m 'not unreliable_on_gh' to skip tests that are unreliable on GitHUb
+# Run with -m 'not (external or unreliable_on_gh)' to skip both categories
+
# LIBFAKETIME is only added to LD_PRELOAD by the pyton code when needed
if [ "${LIBASAN}" != "" -o "${LIBAUTHBIND}" != "" ]; then
-LD_PRELOAD="${LIBASAN} ${LIBAUTHBIND}" pytest --ignore=test_WellKnown.py --junitxml=pytest.xml $@
+LD_PRELOAD="${LIBASAN} ${LIBAUTHBIND}" pytest --junitxml=pytest.xml "$@"
else
-pytest --ignore=test_WellKnown.py --junitxml=pytest.xml $@
+pytest --junitxml=pytest.xml "$@"
fi
super(ExtendedErrorsTest, cls).generateRecursorConfig(confdir)
+ @pytest.mark.external
def testNotIncepted(self):
qname = 'signotincepted.bad-dnssec.wb.sidnlabs.nl.'
query = dns.message.make_query(qname, 'A', want_dnssec=True)
self.assertEqual(res.options[0].otype, 15)
self.assertEqual(res.options[0], extendederrors.ExtendedErrorOption(8, b''))
+ @pytest.mark.external
def testExpired(self):
qname = 'sigexpired.bad-dnssec.wb.sidnlabs.nl.'
query = dns.message.make_query(qname, 'A', want_dnssec=True)
self.assertEqual(res.options[0].otype, 15)
self.assertEqual(res.options[0], extendederrors.ExtendedErrorOption(7, b''))
+ @pytest.mark.external
def testAllExpired(self):
qname = 'servfail.nl.'
query = dns.message.make_query(qname, 'AAAA', want_dnssec=True)
self.assertEqual(res.options[0].otype, 15)
self.assertEqual(res.options[0], extendederrors.ExtendedErrorOption(6, b''))
+ @pytest.mark.external
def testBogus(self):
qname = 'bogussig.ok.bad-dnssec.wb.sidnlabs.nl.'
query = dns.message.make_query(qname, 'A', want_dnssec=True)
self.assertEqual(res.options[0].otype, 15)
self.assertEqual(res.options[0], extendederrors.ExtendedErrorOption(6, b''))
+ @pytest.mark.external
def testMissingRRSIG(self):
qname = 'brokendnssec.net.'
query = dns.message.make_query(qname, 'A', want_dnssec=True)
def generateRecursorConfig(cls, confdir):
super(NoExtendedErrorsTest, cls).generateRecursorConfig(confdir)
+ @pytest.mark.external
def testNotIncepted(self):
qname = 'signotincepted.bad-dnssec.wb.sidnlabs.nl.'
query = dns.message.make_query(qname, 'A', want_dnssec=True)
+import pytest
import dns
import os
import subprocess
cls.generateRecursorConfig(confdir)
cls.startRecursor(confdir, cls._recursorPort)
+ @pytest.mark.external
def testTXT(self):
expected = dns.rrset.from_text('dot-test-target.powerdns.org.', 0, dns.rdataclass.IN, 'TXT', 'https://github.com/PowerDNS/pdns/pull/12825')
query = dns.message.make_query('dot-test-target.powerdns.org', 'TXT', want_dnssec=True)