Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-3903

Automatic / dynamic test port selection

    XMLWordPrintable

Details

    • Task
    • Resolution: Obsolete
    • Major
    • None
    • None
    • jbossws-cxf, productization
    • None

    Description

      Jan writes:

      I think it would be nice to have some notes about ports used for testsuite run, because after move to arquillian there are many more ports used now.

      Something like that because there are several different configuration being started, you need all "offsetted" ports to be free.
      Reference for basic container ports: https://docs.jboss.org/author/display/WFLY8/Admin+Guide#AdminGuide-Interfacesandports

      Current offsets:
      <port-offset.cxf-tests.jboss>0</port-offset.cxf-tests.jboss>
      <port-offset.cxf-tests.ssl-mutual-auth>5000</port-offset.cxf-tests.ssl-mutual-auth>
      <port-offset.cxf-tests.default-config-tests>10000</port-offset.cxf-tests.default-config-tests>
      <port-offset.cxf-tests.jms>35000</port-offset.cxf-tests.jms>
      <port-offset.shared-tests.jboss>15000</port-offset.shared-tests.jboss>
      <port-offset.shared-tests.default-config-tests>20000</port-offset.shared-tests.default-config-tests>
      <port-offset.shared-tests.address-rewrite>25000</port-offset.shared-tests.address-rewrite>
      <port-offset.cxf-spring-tests.jboss>30000</port-offset.cxf-spring-tests.jboss>

      And there are some special cases:

      • org.jboss.test.ws.jaxws.endpoint.EndpointTestCase
        • where hardcoded 8081 port is used
      • org.jboss.test.ws.jaxws.cxf.udp.UDPEndpointAPITestCase
        • hardcoded 9436
      • org.jboss.wsf.stack.cxf.addons.transports.udp.UDPTransportTest
        • hardcoded 9434
      • org.jboss.test.ws.jaxws.samples.wsdd.WSDiscoveryTestCase
        • 3072 port by WS-Discovery specification

      We should have something like the port utilities in org.apache.cxf.testutil.common.TestUtil (except that's not thread safe, while we need it to be thread safe to let the testsuite run with -Pfast profile).
      The idea is that we could have an "ofsetted" range of ports "reserved" for the JBossWS testsuite.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhn-support-asoldano Alessio Soldano
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: