Skip Menu |

This queue is for tickets about the Cisco-ShowIPRoute-Parser CPAN distribution.

Report information
The Basics
Id: 123339
Status: new
Priority: 0/
Queue: Cisco-ShowIPRoute-Parser

People
Owner: Nobody in particular
Requestors: wes+rtcpanbugreport [...] smellycat.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Patch to fix failing test 5 in Cisco::ShowIPRoute::Parser version 1.02
Date: Fri, 20 Oct 2017 15:21:42 -0400
To: bug-Cisco-ShowIPRoute-Parser [...] rt.cpan.org
From: Wes Brown <wes+rtcpanbugreport [...] smellycat.com>
I just recently found this module and found when trying to install it that the fifth test was not even referencing a file that existed. Attached is a patch to help make that test work using the file I believe may have been included for that test. This code passes that test now. --- test.pl 2008-11-18 16:17:30.000000000 -0500 +++ fixed-test.pl 2017-10-20 15:13:14.954034053 -0400 @@ -54,10 +54,10 @@ } # Should be directly connected -my $log = './testlogs/RN-48GE-01-7609-01.log'; +my $log = './testlogs/RN-48GE-01-MSFC-01.log'; my $router = new Cisco::ShowIPRoute::Parser($log); -my @rts = $router->getroutes('192.168.88.5'); -if(@rts == 2 && $rts[0] eq '10.25.160.252' ) +my @rts = $router->getroutes('172.28.25.8'); +if(@rts == 2 && $rts[0] eq '10.25.224.254' ) { ok(1); } Thanks Wes