[jboss-jira] [JBoss JIRA] Commented: (JBAS-8540) Modify AS 6 and AS 6 testsuite to work with IPv6 addresses

Richard Achmatowicz (JIRA) jira-events at lists.jboss.org
Thu Dec 2 13:40:04 EST 2010


    [ https://jira.jboss.org/browse/JBAS-8540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12567257#comment-12567257 ] 

Richard Achmatowicz commented on JBAS-8540:
-------------------------------------------

27. Persistentmanager{CrossContextCalls, FormAuth}TestCase

These test cases make use of a deployed hsqldb database instance as well as a datasource deployment.
The datasource descriptor testsuite/resources/cluster/persistent/httpsession-ds.xml constructs a JDBC URL as follows:
 <connection-url>jdbc:hsqldb:hsql://${node0.bind.address:localhost}:1701</connection-url>

This caused the datasource to point to localhost instead of the node0 bind address. It was adjusted to:
 <connection-url>jdbc:hsqldb:hsql://${node0.bind.address.url:localhost}:1701</connection-url>
 and node0.bind.address.url system properties were added into the junit task.

Also, in the FormAuth test case, the test case was constructing a baseURL for makking HTTP requests as foillows:
baseURLNoAuth = "http://" + getServerHost() + ":" + Integer.getInteger("web.port", 8080);

This is incorrect in that FormAuth is a clustered test case and so JBossTestCase.getServerHost() is not always well defined, depending on the system properties passed in.
Changed this to use getServers[0] to get the host address for the node0 server, and then JBossTestUtil.fixHostnameForURL() to convert the hostname for use
in the URL. JBossTestUtil should really only need to be used for classes which are not subclasses of JBossTestCase or JBossClusteredTestCase().
To avoid this in future, I really need to add getServersForURL() to JBossClusteredTestCase


> Modify AS 6 and AS 6 testsuite to work with IPv6 addresses
> ----------------------------------------------------------
>
>                 Key: JBAS-8540
>                 URL: https://jira.jboss.org/browse/JBAS-8540
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 6.0.0.M4
>         Environment: All certified platforms.
>            Reporter: Richard Achmatowicz
>            Assignee: Richard Achmatowicz
>             Fix For: TBD
>
>
> Modify AS 6 and the AS 6 testsuite to work with IPv6 addresses.
> The end result should be:
> (i) AS 6 boots cleanly with both IPv4 and IPv6 addresses
> (ii) the AS testsuite and its test cases run cleanly against IPv4 and IPv6 addresses
> This task does not aim to certify that AS 6 is IPv6-compatible or ready. Such a certification may require the development of additional test cases to verify specific features relating to IPv6. For a discussion of such issues, see https://docspace.corp.redhat.com/docs/DOC-47796.
> This work is a precursor to making AS 7 IPv6 compatible.
>  

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list