Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-3426

CI Rest test failures

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: rest (dev)
    • Labels:

      Description

      A number of Rest tests are failing when running precheckin on Windows

      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)
      

        Attachments

          Activity

            People

            • Assignee:
              prhomberg Patrick Rhomberg
              Reporter:
              bschuchardt Bruce J Schuchardt
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: