Uploaded image for project: 'SwitchYard'
  1. SwitchYard
  2. SWITCHYARD-2455

HttpProxyTest should account for apache NoHttpResponseException

    Details

    • Type: Feature Request
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: component-http
    • Labels:
      None

      Description

      On IBM JDK / Fedora 20, HttpProxyTests are failing in both http and resteasy components :

      Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.324 sec <<< FAILURE!
      unknownHost(org.switchyard.component.http.HttpProxyTest) Time elapsed: 0.367 sec <<< FAILURE!
      java.lang.AssertionError
      at org.junit.Assert.fail(Assert.java:86)
      at org.junit.Assert.assertTrue(Assert.java:41)
      at org.junit.Assert.assertTrue(Assert.java:52)
      at org.switchyard.component.http.HttpProxyTest.unknownHost(HttpProxyTest.java:159)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

      The reason is that it looks like instead of an UnknownHostException: unreachablehost, IBM JDK is throwing a org.apache.http.NoHttpResponseException: unreachablehost. We should check for this as well and allow it.

      Note : the HttpProxyTest in soap passes, no change necessary there.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tcunning Thomas Cunningham
                Reporter:
                tcunning Thomas Cunningham
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: