You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "Chaithanya Ganta (JIRA)" <ji...@apache.org> on 2017/09/21 11:47:00 UTC

[jira] [Comment Edited] (JCLOUDS-1345) testMetadata test is failing if we use ApacheHCHttpCommandExecutorServiceModule

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

Chaithanya Ganta edited comment on JCLOUDS-1345 at 9/21/17 11:46 AM:
---------------------------------------------------------------------

Jclouds is creating response payloads only if response input stream is not null. For "HEAD" requests in case of JavaUrlHttpCommandExecutorService response input stream (connection.getInputStream()) is not null (although it doesn't have any content), whereas it is null for ApacheHCHttpCommandExecutorService (apacheResponse.getEntity()) which is causing the difference in the behaviour.


was (Author: chaitanya.nitj@gmail.com):
Jclouds creates response payloads only if response input stream is not null. For "HEAD" requests in case of JavaUrlHttpCommandExecutorService response input stream (connection.getInputStream()) is not null (although it doesn't have any content), whereas it is null for ApacheHCHttpCommandExecutorService (apacheResponse.getEntity()) which is causing this test failure.

> testMetadata test is failing if we use ApacheHCHttpCommandExecutorServiceModule
> -------------------------------------------------------------------------------
>
>                 Key: JCLOUDS-1345
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-1345
>             Project: jclouds
>          Issue Type: Bug
>          Components: jclouds-blobstore
>            Reporter: Chaithanya Ganta
>
> testMetadata (in BaseBlobIntegrationTest) test is failing if we use ApacheHCHttpCommandExecutorServiceModule, passing with JavaUrlHttpCommandExecutorServiceModule.
> Command used to run test:
> mvn integration-test -pl :azureblob -Plive -Dtest.azureblob.identity="" -Dtest.azureblob.credential="" -Dtest=AzureBlobIntegrationLiveTest#testMetadata
> java.lang.AssertionError: application/unknown
>         at org.jclouds.blobstore.integration.internal.BaseBlobIntegrationTest.validateMetadata(BaseBlobIntegrationTest.java:1388)
>         at org.jclouds.blobstore.integration.internal.BaseBlobIntegrationTest.testMetadata(BaseBlobIntegrationTest.java:872)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:498)
>         at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
>         at org.testng.internal.Invoker.invokeMethod(Invoker.java:696)
>         at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:882)
>         at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1189)
>         at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)
>         at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>         at java.lang.Thread.run(Thread.java:748)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)