Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update unit tests for Consistency05 and Consistency06 #1303

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 4 additions & 24 deletions MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,6 @@ t/profiles/Test-consistency01-only.json
t/profiles/Test-consistency02-only.json
t/profiles/Test-consistency03-only.json
t/profiles/Test-consistency04-only.json
t/profiles/Test-consistency05-only.json
t/profiles/Test-consistency06-only.json
t/profiles/Test-consistency-all.json
t/profiles/Test-delegation-all.json
t/profiles/Test-dnssec01-only.json
Expand Down Expand Up @@ -158,32 +156,14 @@ t/Test-connectivity04.data
t/Test-connectivity04.t
t/Test-consistency.data
t/Test-consistency.t
t/Test-consistency05-A.data
t/Test-consistency05-A.t
t/Test-consistency05-E.data
t/Test-consistency05-E.t
t/Test-consistency05.data
t/Test-consistency05.t
t/Test-consistency05-F.data
t/Test-consistency05-F.t
t/Test-consistency05-G.data
t/Test-consistency05-G.t
t/Test-consistency05-H.data
t/Test-consistency05-H.t
t/Test-consistency05-I.data
t/Test-consistency05-I.t
t/Test-consistency05-J.data
t/Test-consistency05-J.t
t/Test-consistency05-K.data
t/Test-consistency05-K.t
t/Test-consistency05-L.data
t/Test-consistency05-L.t
t/Test-consistency06-A.data
t/Test-consistency06-A.t
t/Test-consistency06.data
t/Test-consistency06.t
t/Test-consistency06-B.data
t/Test-consistency06-B.t
t/Test-consistency06-C.data
t/Test-consistency06-C.t
t/Test-consistency06-D.data
t/Test-consistency06-D.t
t/Test-delegation.data
t/Test-delegation.t
t/Test-delegation01-A.data
Expand Down
12 changes: 1 addition & 11 deletions t/Test-consistency.t
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if ( not $ENV{ZONEMASTER_RECORD} ) {
}

my ($json, $profile_test);
foreach my $testcase ( qw{consistency01 consistency02 consistency03 consistency04 consistency05 consistency06} ) {
foreach my $testcase ( qw{consistency01 consistency02 consistency03 consistency04} ) {
$json = read_file( 't/profiles/Test-'.$testcase.'-only.json' );
$profile_test = Zonemaster::Engine::Profile->from_json( $json );
Zonemaster::Engine::Profile->effective->merge( $profile_test );
Expand Down Expand Up @@ -58,16 +58,6 @@ ok( $res{SOA_TIME_PARAMETER_SET}, q{SOA time parameters details} );
ok( $res{MULTIPLE_NS_SET}, q{Saw several NS set} );
ok( $res{NS_SET}, q{NS set details} );

%res = map { $_->tag => 1 } Zonemaster::Engine->test_module( q{consistency}, q{consistency05-extra-address-child-1.zut-root.rd.nic.fr} );
ok( $res{EXTRA_ADDRESS_CHILD}, q{Child has extra addresses} );

%res = map { $_->tag => 1 } Zonemaster::Engine->test_module( q{consistency}, q{zone.g00.consistency05.data.zonemaster.se} );
ok( $res{EXTRA_ADDRESS_CHILD}, q{Child has extra addresses} );
ok( $res{IN_BAILIWICK_ADDR_MISMATCH}, q{In bailiwick addresses mismatch} );

%res = map { $_->tag => 1 } Zonemaster::Engine->test_module( q{consistency}, q{zone.g01.consistency05.data.zonemaster.se} );
ok( $res{IN_BAILIWICK_ADDR_MISMATCH}, q{In bailiwick addresses mismatch} );

%res = map { $_->tag => 1 } Zonemaster::Engine->test_module( q{consistency}, q{afnic.fr} );
ok( $res{ONE_SOA_SERIAL}, q{One SOA serial} );
ok( $res{ONE_SOA_RNAME}, q{One SOA rname} );
Expand Down
87 changes: 0 additions & 87 deletions t/Test-consistency05-A.data

This file was deleted.

41 changes: 0 additions & 41 deletions t/Test-consistency05-A.t

This file was deleted.

87 changes: 0 additions & 87 deletions t/Test-consistency05-E.data

This file was deleted.

41 changes: 0 additions & 41 deletions t/Test-consistency05-E.t

This file was deleted.

87 changes: 0 additions & 87 deletions t/Test-consistency05-G.data

This file was deleted.

41 changes: 0 additions & 41 deletions t/Test-consistency05-G.t

This file was deleted.

87 changes: 0 additions & 87 deletions t/Test-consistency05-H.data

This file was deleted.

41 changes: 0 additions & 41 deletions t/Test-consistency05-H.t

This file was deleted.

Loading
Loading