You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2019/10/17 11:39:00 UTC

[jira] [Work logged] (CAMEL-14071) [Camel-as2] Integration tests are not working

     [ https://issues.apache.org/jira/browse/CAMEL-14071?focusedWorklogId=329789&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-329789 ]

ASF GitHub Bot logged work on CAMEL-14071:
------------------------------------------

                Author: ASF GitHub Bot
            Created on: 17/Oct/19 11:38
            Start Date: 17/Oct/19 11:38
    Worklog Time Spent: 10m 
      Work Description: JiriOndrusek commented on pull request #3259: [CAMEL-14071] [Camel-as2] Integration tests are not working
URL: https://github.com/apache/camel/pull/3259
 
 
   Issue: https://issues.apache.org/jira/browse/CAMEL-14071
   
   - One class was missing in if condition of AS2Producer in interception method (https://github.com/apache/camel/commit/30192d63f0290639e815df21ae37c9bc85f184d4#diff-090142443d23c06921786a5181ad7517R44), which become evident during fixation of tests. I've added MultipartSignedEntity into if condition (this entity contains signature entity). Without this change all responses containing MultipartSignedEntity won't be added into body of exchange.
   
   - Added closing connection into @AfterClass method of AS2ClientManagerIntegrationTest.
   
   - There were changes in AS2Producer (https://github.com/apache/camel/commit/30192d63f0290639e815df21ae37c9bc85f184d4#diff-090142443d23c06921786a5181ad7517R40-R48) and AS2Consmer (https://github.com/apache/camel/commit/30192d63f0290639e815df21ae37c9bc85f184d4#diff-8c8e31cb62827ee2306130030a00255cR114-R120), which was not reflected in tests. Tests are fixed now.
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 329789)
    Remaining Estimate: 0h
            Time Spent: 10m

> [Camel-as2] Integration tests are not working
> ---------------------------------------------
>
>                 Key: CAMEL-14071
>                 URL: https://issues.apache.org/jira/browse/CAMEL-14071
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-as2
>    Affects Versions: 3.0.0
>            Reporter: Jiri Ondrusek
>            Assignee: Jiri Ondrusek
>            Priority: Major
>             Fix For: 3.0.0.RC3, 3.0.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Run integration tests (mvn clean test -pl :camel-as2 -Dtest=\*IntegrationTest) and see errors:{code}
> ERROR] Tests run: 12, Failures: 0, Errors: 12, Skipped: 0, Time elapsed: 5.04 s <<< FAILURE! - in org.apache.camel.component.as2.AS2ServerManagerIntegrationTest
> [ERROR] receivePlainEDIMessageTest(org.apache.camel.component.as2.AS2ServerManagerIntegrationTest)  Time elapsed: 0.186 s  <<< ERROR!
> org.apache.camel.FailedToCreateRouteException: Failed to create route route3: Route(route3)[From[as2://server/listen?requestUriPattern=/] ... because of Failed to resolve endpoint: as2://server/listen?requestUriPattern=%2F due to: Server HTTP connection failed
> Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: as2://server/listen?requestUriPattern=%2F due to: Server HTTP connection failed
> Caused by: org.apache.camel.RuntimeCamelException: Server HTTP connection failed
> Caused by: java.net.BindException: Address already in use (Bind failed)
> [ERROR] receiveEnvelopedMessageTest(org.apache.camel.component.as2.AS2ServerManagerIntegrationTest)  Time elapsed: 0.027 s  <<< ERROR!
> org.apache.http.HttpException: Failed to parse entity content
> 	at org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.receiveEnvelopedMessageTest(AS2ServerManagerIntegrationTest.java:272)
> Caused by: java.lang.IllegalArgumentException: Content type may not be null
> 	at org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.receiveEnvelopedMessageTest(AS2ServerManagerIntegrationTest.java:272)
> [ERROR] sendEditMessageToFailingProcessorTest(org.apache.camel.component.as2.AS2ServerManagerIntegrationTest)  Time elapsed: 0.047 s  <<< ERROR!
> org.apache.http.HttpException: Failed to parse entity content
> 	at org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.sendEditMessageToFailingProcessorTest(AS2ServerManagerIntegrationTest.java:334)
> Caused by: java.lang.IllegalArgumentException: Content type may not be null
> 	at org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.sendEditMessageToFailingProcessorTest(AS2ServerManagerIntegrationTest.java:334)
> [ERROR] receiveMultipartSignedMessageTest(org.apache.camel.component.as2.AS2ServerManagerIntegrationTest)  Time elapsed: 0.07 s  <<< ERROR!
> org.apache.http.HttpException: Failed to parse entity content
> 	at org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.receiveMultipartSignedMessageTest(AS2ServerManagerIntegrationTest.java:204)
> Caused by: java.lang.IllegalArgumentException: Content type may not be null
> 	at org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.receiveMultipartSignedMessageTest(AS2ServerManagerIntegrationTest.java:204)
> [ERROR] receivePlainEDIMessageTest(org.apache.camel.component.as2.AS2ServerManagerIntegrationTest)  Time elapsed: 0.06 s  <<< ERROR!
> org.apache.camel.FailedToCreateRouteException: Failed to create route route5: Route(route5)[From[as2://server/listen?requestUriPattern=/] ... because of Failed to resolve endpoint: as2://server/listen?requestUriPattern=%2F due to: Server HTTP connection failed
> Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: as2://server/listen?requestUriPattern=%2F due to: Server HTTP connection failed
> Caused by: org.apache.camel.RuntimeCamelException: Server HTTP connection failed
> Caused by: java.net.BindException: Address already in use (Bind failed)
> [ERROR] receiveEnvelopedMessageTest(org.apache.camel.component.as2.AS2ServerManagerIntegrationTest)  Time elapsed: 0.01 s  <<< ERROR!
> org.apache.http.HttpException: Failed to parse entity content
> 	at org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.receiveEnvelopedMessageTest(AS2ServerManagerIntegrationTest.java:272)
> Caused by: java.lang.IllegalArgumentException: Content type may not be null
> 	at org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.receiveEnvelopedMessageTest(AS2ServerManagerIntegrationTest.java:272)
> [ERROR] sendEditMessageToFailingProcessorTest(org.apache.camel.component.as2.AS2ServerManagerIntegrationTest)  Time elapsed: 0.005 s  <<< ERROR!
> org.apache.http.HttpException: Failed to parse entity content
> 	at org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.sendEditMessageToFailingProcessorTest(AS2ServerManagerIntegrationTest.java:334)
> Caused by: java.lang.IllegalArgumentException: Content type may not be null
> 	at org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.sendEditMessageToFailingProcessorTest(AS2ServerManagerIntegrationTest.java:334)
> [ERROR] receiveMultipartSignedMessageTest(org.apache.camel.component.as2.AS2ServerManagerIntegrationTest)  Time elapsed: 0.053 s  <<< ERROR!
> org.apache.http.HttpException: Failed to parse entity content
> 	at org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.receiveMultipartSignedMessageTest(AS2ServerManagerIntegrationTest.java:204)
> Caused by: java.lang.IllegalArgumentException: Content type may not be null
> 	at org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.receiveMultipartSignedMessageTest(AS2ServerManagerIntegrationTest.java:204)
> [ERROR] receivePlainEDIMessageTest(org.apache.camel.component.as2.AS2ServerManagerIntegrationTest)  Time elapsed: 0.06 s  <<< ERROR!
> org.apache.camel.FailedToCreateRouteException: Failed to create route route7: Route(route7)[From[as2://server/listen?requestUriPattern=/] ... because of Failed to resolve endpoint: as2://server/listen?requestUriPattern=%2F due to: Server HTTP connection failed
> Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: as2://server/listen?requestUriPattern=%2F due to: Server HTTP connection failed
> Caused by: org.apache.camel.RuntimeCamelException: Server HTTP connection failed
> Caused by: java.net.BindException: Address already in use (Bind failed)
> [ERROR] receiveEnvelopedMessageTest(org.apache.camel.component.as2.AS2ServerManagerIntegrationTest)  Time elapsed: 0.015 s  <<< ERROR!
> org.apache.http.HttpException: Failed to parse entity content
> 	at org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.receiveEnvelopedMessageTest(AS2ServerManagerIntegrationTest.java:272)
> Caused by: java.lang.IllegalArgumentException: Content type may not be null
> 	at org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.receiveEnvelopedMessageTest(AS2ServerManagerIntegrationTest.java:272)
> [ERROR] sendEditMessageToFailingProcessorTest(org.apache.camel.component.as2.AS2ServerManagerIntegrationTest)  Time elapsed: 0.004 s  <<< ERROR!
> org.apache.http.HttpException: Failed to parse entity content
> 	at org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.sendEditMessageToFailingProcessorTest(AS2ServerManagerIntegrationTest.java:334)
> Caused by: java.lang.IllegalArgumentException: Content type may not be null
> 	at org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.sendEditMessageToFailingProcessorTest(AS2ServerManagerIntegrationTest.java:334)
> [ERROR] receiveMultipartSignedMessageTest(org.apache.camel.component.as2.AS2ServerManagerIntegrationTest)  Time elapsed: 0.058 s  <<< ERROR!
> org.apache.http.HttpException: Failed to parse entity content
> 	at org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.receiveMultipartSignedMessageTest(AS2ServerManagerIntegrationTest.java:204)
> Caused by: java.lang.IllegalArgumentException: Content type may not be null
> 	at org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.receiveMultipartSignedMessageTest(AS2ServerManagerIntegrationTest.java:204)
> [INFO] 
> [INFO] Results:
> [INFO] 
> [ERROR] Failures: 
> [ERROR]   AS2ClientManagerIntegrationTest.compressedMessageTest:472->Assert.assertNotNull:712->Assert.assertTrue:41->Assert.fail:88 send result
> [ERROR]   AS2ClientManagerIntegrationTest.multipartSignedMessageTest:385->Assert.assertNotNull:712->Assert.assertTrue:41->Assert.fail:88 send result
> [ERROR] Errors: 
> [ERROR]   AS2ClientManagerIntegrationTest.envelopedMessageSendTest:305 ClassCast org.apa...
> [ERROR]   AS2ClientManagerIntegrationTest.setupTest:578->receiveTestMessages:652 » Bind ...
> [ERROR]   AS2ClientManagerIntegrationTest.plainMessageSendTest:233 ClassCast org.apache....
> [ERROR] org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.receiveEnvelopedMessageTest(org.apache.camel.component.as2.AS2ServerManagerIntegrationTest)
> [ERROR]   Run 1: AS2ServerManagerIntegrationTest.receiveEnvelopedMessageTest:272 » Http Failed ...
> [ERROR]   Run 2: AS2ServerManagerIntegrationTest.receiveEnvelopedMessageTest:272 » Http Failed ...
> [ERROR]   Run 3: AS2ServerManagerIntegrationTest.receiveEnvelopedMessageTest:272 » Http Failed ...
> [INFO] 
> [ERROR] org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.receiveMultipartSignedMessageTest(org.apache.camel.component.as2.AS2ServerManagerIntegrationTest)
> [ERROR]   Run 1: AS2ServerManagerIntegrationTest.receiveMultipartSignedMessageTest:204 » Http F...
> [ERROR]   Run 2: AS2ServerManagerIntegrationTest.receiveMultipartSignedMessageTest:204 » Http F...
> [ERROR]   Run 3: AS2ServerManagerIntegrationTest.receiveMultipartSignedMessageTest:204 » Http F...
> [INFO] 
> [ERROR] org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.receivePlainEDIMessageTest(org.apache.camel.component.as2.AS2ServerManagerIntegrationTest)
> [ERROR]   Run 1: AS2ServerManagerIntegrationTest>CamelTestSupport.setUp:322->CamelTestSupport.doSetUp:459->CamelTestSupport.startCamelContext:819 » FailedToCreateRoute
> [ERROR]   Run 2: AS2ServerManagerIntegrationTest>CamelTestSupport.setUp:322->CamelTestSupport.doSetUp:459->CamelTestSupport.startCamelContext:819 » FailedToCreateRoute
> [ERROR]   Run 3: AS2ServerManagerIntegrationTest>CamelTestSupport.setUp:322->CamelTestSupport.doSetUp:459->CamelTestSupport.startCamelContext:819 » FailedToCreateRoute
> [INFO] 
> [ERROR] org.apache.camel.component.as2.AS2ServerManagerIntegrationTest.sendEditMessageToFailingProcessorTest(org.apache.camel.component.as2.AS2ServerManagerIntegrationTest)
> [ERROR]   Run 1: AS2ServerManagerIntegrationTest.sendEditMessageToFailingProcessorTest:334 » Http
> [ERROR]   Run 2: AS2ServerManagerIntegrationTest.sendEditMessageToFailingProcessorTest:334 » Http
> [ERROR]   Run 3: AS2ServerManagerIntegrationTest.sendEditMessageToFailingProcessorTest:334 » Http
> [INFO] 
> [INFO] 
> [ERROR] Tests run: 10, Failures: 2, Errors: 7, Skipped: 0
> [INFO] 
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)