def test_delegation_from_nsec3_to_unsigned_zone(forwarder, tcp): return answer_checker.send_and_check( NONEXISTENT_DS_DELEGATION_NSEC3_QUERY, NONEXISTENT_DS_DELEGATION_NSEC3_ANSWER, forwarder, ALL, tcp=tcp)
def test_remote_tcp_53(server): return answer_checker.send_and_check(QUERY, ANSWER, server, ALL - {"authority"}, tcp=True, unset_flags=[dns.flags.AD])
def test_nonexistent_delegation_from_nsec3(forwarder, tcp): return answer_checker.send_and_check( NONEXISTENT_DELEGATION_FROM_NSEC3_QUERY, NONEXISTENT_DELEGATION_FROM_NSEC3_ANSWER, forwarder, ALL, tcp=tcp, unset_flags=[dns.flags.AA])
def test_supports_simple_answers(forwarder, tcp): return answer_checker.send_and_check(SIMPLE_QUERY, SIMPLE_ANSWER, forwarder, ALL - {"additional", "authority"}, tcp=tcp)
def test_nonexistent_type_nsec(forwarder, tcp): return answer_checker.send_and_check(NONEXISTENT_TYPE_NSEC_QUERY, NONEXISTENT_TYPE_NSEC_ANSWER, forwarder, ALL, tcp=tcp)
def test_zone_version(forwarder): return answer_checker.send_and_check(VERSION_QUERY, VERSION_ANSWER, forwarder, ALL - {"additional", "authority"})
def test_unknown_rrtype(forwarder, tcp): return answer_checker.send_and_check(UNKNOWN_TYPE_QUERY, UNKNOWN_TYPE_ANSWER, forwarder, ALL - {"additional", "authority"}, tcp=tcp)
def test_negative_nsec3_answers(forwarder, tcp): return answer_checker.send_and_check(NSEC3_NEGATIVE_QUERY, NSEC3_NEGATIVE_ANSWER, forwarder, HEADER | {"authority"}, tcp=tcp)
def test_supports_DS(forwarder, tcp): return answer_checker.send_and_check(DS_QUERY, DS_ANSWER, forwarder, HEADER | {"answerrrsigs"}, tcp=tcp)
def test_supports_DNSKEY(forwarder, tcp): return answer_checker.send_and_check(DNSKEY_QUERY, DNSKEY_ANSWER, forwarder, ALL - {"additional", "authority"}, tcp=tcp)
def test_returns_RRSIG(forwarder, tcp): return answer_checker.send_and_check(RRSIG_QUERY, RRSIG_ANSWER, forwarder, HEADER | {"answerrrsigs"}, tcp=tcp)
def test_zone_version(server): return answer_checker.send_and_check(VERSION_QUERY, VERSION_ANSWER, server, ALL - {"authority"}, unset_flags=[dns.flags.AD])
def test_udp_fragmentation_truncated(server): return answer_checker.send_and_check(QUERY_WITH_SMALL_PAYLOAD, TRUNCATED_ANSWER, server, ALL - {"authority"}, unset_flags=[dns.flags.AD])
def test_udp_fragmentation(server): return answer_checker.send_and_check(LONG_QUERY, LONG_ANSWER, server, ALL - {"authority"}, unset_flags=[dns.flags.AD])