1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

pytest: dns_aging: remind developers to use fl2003

By "developers", I of course mean "me".

Other environments insist on secure updates, which these tests don't
do.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Douglas Bagnall 2021-06-11 17:31:54 +12:00 committed by Andrew Bartlett
parent 0423b0b884
commit d7d4fd98be

View File

@ -337,6 +337,12 @@ class TestDNSAging(DNSTest):
txt = [txt]
p = self.make_txt_update(name, txt, self.zone, ttl=ttl)
(code, response) = self.dns_transaction_udp(p, host=SERVER_IP)
if code.operation & dns.DNS_RCODE == dns.DNS_RCODE_REFUSED:
# sometimes you might forget this
print("\n\ngot DNS_RCODE_REFUSED\n")
print("Are you running this in the fl2003 environment?\n")
print("try `SELFTEST_TESTENV='fl2003dc:local' make testenv`\n\n")
self.assert_dns_rcode_equals(code, dns.DNS_RCODE_OK)
return self.get_unique_txt_record(name, txt)