ServiceMix
  1. ServiceMix
  2. SM-2195

rewrite features itests with pax-exam-karaf

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0.0
    • Component/s: itests
    • Labels:
      None

      Description

      we discussed this issue on mailling list several times.

      Currently itests are using old spring-osgi-test which is tricky and hard to maintain, we should use the pax-exam-karaf instead.

      As the apache karaf side pax-exam-karaf not get released yet, I think we can consider to use the openengsb one for know, as it's already in the maven central repo and pretty much same as the one in Apache karaf.

        Activity

        Freeman Fang created issue -
        Jean-Baptiste Onofré made changes -
        Field Original Value New Value
        Assignee Jean-Baptiste Onofré [ jbonofre ]
        Gert Vanthienen made changes -
        Project ServiceMix 4 [ 12311208 ] ServiceMix [ 12311206 ]
        Key SMX4-1282 SM-2195
        Gert Vanthienen made changes -
        Assignee Jean-Baptiste Onofré [ jbonofre ] Gert Vanthienen [ gertvanthienen ]
        Gert Vanthienen made changes -
        Fix Version/s 5.0.0 [ 12324078 ]
        Component/s itests [ 12320392 ]
        Hide
        Gert Vanthienen added a comment -
        Show
        Gert Vanthienen added a comment - I took an initial stab at this one in https://svn.apache.org/viewvc?view=revision&revision=1466476
        Hide
        Gert Vanthienen added a comment -
        Show
        Gert Vanthienen added a comment - Added itests for all CXF demos in https://svn.apache.org/viewvc?view=revision&revision=1476158
        Hide
        Krzysztof Sobkowiak added a comment -

        I have tried to upgrade the integration tests in PAX EXAM 3.4.0 and change into the Karaf container included in PAX EXAM (attached patch).

        But after this change the BasicAssemblyTests fail sometimes due to problems with the scala bundle. Is it possible that the tests starts before the container is completely booted?

        Please review the patch and use if you plan to upgrade the PAX EXAM version.

        Show
        Krzysztof Sobkowiak added a comment - I have tried to upgrade the integration tests in PAX EXAM 3.4.0 and change into the Karaf container included in PAX EXAM (attached patch). But after this change the BasicAssemblyTests fail sometimes due to problems with the scala bundle. Is it possible that the tests starts before the container is completely booted? Please review the patch and use if you plan to upgrade the PAX EXAM version.
        Krzysztof Sobkowiak made changes -
        Jean-Baptiste Onofré made changes -
        Assignee Gert Vanthienen [ gertvanthienen ] Jean-Baptiste Onofré [ jbonofre ]
        Jean-Baptiste Onofré made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Hide
        Gert Vanthienen added a comment -

        Applied the patch in http://svn.apache.org/viewvc?view=revision&revision=1568043 - I think I got round the issue with the scala-library by adding useDeployFolder(false) to ensure that the library gets installed through the features mechanism instead of by using hot-deployment.

        Thanks for the great patch, Krzysztof!

        Show
        Gert Vanthienen added a comment - Applied the patch in http://svn.apache.org/viewvc?view=revision&revision=1568043 - I think I got round the issue with the scala-library by adding useDeployFolder(false) to ensure that the library gets installed through the features mechanism instead of by using hot-deployment. Thanks for the great patch, Krzysztof!
        Gert Vanthienen made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Assignee Jean-Baptiste Onofré [ jbonofre ] Gert Vanthienen [ gertvanthienen ]
        Resolution Fixed [ 1 ]
        Krzysztof Sobkowiak made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        427d 9h 27m 1 Jean-Baptiste Onofré 17/Jan/14 12:57
        In Progress In Progress Resolved Resolved
        27d 8h 37m 1 Gert Vanthienen 13/Feb/14 21:34
        Resolved Resolved Closed Closed
        410d 19h 52m 1 Krzysztof Sobkowiak 31/Mar/15 18:27

          People

          • Assignee:
            Gert Vanthienen
            Reporter:
            Freeman Fang
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development