Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-2346

WebServices tests should support runtime host parameterization

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • JBossAS-4.0.3 Final
    • Test Suite
    • None

      The testsuite/imports/test-jars.xml build hardcodes the IP address of node0 for webservices in output/resources.

      <copy todir="${build.resources}/webservice" filtering="yes">
      <fileset dir="${source.resources}/webservice">
      <include name="*/"/>
      </fileset>
      <filterset>
      <filter token="jbosstest.host.name" value="${node0}"/>
      </filterset>
      </copy>

      So, once you run the jars target the first time, the intial value of node0 becomes hardcoded. IE, this doesn't work:

      ant jars
      ant tests -Dnode0=$MYTESTIP_1

      instead you have to do this:

      ant clean tests -Dnode0=$MYTESTIP_1

      This is inefficient and error prone for developers. Instead, the filtering should be done at runtime using system properties in the configuration files and code:

      ${jbosstest.server.host:localhost} or System.getProperty("jbosstest.server.host" , "localhost")

            tdiesler@redhat.com Thomas Diesler
            ryan.campbell_jira ryan.campbell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: