Merge "Fix test failures for new dnspython module"

This commit is contained in:
Zuul 2019-01-04 16:24:12 +00:00 committed by Gerrit Code Review
commit b827073880
2 changed files with 20 additions and 12 deletions

View File

@ -7,15 +7,15 @@ example.com. 600 IN SOA ns1.example.com. nsadmin.example.com. (
10800 ; minimum
)
ipv4.example.com. 300 IN A 192.0.0.1
ipv6.example.com. IN AAAA fd00::1
cname.example.com. IN CNAME example.com.
example.com. IN MX 5 192.0.0.2
example.com. IN MX 10 192.0.0.3
_http._tcp.example.com. IN SRV 10 0 80 192.0.0.4
_http._tcp.example.com. IN SRV 10 5 80 192.0.0.5
example.com. IN TXT "abc" "def"
example.com. IN SPF "v=spf1 mx a"
example.com. IN NS ns1.example.com.
example.com. IN NS ns2.example.com.
delegation.example.com. IN NS ns1.example.com.
1.0.0.192.in-addr.arpa. IN PTR ipv4.example.com.
ipv6.example.com. 10800 IN AAAA fd00::1
cname.example.com. 10800 IN CNAME example.com.
example.com. 10800 IN MX 5 192.0.0.2
example.com. 10800 IN MX 10 192.0.0.3
_http._tcp.example.com. 10800 IN SRV 10 0 80 192.0.0.4
_http._tcp.example.com. 10800 IN SRV 10 5 80 192.0.0.5
example.com. 10800 IN TXT "abc" "def"
example.com. 10800 IN SPF "v=spf1 mx a"
example.com. 10800 IN NS ns1.example.com.
example.com. 10800 IN NS ns2.example.com.
delegation.example.com. 10800 IN NS ns1.example.com.
1.0.0.192.in-addr.arpa. 10800 IN PTR ipv4.example.com.

View File

@ -24,9 +24,11 @@ from designate.tests import TestCase
SAMPLES = {
("cname.example.com.", "CNAME"): {
"ttl": 10800,
"records": ["example.com."],
},
("_http._tcp.example.com.", "SRV"): {
"ttl": 10800,
"records": [
"10 0 80 192.0.0.4.example.com.",
"10 5 80 192.0.0.5.example.com."
@ -37,9 +39,11 @@ SAMPLES = {
"records": ["192.0.0.1"]
},
("delegation.example.com.", "NS"): {
"ttl": 10800,
"records": ["ns1.example.com."]
},
("ipv6.example.com.", "AAAA"): {
"ttl": 10800,
"records": ["fd00::1"],
},
("example.com.", "SOA"): {
@ -50,18 +54,22 @@ SAMPLES = {
"ttl": 600
},
("example.com.", "MX"): {
"ttl": 10800,
"records": [
"5 192.0.0.2.example.com.",
'10 192.0.0.3.example.com.'
]
},
("example.com.", "TXT"): {
"ttl": 10800,
"records": ['"abc" "def"']
},
("example.com.", "SPF"): {
"ttl": 10800,
"records": ['"v=spf1 mx a"']
},
("example.com.", "NS"): {
"ttl": 10800,
"records": [
'ns1.example.com.',
'ns2.example.com.'