jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zack Shoylev <notificati...@github.com>
Subject Re: [jclouds-labs-openstack] Poppy service api (#179)
Date Fri, 06 Mar 2015 22:40:27 GMT
> @@ -52,7 +53,7 @@
>     @Consumes(MediaType.APPLICATION_JSON)
>     @Endpoint(CDN.class)
>     @RequestFilters(AuthenticateRequest.class)
> -   @Fallback(FalseOn500or503.class)
> +   @Fallback(PoppyFallbacks.FalseOn500or503orIOE.class)

testPingFailOn500(org.jclouds.openstack.poppy.v1.features.PoppyApiMockTest)  Time elapsed:
0.173 sec  <<< FAILURE!
org.jclouds.http.HttpResponseException: java.io.IOException: closed connecting to GET http://localhost:56553/v1.0/123123/ping
HTTP/1.1
        at okio.RealBufferedSource$1.read(RealBufferedSource.java:294)
        at java.io.InputStream.read(InputStream.java:101)
        at com.google.common.io.ByteStreams.copy(ByteStreams.java:175)
        at com.google.common.io.ByteStreams.toByteArray(ByteStreams.java:220)
        at org.jclouds.http.HttpUtils.toByteArrayOrNull(HttpUtils.java:125)
        at org.jclouds.http.HttpUtils.closeClientButKeepContentStream(HttpUtils.java:159)
        at org.jclouds.openstack.poppy.v1.handlers.PoppyErrorHandler.handleError(PoppyErrorHandler.java:32)
        at org.jclouds.http.handlers.DelegatingErrorHandler.handleError(DelegatingErrorHandler.java:67)
        at org.jclouds.http.internal.BaseHttpCommandExecutorService.shouldContinue(BaseHttpCommandExecutorService.java:128)
        at org.jclouds.http.internal.BaseHttpCommandExecutorService.invoke(BaseHttpCommandExecutorService.java:98)
        at org.jclouds.rest.internal.InvokeHttpMethod.invoke(InvokeHttpMethod.java:90)
        at org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:73)
        at org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:44)
        at org.jclouds.rest.internal.DelegatesToInvocationFunction.handle(DelegatesToInvocationFunction.java:156)
        at org.jclouds.rest.internal.DelegatesToInvocationFunction.invoke(DelegatesToInvocationFunction.java:123)
        at com.sun.proxy.$Proxy52.ping(Unknown Source)
        at org.jclouds.openstack.poppy.v1.features.PoppyApiMockTest.testPingFailOn500(PoppyApiMockTest.java:62)

This is tested by returning 500 from mockhttp and then trying to process it with returnValueOnCodeOrNull

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/179/files#r25984591
Mime
View raw message