Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-9355

Stabilize some jBPM integration tests by upgrading TJWSEmbeddedJaxrsServer embedded server

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Minor Minor
    • 7.51.0.Final
    • 7.44.0.Final
    • None
    • False
    • False
    • NEW
    • NEW
    • Undefined
    • ---
    • ---

      When running integration tests for droolsjbpm-integration repo from time to time there are some random failures related to some integration test like KieControllerStartupIntegrationTest mainly (most of them related to `testContainerDisposedAfterStartup` method).

      To fix these, we should upgrade the already deprecated embedded server (TJWSEmbeddedJaxrsServer[1][2]) in use by these test classes with some other embedded server like UndertowJaxrsServer

      These tests might need to be refactored to use a more reliable container instead of embedded `TJWSEmbeddedJaxrsServer`

      Stacktrace:

      java.util.concurrent.TimeoutException: Synchronization failed for defined timeout: 240000 milliseconds. 
      at org.kie.server.integrationtests.controller.KieControllerStartupIntegrationTest.testContainerDisposedAfterStartup(KieControllerStartupIntegrationTest.java:207)

      output.log

      [1] https://github.com/kiegroup/droolsjbpm-integration/blob/master/kie-server-parent/kie-server-tests/kie-server-integ-tests-common/src/main/java/org/kie/server/integrationtests/shared/KieControllerExecutor.java#L32

      [2] https://github.com/kiegroup/droolsjbpm-integration/blob/master/kie-server-parent/kie-server-tests/kie-server-integ-tests-common/src/main/java/org/kie/server/integrationtests/shared/KieServerExecutor.java#L37

       

            antferna Antonio Fernandez Alhambra (Inactive)
            antferna Antonio Fernandez Alhambra (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: