Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-16925

Integration tests on REST services broken since 3.5.0 with camel-spring-boot

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Information Provided
    • 3.5.0, 3.11.0
    • 3.12.0
    • camel-spring-boot, tests
    • None
    • Unknown

    Description

      In Camel 3.4.x it was possible to write an integration test for REST services, in which the rest Camel route would actually run on a tomcat servlet and could be tested via HTTP.

      Since Camel 3.5.0 this functionality seems broken. The tomcat server no longer boots during tests, so the REST service no longer works either.

      I have attached a sample case. 

      To reproduce:

      • Run 'mvn clean test' in the root directory and see that the unit test succeeds.
      • Alter the version of camel in the pom.xml file to 3.5.0 or higher.
      • Run 'mvn clean test' again.
      • Test fails because REST service is not running and cannot be contacted by the RestTemplate.

      The example uses JUnit 4 since we were not able to get this testcase running with JUnit 5 in Camel 3.4.4. either.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            ejbruin_caci Evert-Jan de Bruin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment