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

Joe Skora commented on NIFI-1749:
---------------------------------

[~aldrin], is the goal of this to rework the tests so that they can pass 
without internet access or do you have something else in mind?

I've had systems with slow or varying access struggle with various HTTP tests 
as well (I believe InvokeHTTP failed the most, but don't quote me on that) but 
when run repeatedly these tests would eventually pass.

Maybe there should be an initial check of internet access, latency, and 
throughput so a warning can be shown indicating that there could be test 
failures due to the environment?  That's what I ran into yesterday where DNS 
issues were breaking the Kafka tests.

> Test failures when building without access to internet
> ------------------------------------------------------
>
>                 Key: NIFI-1749
>                 URL: https://issues.apache.org/jira/browse/NIFI-1749
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Tools and Build
>    Affects Versions: 0.6.0
>            Reporter: Aldrin Piri
>            Priority: Minor
>
> Given the needed dependencies within the Maven local repository, some tests 
> will fail without access to the Internet.
> {code}
> testCSSSelectorSyntaxValidator(org.apache.nifi.TestGetHTMLElement)  Time 
> elapsed: 0.947 sec  <<< ERROR!
> java.net.UnknownHostException: www.google.com
>       at 
> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
>       at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
>       at java.net.Socket.connect(Socket.java:589)
>       at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
>       at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
>       at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
>       at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
>       at sun.net.www.http.HttpClient.New(HttpClient.java:308)
>       at sun.net.www.http.HttpClient.New(HttpClient.java:326)
>       at 
> sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1169)
>       at 
> sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1105)
>       at 
> sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:999)
>       at 
> sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:933)
>       at 
> org.jsoup.helper.HttpConnection$Response.execute(HttpConnection.java:512)
>       at 
> org.jsoup.helper.HttpConnection$Response.execute(HttpConnection.java:493)
>       at org.jsoup.helper.HttpConnection.execute(HttpConnection.java:205)
>       at org.jsoup.helper.HttpConnection.get(HttpConnection.java:194)
>       at org.jsoup.Jsoup.parse(Jsoup.java:183)
>       at 
> org.apache.nifi.TestGetHTMLElement.testCSSSelectorSyntaxValidator(TestGetHTMLElement.java:49)
> {code}
> {quote}
> DeleteDynamoDBTest.testStringHashStringRangeDeleteOnlyHashFailure:89 null
> GetDynamoDBTest.testStringHashStringRangeGetOnlyHashFailure:421 null
> PutDynamoDBTest.testStringHashStringRangePutOnlyHashFailure:92 null
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to