ServiceMix
  1. ServiceMix
  2. SM-2280

Activiti test case fails after upgrade to 5.15.1

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0.1, 5.1.0, 6.0.0.M1, 6.0.0
    • Component/s: examples
    • Labels:
      None

      Description

      After the upgrade the activiti test case fails with following error

      Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 47.207 sec <<< FAILURE! - in org.apache.servicemix.itests.ActivitiExamplesTest
      testActivitiCamelExample(org.apache.servicemix.itests.ActivitiExamplesTest)  Time elapsed: 30.275 sec  <<< FAILURE!
      java.lang.AssertionError: Gave up waiting for test condition
      	at org.junit.Assert.fail(Assert.java:88)
      	at org.apache.servicemix.itests.IntegrationTestSupport.expect(IntegrationTestSupport.scala:83)
      	at org.apache.servicemix.itests.ActivitiExamplesTest$$anonfun$testActivitiCamelExample$1.apply$mcV$sp(ExamplesIntegrationTests.scala:67)
      	at org.apache.servicemix.itests.IntegrationTestSupport.testWithFeature(IntegrationTestSupport.scala:74)
      	at org.apache.servicemix.itests.ActivitiExamplesTest.testActivitiCamelExample(ExamplesIntegrationTests.scala:58)
      

        Activity

        Hide
        Krzysztof Sobkowiak added a comment -

        The test case expects a log entry containing following text: "Processing order $

        {orderId}" where ${orderId}

        is id of the processed order. But trying to perform the sample in ServiceMix following log entries can be found

        Processing order  created on 
           original message: 
        Process to handle incoming order file has been started (process instance id 227)
        Notifying process about delivery for order 7
        Processing delivery for order  created on 
        original message: 
        

        The order id is missing in the log message. The property property.orderid (and the others) is not correctly resolved in the end routes.

        Show
        Krzysztof Sobkowiak added a comment - The test case expects a log entry containing following text: "Processing order $ {orderId}" where ${orderId} is id of the processed order. But trying to perform the sample in ServiceMix following log entries can be found Processing order created on original message: Process to handle incoming order file has been started (process instance id 227) Notifying process about delivery for order 7 Processing delivery for order created on original message: The order id is missing in the log message. The property property.orderid (and the others) is not correctly resolved in the end routes.
        Show
        Krzysztof Sobkowiak added a comment - fixed in 5.0.x - https://git-wip-us.apache.org/repos/asf?p=servicemix.git;a=commit;h=589c163ec8b276563817dca54ce043fa6d02b508 fixed in 5.1.x - https://git-wip-us.apache.org/repos/asf?p=servicemix.git;a=commit;h=d8bad1f47e14523841672d7516c99706b50d30c7 fixed in 6.0.x - https://git-wip-us.apache.org/repos/asf?p=servicemix.git;a=commit;h=f9f796669268b3ca0c99a88a4a3d3e714dc1fa4e

          People

          • Assignee:
            Krzysztof Sobkowiak
            Reporter:
            Krzysztof Sobkowiak
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development