You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2017/09/18 17:26:00 UTC
[jira] [Commented] (GEODE-3426) CI Rest test failures
[ https://issues.apache.org/jira/browse/GEODE-3426?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16170353#comment-16170353 ]
ASF subversion and git services commented on GEODE-3426:
--------------------------------------------------------
Commit 0965a4c4b7541df0b0bcf283858a56359f81a0cc in geode's branch refs/heads/develop from [~prhomberg]
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=0965a4c ]
GEODE-3426: Ignore RestServersJUnitTest when default port is unavailable.
> CI Rest test failures
> ---------------------
>
> Key: GEODE-3426
> URL: https://issues.apache.org/jira/browse/GEODE-3426
> Project: Geode
> Issue Type: Bug
> Components: rest (dev)
> Reporter: Bruce Schuchardt
> Assignee: Patrick Rhomberg
> Labels: ci
>
> A number of Rest tests are failing when running precheckin on Windows
> {noformat}
> org.apache.geode.rest.internal.web.controllers.RestAPIsQueryAndFEJUnitTest > testCreateAsJson FAILED
> java.lang.AssertionError: expected:<201> but was:<503>
> at org.junit.Assert.fail(Assert.java:88)
> at org.junit.Assert.failNotEquals(Assert.java:834)
> at org.junit.Assert.assertEquals(Assert.java:118)
> at org.junit.Assert.assertEquals(Assert.java:144)
> at org.apache.geode.rest.internal.web.controllers.RestAPIsQueryAndFEJUnitTest.executeQueryTestCases(RestAPIsQueryAndFEJUnitTest.java:831)
> at org.apache.geode.rest.internal.web.controllers.RestAPIsQueryAndFEJUnitTest.testCreateAsJson(RestAPIsQueryAndFEJUnitTest.java:677)
> org.apache.geode.rest.internal.web.RestInterfaceJUnitTest > testRegionObjectWithDatePropertyAccessedWithRestApi FAILED
> org.springframework.web.client.ResourceAccessException: I/O error on GET request for "http://localhost:25877/gemfire-api/v1/People/1": stream is closed; nested exception is java.io.IOException: stream is closed
> at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:666)
> at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:613)
> at org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:287)
> at org.apache.geode.rest.internal.web.RestInterfaceJUnitTest.testRegionObjectWithDatePropertyAccessedWithRestApi(RestInterfaceJUnitTest.java:317)
> Caused by:
> java.io.IOException: stream is closed
> at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.ensureOpen(HttpURLConnection.java:3348)
> at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3353)
> at java.io.FilterInputStream.read(FilterInputStream.java:83)
> at java.io.PushbackInputStream.read(PushbackInputStream.java:139)
> at org.springframework.web.client.MessageBodyClientHttpResponseWrapper.hasEmptyMessageBody(MessageBodyClientHttpResponseWrapper.java:97)
> at org.springframework.web.client.HttpMessageConverterExtractor.extractData(HttpMessageConverterExtractor.java:82)
> at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:655)
> ... 3 more
> org.apache.geode.rest.internal.web.RestServersJUnitTest > testGet FAILED
> org.junit.ComparisonFailure: expected:<[200]> but was:<[503]>
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at org.apache.geode.rest.internal.web.RestServersJUnitTest.testGet(RestServersJUnitTest.java:49)
> org.apache.geode.rest.internal.web.RestServersJUnitTest > testServerStartedOnDefaultPort FAILED
> org.json.JSONException: Value <html> of type java.lang.String cannot be converted to JSONArray
> at org.json.JSON.typeMismatch(JSON.java:108)
> at org.json.JSONArray.<init>(JSONArray.java:85)
> at org.apache.geode.rest.internal.web.GeodeRestClient.getJsonArray(GeodeRestClient.java:99)
> at org.apache.geode.rest.internal.web.RestServersJUnitTest.testServerStartedOnDefaultPort(RestServersJUnitTest.java:55)
> org.apache.geode.rest.internal.web.SwaggerVerificationTest > isSwaggerRunning FAILED
> java.lang.AssertionError:
> Expected: is <200>
> but: was <503>
> at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
> at org.junit.Assert.assertThat(Assert.java:956)
> at org.junit.Assert.assertThat(Assert.java:923)
> at org.apache.geode.rest.internal.web.SwaggerVerificationTest.isSwaggerRunning(SwaggerVerificationTest.java:44)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)