[ 
https://issues.apache.org/jira/browse/DATAFU-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14076828#comment-14076828
 ] 

Matthew Hayes commented on DATAFU-62:
-------------------------------------

Did you try running the test after adding port?  The getPort method returns -1 
when the port is not set.  This -1 is showing up in the output.

{code}
./gradlew :datafu-pig:test -Dtest.single=URLInfoTest
{code}

Failure:

{code}
expected:<([bar.com,roger.bar.com,http,/marketing/brand.html,,[x#foo])
(world.org,hello.world.org,https,/products/data/data.html,90,[])
(bar.com,roger.bar.com,ftp,/eng/hello.jsp,,[x#foo,y#bar])
(world.org,hello.world.org,http,/products/data/data.html,90,[])
(bar.com,roger.bar.com,http,/eng/hello.jsp,,[x#foo,y#bar]])> but 
was:<([(bar.com,roger.bar.com,http,/marketing/brand.html,-1,[x#foo]))
((world.org,hello.world.org,https,/products/data/data.html,90,))
((bar.com,roger.bar.com,ftp,/eng/hello.jsp,-1,[y#bar,x#foo]))
((world.org,hello.world.org,http,/products/data/data.html,90,))
((bar.com,roger.bar.com,http,/eng/hello.jsp,-1,[y#bar,x#foo])])>
{code}

> URL Info
> --------
>
>                 Key: DATAFU-62
>                 URL: https://issues.apache.org/jira/browse/DATAFU-62
>             Project: DataFu
>          Issue Type: New Feature
>    Affects Versions: 1.3.0
>            Reporter: Joydeep Banerjee
>         Attachments: DATAFU-62-v2.patch, DATAFU-62-v3.patch, 
> DATAFU-62-v4.patch, DATAFU-62.patch
>
>
> [This is work-in-progress]
> Given a valid URL, provide the following information about that URL - 
> domain name
> host name
> protocol
> path
> file name
> query parameters and their values



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to