<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.32.2">
</HEAD>
<BODY>
Hi all,<BR>
<BR>
there are still some tests containing hard-coded localhost.<BR>
If you happen to be the author/culprit, please check if the tests should be updated (most likely it should) to use an appropriate dynamic mechanism to get the right address, and update it.<BR>
<BR>
@ArquillianResource URL url;<BR>
@ArquillianResource ManagementClient mc;<BR>
@ContainerResource private ManagementClient mc;<BR>
<BR>
The values in annotations will probably need some trick like this:<BR>
<A HREF="https://github.com/jbossas/jboss-as/commit/a2b0b7b4220bd3e781389b7262f46a996c3360cc">https://github.com/jbossas/jboss-as/commit/a2b0b7b4220bd3e781389b7262f46a996c3360cc</A><BR>
Or, if no other way, using javassist (or byteman) to inject a constant into a static field and use that in the annotation.<BR>
<BR>
Thanks to Stuart, Richard, and all who contributed to this.<BR>
<BR>
Ondra<BR>
<BR>
<BR>
testsuite/integration/smoke/src/test/java/org/jboss/as/test/smoke/mgmt/datasource/DataSourceOperationsUnitTestCase.java: <BR>
MBeanServerConnection mbeanServer = JMXConnectorFactory.connect(new JMXServiceURL("service:jmx:remoting-jmx://127.0.0.1:9999")).getMBeanServerConnection();<BR>
<BR>
testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/ejb/iiop/naming/IIOPNamingTestCase.java: prope.put(Context.PROVIDER_URL, "corbaloc::localhost:3528/JBoss/Naming/root");<BR>
testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/ejb/iiop/naming/IIOPNamingTestCase.java: prope.put(Context.PROVIDER_URL, "corbaloc::localhost:3528/JBoss/Naming/root");<BR>
testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/ejb/iiop/naming/IIOPNamingTestCase.java: prope.put(Context.PROVIDER_URL, "corbaloc::localhost:3528");<BR>
testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/ejb/iiop/naming/IIOPNamingTestCase.java: final Object iiopObj = context.lookup("corbaname:iiop:localhost:3528#test/IIOPNamingBean");<BR>
testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/ejb/iiop/naming/IIOPNamingTestCase.java: prope.put(Context.PROVIDER_URL, "corbaloc::localhost:3528");<BR>
testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/ejb/iiop/naming/IIOPNamingTestCase.java: prope.put(Context.PROVIDER_URL, "iiop://localhost:3528");<BR>
testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/ejb/iiop/naming/IIOPNamingTestCase.java: prope.put(Context.PROVIDER_URL, "iiop://localhost:3528");<BR>
testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/ejb/iiop/naming/IIOPNamingTestCase.java: prope.put(Context.PROVIDER_URL, "corbaloc::localhost:3528/JBoss/Naming/root");<BR>
testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/ejb/iiop/naming/IIOPNamingTestCase.java: prope.put(Context.PROVIDER_URL, "corbaloc::localhost:3528");<BR>
testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/ejb/iiop/naming/IIOPNamingTestCase.java: final Object iiopObj = context.lookup("corbaname:iiop:localhost:3528#bean/custom/name/IIOPNamingBean");<BR>
testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/ejb/iiop/naming/IIOPNamingTestCase.java: prope.put(Context.PROVIDER_URL, "iiop://localhost:3528");<BR>
testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/jmx/ModelControllerMBeanTestCase.java: static final String HOST = "localhost";<BR>
testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/jmx/ModelControllerMBeanTestCase.java: client = ModelControllerClient.Factory.create("localhost", 9999, getCallbackHandler());<BR>
testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/osgi/jaxrs/RestEasyIntegrationTestCase.java: String reqPath = "http://" + formatPossibleIpv6Address(System.getProperty("test.bind.address", "localhost")) + ":8080/resteasy-osgi-client/rest/echo<BR>
testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/security/loginmodules/DatabaseLoginModuleTestCase.java: conn = DriverManager.getConnection("jdbc:h2:tcp://localhost/mem:test" + depNum, "sa", "sa");<BR>
testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/security/loginmodules/common/servlets/SecuredServletWithDBSetupForDep1.java: url = "jdbc:h2:tcp://localhost/mem:test1"<BR>
testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/security/loginmodules/common/servlets/SecuredServletWithDBSetupForDep2.java: url = "jdbc:h2:tcp://localhost/mem:test2"<BR>
testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/security/loginmodules/common/servlets/SecuredServletWithDBSetupForDep3.java: url = "jdbc:h2:tcp://localhost/mem:test3"<BR>
testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/security/loginmodules/common/servlets/SecuredServletWithDBSetupForDep4.java: url = "jdbc:h2:tcp://localhost/mem:test4"<BR>
testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/web/security/cert/WebSecurityCERTTestCase.java: protected final String URL = "https://localhost:8380/" + getContextPath() + "/secured/";<BR>
testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/web/security/cert/WebSecurityCERTTestCase.java: protected final String URL = "https://localhost:8380/" + getContextPath() + "/secured/";<BR>
testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/web/security/tg/TransportGuaranteeTestCase.java: FileUtils.copyURLToFile(tccl.getResource("web/sec/tg/localhost.keystore"), keyStoreFile);<BR>
testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/ws/serviceref/TestService.wsdl: <soap:address location='http://${node0:localhost}:8080/ws-serviceref-example/EndpointService/EJB3Bean'/><BR>
<BR>
testsuite/integration/iiop/src/test/java/org/jboss/as/test/iiop/basic/BasicIIOPInvocationTestCase.java: * @EJB(lookup = "corbaname:iiop:localhost:3628#IIOPTransactionalStatelessBean")<BR>
testsuite/integration/smoke/src/test/java/org/jboss/as/test/smoke/webservices/SimpleStatelessSessionBean.java: @WebServiceRef(wsdlLocation="http://localhost:8080/ws-example?wsdl", value=EndpointService.class)<BR>
testsuite/integration/smoke/src/test/java/org/jboss/as/test/smoke/webservices/SimpleStatelessSessionBean.java: @WebServiceRef(wsdlLocation="http://localhost:8080/ws-example?wsdl", value=EndpointService.class)<BR>
<BR>
testsuite/integration/src/test/xslt/addRemoteOutboundConnection.xsl: <xsl:param name="node" select="'localhost'"/><BR>
<BR>
</BODY>
</HTML>