Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Duplicate
-
1.7
-
None
-
Linux 2.4, JBoss 3.2.5
Description
When starting container to run tests <cactus> ant task always tries to connect "http://locahost:<port>/<context>" even if container does not listen localhost interface.
Connection to localhost is hardcoded in CactusTask class:
http://localhost:" + containers[i].getPort() + "/"
+ thisDeployable.getTestContext()
Configuring hostname via <cactus> task attribute can be useful to run tests against container run on "dummy" interface or remote container.