summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
author[Thomas Green] <thomas.green@afnic.fr>2023-03-07 17:54:15 +0100
committer[Thomas Green] <thomas.green@afnic.fr>2023-03-07 17:54:15 +0100
commit5280022cd7c9f27ab16f7701019f84841c684d99 (patch)
treeb4a15dff650f41386dbd0b8721a13bf5f5819395 /t
parentdfee31922853fba06b19c8665f20a60920400c65 (diff)
Expand DNAME RR support - initial commit
- Allow access to DNAME RR - Add unitary test
Diffstat (limited to 't')
-rw-r--r--t/rr.t6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/rr.t b/t/rr.t
index ab7420f..476a7c8 100644
--- a/t/rr.t
+++ b/t/rr.t
@@ -235,6 +235,12 @@ subtest 'SPF' => sub {
};
+subtest 'DNAME' => sub {
+ my $rr = Zonemaster::LDNS::RR->new( 'examplë.fake 3600 IN DNAME example.fake' );
+ isa_ok( $rr, 'Zonemaster::LDNS::RR::DNAME' );
+ is($rr->dname(), 'example.fake.');
+};
+
subtest 'croak when given malformed CAA records' => sub {
my $will_croak = sub {
# This will croak if LDNS.xs is compiled with -DUSE_ITHREADS