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

Delegation02 delegation checks #400

Merged

Conversation

mattias-p
Copy link
Member

@mattias-p mattias-p commented Jun 20, 2018

This adds a new check/message to Delegation02.

Final part of implementating zonemaster/zonemaster#610.

This also fixes a problem where fake delegations were stored and looked up differently.

Fake delegation lookups are done without trailing dots, so they must be
stored that way as well.
ok( !$res{CHILD_NS_SAME_IP}, q{should not emit CHILD_NS_SAME_IP} );
ok( $res{DEL_DISTINCT_NS_IP}, q{should emit DEL_DISTINCE_NS_IP} );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"should emit DEL_DISTINCE_NS_IP" => "should emit DEL_DISTINCT_NS_IP"

ok( !$res{CHILD_NS_SAME_IP}, q{should not emit CHILD_NS_SAME_IP} );
ok( $res{DEL_DISTINCT_NS_IP}, q{should emit DEL_DISTINCE_NS_IP} );
ok( $res{CHILD_DISTINCT_NS_IP}, q{should emit CHILD_DISTINCE_NS_IP} );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"should emit CHILD_DISTINCE_NS_IP" => "should emit CHILD_DISTINCT_NS_IP"

'ns1.b.delegation02.exempelvis.se' => [ '46.21.97.97', '2a02:750:12:77::97' ],
'ns2.b.delegation02.exempelvis.se' => [ '46.21.97.97', '2a02:750:12:77::97' ],
},
);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why add that as undelegated instead of letting Zonemaster pick live data up?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly because it reflects our use case. I guess it's not necessary. However, doing that is what unveiled the trailing dots problem.

ok( $res{CHILD_NS_SAME_IP}, q{should emit CHILD_NS_SAME_IP} );
ok( $res{DEL_DISTINCT_NS_IP}, q{should emit DEL_DISTINCE_NS_IP} );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"should emit CHILD_DISTINCE_NS_IP" => "should emit CHILD_DISTINCT_NS_IP"

ok( !$res{CHILD_NS_SAME_IP}, q{should not emit CHILD_NS_SAME_IP} );
ok( !$res{DEL_DISTINCT_NS_IP}, q{should not emit DEL_DISTINCE_NS_IP} );
ok( $res{CHILD_DISTINCT_NS_IP}, q{should emit CHILD_DISTINCE_NS_IP} );

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"should emit CHILD_DISTINCE_NS_IP" => "should emit CHILD_DISTINCT_NS_IP"

ok( $res{DEL_NS_SAME_IP}, q{should emit DEL_NS_SAME_IP} );
ok( $res{CHILD_NS_SAME_IP}, q{should emit CHILD_NS_SAME_IP} );
ok( !$res{DEL_DISTINCT_NS_IP}, q{should not emit DEL_DISTINCE_NS_IP} );
ok( !$res{CHILD_DISTINCT_NS_IP}, q{should not emit CHILD_DISTINCE_NS_IP} );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"should not emit DEL_DISTINCE_NS_IP" => "should not emit DEL_DISTINCT_NS_IP"

"should emit CHILD_DISTINCE_NS_IP" => "should emit CHILD_DISTINCT_NS_IP"

Copy link
Contributor

@matsduf matsduf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some changes overlap with #398

@mattias-p mattias-p merged commit fb95140 into zonemaster:develop-during-release Jun 21, 2018
@mattias-p mattias-p deleted the delegation02-del branch June 26, 2018 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants