Skip to content

Fixed riswhois (RIPE) support#834

Merged
matsduf merged 2 commits into
zonemaster:developfrom
matsduf:fix-833-Connectivity03
Nov 12, 2020
Merged

Fixed riswhois (RIPE) support#834
matsduf merged 2 commits into
zonemaster:developfrom
matsduf:fix-833-Connectivity03

Conversation

@matsduf

@matsduf matsduf commented Nov 4, 2020

Copy link
Copy Markdown
Contributor

Resolves issue #833

@matsduf matsduf added T-Bug Type: Bug in software or error in test case description A-TestCase Area: Test case specification or implementation of test case labels Nov 4, 2020
@matsduf matsduf added this to the v2020.2 milestone Nov 4, 2020
@matsduf matsduf requested review from a user, mattias-p and vlevigneron November 4, 2020 14:02
@matsduf matsduf linked an issue Nov 4, 2020 that may be closed by this pull request
vlevigneron
vlevigneron previously approved these changes Nov 4, 2020

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Maybe there should be an automated test to check that everything works fine with the RIPE profile.

Comment thread lib/Zonemaster/Engine/ASNLookup.pm Outdated
Comment on lines +140 to +144
my $socket;
unless( $socket = IO::Socket::INET->new( PeerAddr => $db_source->name->string,
PeerPort => q{43},
Proto => q{tcp} )
) {

@mattias-p mattias-p Nov 4, 2020

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There's way too much going on here. It would be more readable with my $socket = ...; if ( !$socket ) { ... }.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Same, same, but I changed the code as you suggested.

@matsduf

matsduf commented Nov 5, 2020

Copy link
Copy Markdown
Contributor Author

Maybe there should be an automated test to check that everything works fine with the RIPE profile.

One complexity is that you do not want automated tests that are dependent on remote connection. We have built-in solution for canned DNS queries, but this something different. But it is a good suggestion. I'll create an issue (#835).

@matsduf matsduf modified the milestones: v2020.2, v2020.1.1 Nov 5, 2020
@matsduf

matsduf commented Nov 12, 2020

Copy link
Copy Markdown
Contributor Author

@vlevigneron, could you review after my change?

@matsduf matsduf merged commit cc8f0d2 into zonemaster:develop Nov 12, 2020
@matsduf matsduf deleted the fix-833-Connectivity03 branch November 12, 2020 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-TestCase Area: Test case specification or implementation of test case T-Bug Type: Bug in software or error in test case description

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using RIPE for Connectivity03 does not work

3 participants