Commit b601c536 authored by Daniel Salzman's avatar Daniel Salzman

tests-extra: extend xfr and ddns tests with empty record

parent ea6f0b64
......@@ -58,5 +58,8 @@ lp LP 10 l64-subnet1.example.com.
eui48 EUI48 00-00-5e-00-53-2a
eui64 EUI64 00-00-5e-ef-10-00-00-2a
; Miscellaneous
empty IN TYPE999 \# 0
; Reported bugs
3.1.1.1.1.1.1.1.1.2.7.9.9 172800 NAPTR 1 1 "u" "E2U+sip" "!^.*$!sip:123@freeswitch.org!" .
......@@ -380,10 +380,19 @@ def do_normal_tests(master, zone, dnssec=False):
resp.check_record(rtype="NS", rdata="dns2.ddns.")
verify(master, zone, dnssec)
# add empty generic record
check_log("Add empty generic record")
up = master.update(zone)
up.add("empty.ddns.", 300, "TYPE999", "\# 0")
up.send("NOERROR")
resp = master.dig("empty.ddns.", "TYPE999")
resp.check_record(rtype="TYPE999", rdata="\# 0")
verify(master, zone, dnssec)
# add NAPTR record (NAPTR has special processing)
check_log("Add NAPTR record")
up = master.update(zone)
up.add("3.1.1.1.1.1.1.1.1.2.7.9.9.ddns.", "172800", "NAPTR", "1 1 \"u\" \"E2U+sip\" \"!^.*$!sip:123@freeswitch.org!\" .")
up.add("3.1.1.1.1.1.1.1.1.2.7.9.9.ddns.", 172800, "NAPTR", "1 1 \"u\" \"E2U+sip\" \"!^.*$!sip:123@freeswitch.org!\" .")
up.send("NOERROR")
resp = master.dig("3.1.1.1.1.1.1.1.1.2.7.9.9.ddns.", "NAPTR")
resp.check_record(rtype="NAPTR", rdata="1 1 \"u\" \"E2U+sip\" \"!^.*$!sip:123@freeswitch.org!\" .")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment