[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
Sun Oct 24 19:15:54 EDT 2010


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

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

12. Ran into the problem of tests which generate URLs outside of the class structure, as in:

class X {
String baseURL = "http://" + System.getProperty("jbosstest.server.host","localhost") + ":" + "8080" ;
public X() {}
public setUp() {}
}

The problem here is that we cannot make use of the JBossTestCase helper functions, in particular getServerHostForURL(), because JBossTestCase is only fully initialised when setUp() is called and later; trying to use thsese functions in the constructor or when initialising instance variables as above will not work.

There are two solutions here:
(i) move the call into setUp(), which many test cases do
(ii) provide some static methods which test cases could call (e.g. JBossTestCase.getServerHostForURL())

In order to avoid hacking test cases, I have instead introduced a system property jboss.test.server.host.url which provides the hostname in the required format. The advantage here is that no test cases need to be changed. The disadvantage is that an extra system property needs to be passed to the junit ant task.

If this is unsatisfactory, it can be changed later. This is what was done for EAP 4.3 CP.

> 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.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list