UIMA
  1. UIMA
  2. UIMA-2069

Remove hardcoded port numbers from UIMA AS tests

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.1AS
    • Component/s: Async Scaleout
    • Labels:
      None

      Description

      Currently extended tests use hardcoded port numbers in broker URLs. Also, most deployment descriptors use hardcoded URLs with specific port numbers. Modify all deployment descriptors to use placeholder for broker URL. During test bootstrapping, first test if a default port is open and if not increment it and test it again until an open port is found. Once found set the System property to enable UIMA AS to resolve the placeholder.

        Activity

        Hide
        Jerry Cwiklik added a comment -

        Replaced hard coded broker URLs with placeholders in all test deployment descriptors. Modified extended JUnit tests to use generated broker URLs. New code tries to acquire port 61617 as its default broker port. If that port is taken, the port number is incremented and tested again. This continues until an open port is found.

        Show
        Jerry Cwiklik added a comment - Replaced hard coded broker URLs with placeholders in all test deployment descriptors. Modified extended JUnit tests to use generated broker URLs. New code tries to acquire port 61617 as its default broker port. If that port is taken, the port number is incremented and tested again. This continues until an open port is found.

          People

          • Assignee:
            Jerry Cwiklik
            Reporter:
            Jerry Cwiklik
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development