diff options
author | Marc van der Wal <marc.vanderwal@afnic.fr> | 2022-08-01 11:21:58 +0000 |
---|---|---|
committer | Mattias Päivärinta <mattias.paivarinta@iis.se> | 2023-11-30 19:01:29 +0100 |
commit | 0541cca90eb6d610467543c8478e5a39041af51d (patch) | |
tree | 664729f4ccda750e48c760b338172f24a161ba92 /t | |
parent | 898e662d51658d6e3b276beafc217b321c375c77 (diff) |
Add missing methods for Zonemaster::LDNS::RR::SIG
SIG resource records were missing methods defined in LDNS.xs because of
a missing use statement in Zonemaster::LDNS::RR.
Diffstat (limited to 't')
-rw-r--r-- | t/rr.t | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -243,6 +243,13 @@ subtest 'NSEC3PARAM' => sub { is( lc($nsec3param->owner), 'whitehouse.gov.' ); }; +subtest 'SIG' => sub { + my $sig = Zonemaster::LDNS::RR->new_from_string('sig.example. 3600 IN SIG A 1 2 3600 19970102030405 19961211100908 2143 sig.example. AIYADP8d3zYNyQwW2EM4wXVFdslEJcUx/fxkfBeH1El4ixPFhpfHFElxbvKoWmvjDTCmfiYy2X+8XpFjwICHc398kzWsTMKlxovpz2FnCTM='); + isa_ok( $sig, 'Zonemaster::LDNS::RR::SIG' ); + can_ok( 'Zonemaster::LDNS::RR::SIG', qw(check_rd_count) ); + is( $sig->check_rd_count(), '1' ); +}; + subtest 'SRV' => sub { my $srv = Zonemaster::LDNS::RR->new( '_nicname._tcp.se. 172800 IN SRV 0 0 43 whois.nic-se.se.' ); is( $srv->type, 'SRV' ); |