Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-660

Automatically pick an open port: embedded and managed containers should be configurable to automatically pick another open port if their default port is closed, instead of failing all tests with "Could not deploy to container"

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Critical Critical
    • 2.0.0.Beta1
    • 1.0.0.CR5
    • Configuration
    • None

      When running our tests on hudson/jenkins, we don't know which hudson slave will run our job (any slave marked as AnyRHEL6 can run it) and we don't know what other jobs will be running at the same time.
      It's impossible to guess which port will be free because:

      • the server might have some services set up on some ports
      • the other hudson jobs might be using the same ports
      • the other hudson jobs might be a release or topic branch of our own project and will be using the same ports

      If an embedded or managed container starts and tries to take a non-open port, it crashes and all the tests fail.
      *So all our arquillian tests randomly fail.*

      The arquillian.xml configuration should support configuring a port to something like
      "any open port in the range 8000-8999". If our test cases properly use "@ArquillianResource URL baseURL" (which they do), that shouldn't be a problem.
      Next, the container implements, gradually one by one, should support this (or throw an UnsupportOperationException if they don't support it yet).

            Unassigned Unassigned
            gdesmet@redhat.com Geoffrey De Smet (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: