summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBrian Wellington <bwelling@xbill.org>2021-07-13 15:29:30 -0700
committerBrian Wellington <bwelling@xbill.org>2021-07-13 15:29:30 -0700
commit4174b2ec8715747175173d1c3406b62b6bc67bc7 (patch)
tree9652950262f1a1a3a618f08c2b1bf60463614acb /tests
parent2ad1d9e5583c18900bea778f90cd7eb747abe599 (diff)
downloaddnspython-4174b2ec8715747175173d1c3406b62b6bc67bc7.tar.gz
Add support for RFC 6742 types.
This adds the NID, L32, L64, and LP types.
Diffstat (limited to 'tests')
-rw-r--r--tests/example14
-rw-r--r--tests/example1.good14
-rw-r--r--tests/example2.good14
-rw-r--r--tests/example3.good14
-rw-r--r--tests/example4.good14
5 files changed, 70 insertions, 0 deletions
diff --git a/tests/example b/tests/example
index 7450933..f6a2a76 100644
--- a/tests/example
+++ b/tests/example
@@ -194,6 +194,20 @@ hip02 HIP 2 200100107B1A74DF365639CC39F1D578 AwEAAbdxyhNuSutc5EMzxTs9LBPCIkOFH
hip03 HIP 2 200100107B1A74DF365639CC39F1D578 AwEAAbdxyhNuSutc5EMzxTs9LBPCIkOFH8cIvM4p9+LrV4e19WzK00+CI6zBCQTdtWsuxKbWIy87UOoJTwkUs7lBu+Upr1gsNrut79ryra+bSRGQb1slImA8YVJyuIDsj7kwzG7jnERNqnWxZ48AWkskmdHaVDP4BcelrTI3rMXdXF5D rvs1.example.com. rvs2.example.com.
cds01 CDS 12345 3 1 123456789abcdef67890123456789abcdef67890
cdnskey01 CDNSKEY 256 3 8 ( AwEAAbmiLgh411Pz3v3XCSBrvYf52A/Gv55ItN1NbOLH Cqt3Ec3p+VB/kQ87VjjMrycanZFnZT4l9uCFuYh21Ccy xVpcxExbM0UuhX5rJoDyeFSXoQlkHrB01osPl5Vri5Ym KtcmqGxZ9An0VSunohkyiX1SrNRZSdQnk9/pIHDe/c8D )
+nid01 NID 10 0014:4fff:ff20:ee64
+nid02 NID 20 0015:5fff:ff21:ee65
+nid03 NID 10 0016:6fff:ff22:ee66
+l3201 L32 10 10.1.2.0
+l3202 L32 20 10.1.4.0
+l3203 L32 10 10.1.8.0
+l6401 L64 10 2001:0DB8:1140:1000
+l6402 L64 20 2001:0DB8:2140:2000
+l6403 L64 10 2001:0DB8:4140:4000
+lp01 LP 10 l64-subnet1.example.com.
+lp02 LP 10 l64-subnet2.example.com.
+lp03 LP 20 l32-subnet1.example.com.
+eui48 EUI48 00-00-5e-00-53-2a
+eui64 EUI64 00-00-5e-ef-10-00-00-2a
uri01 URI 10 1 "ftp://ftp1.example.com/public"
uri02 URI 10 1 "http://www.example.com/path"
caa01 CAA 0 issue "ca.example.net"
diff --git a/tests/example1.good b/tests/example1.good
index 2fb2d0b..72925b2 100644
--- a/tests/example1.good
+++ b/tests/example1.good
@@ -54,6 +54,8 @@ e 300 IN A 73.80.65.49
e 300 IN A 73.80.65.50
e 300 IN A 73.80.65.52
e 300 IN A 73.80.65.51
+eui48 3600 IN EUI48 00-00-5e-00-53-2a
+eui64 3600 IN EUI64 00-00-5e-ef-10-00-00-2a
f 300 IN A 73.80.65.52
gpos01 3600 IN GPOS -22.6882 116.8652 250.0
hinfo01 3600 IN HINFO "Generic PC clone" "NetBSD-1.4"
@@ -74,6 +76,12 @@ isdn03 3600 IN ISDN "isdn-address"
isdn04 3600 IN ISDN "isdn-address" "subaddress"
kx01 3600 IN KX 10 kdc
kx02 3600 IN KX 10 .
+l3201 3600 IN L32 10 10.1.2.0
+l3202 3600 IN L32 20 10.1.4.0
+l3203 3600 IN L32 10 10.1.8.0
+l6401 3600 IN L64 10 2001:0DB8:1140:1000
+l6402 3600 IN L64 20 2001:0DB8:2140:2000
+l6403 3600 IN L64 10 2001:0DB8:4140:4000
loc01 3600 IN LOC 60 9 0.000 N 24 39 0.000 E 10.00m 20.00m 2000.00m 20.00m
loc02 3600 IN LOC 60 9 0.000 N 24 39 0.000 E 10.00m 20.00m 2000.00m 20.00m
loc03 3600 IN LOC 60 9 0.000 N 24 39 0.000 E 10.00m 90000000.00m 2000.00m 20.00m
@@ -82,10 +90,16 @@ loc05 3600 IN LOC 60 9 1.510 N 24 39 0.000 E 10.00m 90000000.00m 2000.00m 20.00m
loc06 3600 IN LOC 60 9 1.000 N 24 39 0.000 E 10.00m 90000000.00m 2000.00m 20.00m
loc07 3600 IN LOC 0 9 1.000 N 24 39 0.000 E 10.00m 90000000.00m 2000.00m 20.00m
loc08 3600 IN LOC 0 9 1.000 S 24 39 0.000 E 10.00m 90000000.00m 2000.00m 20.00m
+lp01 3600 IN LP 10 l64-subnet1.example.com.
+lp02 3600 IN LP 10 l64-subnet2.example.com.
+lp03 3600 IN LP 20 l32-subnet1.example.com.
mx01 3600 IN MX 10 mail
mx02 3600 IN MX 10 .
naptr01 3600 IN NAPTR 0 0 "" "" "" .
naptr02 3600 IN NAPTR 65535 65535 "blurgh" "blorf" "blegh" foo.
+nid01 3600 IN NID 10 0014:4fff:ff20:ee64
+nid02 3600 IN NID 20 0015:5fff:ff21:ee65
+nid03 3600 IN NID 10 0016:6fff:ff22:ee66
ns1 300 IN A 10.53.0.1
ns2 300 IN A 10.53.0.2
nsap-ptr01 3600 IN NSAP-PTR foo.
diff --git a/tests/example2.good b/tests/example2.good
index efd95e1..6f6a861 100644
--- a/tests/example2.good
+++ b/tests/example2.good
@@ -54,6 +54,8 @@ e.example. 300 IN A 73.80.65.49
e.example. 300 IN A 73.80.65.50
e.example. 300 IN A 73.80.65.52
e.example. 300 IN A 73.80.65.51
+eui48.example. 3600 IN EUI48 00-00-5e-00-53-2a
+eui64.example. 3600 IN EUI64 00-00-5e-ef-10-00-00-2a
f.example. 300 IN A 73.80.65.52
gpos01.example. 3600 IN GPOS -22.6882 116.8652 250.0
hinfo01.example. 3600 IN HINFO "Generic PC clone" "NetBSD-1.4"
@@ -74,6 +76,12 @@ isdn03.example. 3600 IN ISDN "isdn-address"
isdn04.example. 3600 IN ISDN "isdn-address" "subaddress"
kx01.example. 3600 IN KX 10 kdc.example.
kx02.example. 3600 IN KX 10 .
+l3201.example. 3600 IN L32 10 10.1.2.0
+l3202.example. 3600 IN L32 20 10.1.4.0
+l3203.example. 3600 IN L32 10 10.1.8.0
+l6401.example. 3600 IN L64 10 2001:0DB8:1140:1000
+l6402.example. 3600 IN L64 20 2001:0DB8:2140:2000
+l6403.example. 3600 IN L64 10 2001:0DB8:4140:4000
loc01.example. 3600 IN LOC 60 9 0.000 N 24 39 0.000 E 10.00m 20.00m 2000.00m 20.00m
loc02.example. 3600 IN LOC 60 9 0.000 N 24 39 0.000 E 10.00m 20.00m 2000.00m 20.00m
loc03.example. 3600 IN LOC 60 9 0.000 N 24 39 0.000 E 10.00m 90000000.00m 2000.00m 20.00m
@@ -82,10 +90,16 @@ loc05.example. 3600 IN LOC 60 9 1.510 N 24 39 0.000 E 10.00m 90000000.00m 2000.0
loc06.example. 3600 IN LOC 60 9 1.000 N 24 39 0.000 E 10.00m 90000000.00m 2000.00m 20.00m
loc07.example. 3600 IN LOC 0 9 1.000 N 24 39 0.000 E 10.00m 90000000.00m 2000.00m 20.00m
loc08.example. 3600 IN LOC 0 9 1.000 S 24 39 0.000 E 10.00m 90000000.00m 2000.00m 20.00m
+lp01.example. 3600 IN LP 10 l64-subnet1.example.com.
+lp02.example. 3600 IN LP 10 l64-subnet2.example.com.
+lp03.example. 3600 IN LP 20 l32-subnet1.example.com.
mx01.example. 3600 IN MX 10 mail.example.
mx02.example. 3600 IN MX 10 .
naptr01.example. 3600 IN NAPTR 0 0 "" "" "" .
naptr02.example. 3600 IN NAPTR 65535 65535 "blurgh" "blorf" "blegh" foo.
+nid01.example. 3600 IN NID 10 0014:4fff:ff20:ee64
+nid02.example. 3600 IN NID 20 0015:5fff:ff21:ee65
+nid03.example. 3600 IN NID 10 0016:6fff:ff22:ee66
ns1.example. 300 IN A 10.53.0.1
ns2.example. 300 IN A 10.53.0.2
nsap-ptr01.example. 3600 IN NSAP-PTR foo.
diff --git a/tests/example3.good b/tests/example3.good
index 2fb2d0b..72925b2 100644
--- a/tests/example3.good
+++ b/tests/example3.good
@@ -54,6 +54,8 @@ e 300 IN A 73.80.65.49
e 300 IN A 73.80.65.50
e 300 IN A 73.80.65.52
e 300 IN A 73.80.65.51
+eui48 3600 IN EUI48 00-00-5e-00-53-2a
+eui64 3600 IN EUI64 00-00-5e-ef-10-00-00-2a
f 300 IN A 73.80.65.52
gpos01 3600 IN GPOS -22.6882 116.8652 250.0
hinfo01 3600 IN HINFO "Generic PC clone" "NetBSD-1.4"
@@ -74,6 +76,12 @@ isdn03 3600 IN ISDN "isdn-address"
isdn04 3600 IN ISDN "isdn-address" "subaddress"
kx01 3600 IN KX 10 kdc
kx02 3600 IN KX 10 .
+l3201 3600 IN L32 10 10.1.2.0
+l3202 3600 IN L32 20 10.1.4.0
+l3203 3600 IN L32 10 10.1.8.0
+l6401 3600 IN L64 10 2001:0DB8:1140:1000
+l6402 3600 IN L64 20 2001:0DB8:2140:2000
+l6403 3600 IN L64 10 2001:0DB8:4140:4000
loc01 3600 IN LOC 60 9 0.000 N 24 39 0.000 E 10.00m 20.00m 2000.00m 20.00m
loc02 3600 IN LOC 60 9 0.000 N 24 39 0.000 E 10.00m 20.00m 2000.00m 20.00m
loc03 3600 IN LOC 60 9 0.000 N 24 39 0.000 E 10.00m 90000000.00m 2000.00m 20.00m
@@ -82,10 +90,16 @@ loc05 3600 IN LOC 60 9 1.510 N 24 39 0.000 E 10.00m 90000000.00m 2000.00m 20.00m
loc06 3600 IN LOC 60 9 1.000 N 24 39 0.000 E 10.00m 90000000.00m 2000.00m 20.00m
loc07 3600 IN LOC 0 9 1.000 N 24 39 0.000 E 10.00m 90000000.00m 2000.00m 20.00m
loc08 3600 IN LOC 0 9 1.000 S 24 39 0.000 E 10.00m 90000000.00m 2000.00m 20.00m
+lp01 3600 IN LP 10 l64-subnet1.example.com.
+lp02 3600 IN LP 10 l64-subnet2.example.com.
+lp03 3600 IN LP 20 l32-subnet1.example.com.
mx01 3600 IN MX 10 mail
mx02 3600 IN MX 10 .
naptr01 3600 IN NAPTR 0 0 "" "" "" .
naptr02 3600 IN NAPTR 65535 65535 "blurgh" "blorf" "blegh" foo.
+nid01 3600 IN NID 10 0014:4fff:ff20:ee64
+nid02 3600 IN NID 20 0015:5fff:ff21:ee65
+nid03 3600 IN NID 10 0016:6fff:ff22:ee66
ns1 300 IN A 10.53.0.1
ns2 300 IN A 10.53.0.2
nsap-ptr01 3600 IN NSAP-PTR foo.
diff --git a/tests/example4.good b/tests/example4.good
index f2c90d7..1bb8a39 100644
--- a/tests/example4.good
+++ b/tests/example4.good
@@ -55,6 +55,8 @@ e 300 IN A 73.80.65.49
e 300 IN A 73.80.65.50
e 300 IN A 73.80.65.52
e 300 IN A 73.80.65.51
+eui48 3600 IN EUI48 00-00-5e-00-53-2a
+eui64 3600 IN EUI64 00-00-5e-ef-10-00-00-2a
f 300 IN A 73.80.65.52
gpos01 3600 IN GPOS -22.6882 116.8652 250.0
hinfo01 3600 IN HINFO "Generic PC clone" "NetBSD-1.4"
@@ -75,6 +77,12 @@ isdn03 3600 IN ISDN "isdn-address"
isdn04 3600 IN ISDN "isdn-address" "subaddress"
kx01 3600 IN KX 10 kdc
kx02 3600 IN KX 10 .
+l3201 3600 IN L32 10 10.1.2.0
+l3202 3600 IN L32 20 10.1.4.0
+l3203 3600 IN L32 10 10.1.8.0
+l6401 3600 IN L64 10 2001:0DB8:1140:1000
+l6402 3600 IN L64 20 2001:0DB8:2140:2000
+l6403 3600 IN L64 10 2001:0DB8:4140:4000
loc01 3600 IN LOC 60 9 0.000 N 24 39 0.000 E 10.00m 20.00m 2000.00m 20.00m
loc02 3600 IN LOC 60 9 0.000 N 24 39 0.000 E 10.00m 20.00m 2000.00m 20.00m
loc03 3600 IN LOC 60 9 0.000 N 24 39 0.000 E 10.00m 90000000.00m 2000.00m 20.00m
@@ -83,10 +91,16 @@ loc05 3600 IN LOC 60 9 1.510 N 24 39 0.000 E 10.00m 90000000.00m 2000.00m 20.00m
loc06 3600 IN LOC 60 9 1.000 N 24 39 0.000 E 10.00m 90000000.00m 2000.00m 20.00m
loc07 3600 IN LOC 0 9 1.000 N 24 39 0.000 E 10.00m 90000000.00m 2000.00m 20.00m
loc08 3600 IN LOC 0 9 1.000 S 24 39 0.000 E 10.00m 90000000.00m 2000.00m 20.00m
+lp01 3600 IN LP 10 l64-subnet1.example.com.
+lp02 3600 IN LP 10 l64-subnet2.example.com.
+lp03 3600 IN LP 20 l32-subnet1.example.com.
mx01 3600 IN MX 10 mail
mx02 3600 IN MX 10 .
naptr01 3600 IN NAPTR 0 0 "" "" "" .
naptr02 3600 IN NAPTR 65535 65535 "blurgh" "blorf" "blegh" foo.
+nid01 3600 IN NID 10 0014:4fff:ff20:ee64
+nid02 3600 IN NID 20 0015:5fff:ff21:ee65
+nid03 3600 IN NID 10 0016:6fff:ff22:ee66
ns1 300 IN A 10.53.0.1
ns2 300 IN A 10.53.0.2
nsap-ptr01 3600 IN NSAP-PTR foo.