[jboss-cvs] JBossAS SVN: r109709 - in branches/JBoss-AS-6.0.x-ipv6/testsuite/src: resources/cluster/drm and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Dec 3 14:29:14 EST 2010
Author: rachmatowicz at jboss.com
Date: 2010-12-03 14:29:13 -0500 (Fri, 03 Dec 2010)
New Revision: 109709
Modified:
branches/JBoss-AS-6.0.x-ipv6/testsuite/src/main/org/jboss/test/cluster/defaultcfg/test/DRMTestCase.java
branches/JBoss-AS-6.0.x-ipv6/testsuite/src/resources/cluster/drm/drm-test-stacks.xml
Log:
Fix up DRMTestCase to use localhost instead of 127.0.0.1 (JBAS-8540)
Modified: branches/JBoss-AS-6.0.x-ipv6/testsuite/src/main/org/jboss/test/cluster/defaultcfg/test/DRMTestCase.java
===================================================================
--- branches/JBoss-AS-6.0.x-ipv6/testsuite/src/main/org/jboss/test/cluster/defaultcfg/test/DRMTestCase.java 2010-12-03 18:40:02 UTC (rev 109708)
+++ branches/JBoss-AS-6.0.x-ipv6/testsuite/src/main/org/jboss/test/cluster/defaultcfg/test/DRMTestCase.java 2010-12-03 19:29:13 UTC (rev 109709)
@@ -523,7 +523,7 @@
log.info("DRMTestCase.testIsMasterReplica() - starting GossipRouter");
// router characteristics here must match the definition in the stack configuration
- router = new GossipRouter(12001, "127.0.0.1");
+ router = new GossipRouter(12001, "localhost");
router.start();
Thread.sleep(10000);
log.info("router routing table = " + router.dumpRoutingTable());
@@ -713,7 +713,7 @@
MBeanServer mbeanServer =
MBeanServerFactory.createMBeanServer("mockPartition");
try {
- ClusterNode localAddress = factory.getClusterNode(new IpAddress("127.0.0.1", 12345));
+ ClusterNode localAddress = factory.getClusterNode(new IpAddress("localhost", 12345));
MockHAPartition partition = new MockHAPartition(localAddress);
DistributedReplicantManagerImpl drm = new DistributedReplicantManagerImpl(partition);
@@ -724,7 +724,7 @@
Vector<ClusterNode> remoteAddresses = new Vector<ClusterNode>();
for (int i = 1; i < 5; i++)
- remoteAddresses.add(factory.getClusterNode(new IpAddress("127.0.0.1", 12340 + i)));
+ remoteAddresses.add(factory.getClusterNode(new IpAddress("localhost", 12340 + i)));
Vector<ClusterNode> allNodes = new Vector<ClusterNode>(remoteAddresses);
allNodes.add(localAddress);
@@ -817,7 +817,7 @@
MBeanServer mbeanServer =
MBeanServerFactory.createMBeanServer("mockPartition");
try {
- ClusterNode localAddress = factory.getClusterNode(new IpAddress("127.0.0.1", 12345));
+ ClusterNode localAddress = factory.getClusterNode(new IpAddress("localhost", 12345));
MockHAPartition partition = new MockHAPartition(localAddress);
DistributedReplicantManagerImpl drm = new DistributedReplicantManagerImpl(partition);
@@ -828,7 +828,7 @@
Vector<ClusterNode> remoteAddresses = new Vector<ClusterNode>();
for (int i = 1; i < 5; i++)
- remoteAddresses.add(factory.getClusterNode(new IpAddress("127.0.0.1", 12340 + i)));
+ remoteAddresses.add(factory.getClusterNode(new IpAddress("localhost", 12340 + i)));
Vector<ClusterNode> allNodes = new Vector<ClusterNode>(remoteAddresses);
allNodes.add(localAddress);
@@ -936,7 +936,7 @@
MBeanServerFactory.createMBeanServer("mockPartition");
try {
- ClusterNode localAddress = factory.getClusterNode(new IpAddress("127.0.0.1", 12345));
+ ClusterNode localAddress = factory.getClusterNode(new IpAddress("localhost", 12345));
MockHAPartition partition = new MockHAPartition(localAddress);
DistributedReplicantManagerImpl drm = new DistributedReplicantManagerImpl(partition);
@@ -946,7 +946,7 @@
// Create a fake view for the MockHAPartition
Vector<ClusterNode> remoteAddresses = new Vector<ClusterNode>();
- ClusterNode remote = factory.getClusterNode(new IpAddress("127.0.0.1", 12341));
+ ClusterNode remote = factory.getClusterNode(new IpAddress("localhost", 12341));
remoteAddresses.add(remote);
Vector<ClusterNode> allNodes = new Vector<ClusterNode>(remoteAddresses);
@@ -1118,7 +1118,7 @@
Vector<ClusterNode> allNodes = new Vector<ClusterNode>();
for (int i = 0; i < nodes.length; i++)
{
- nodes[i] = factory.getClusterNode(new IpAddress("127.0.0.1", 12340 + i));
+ nodes[i] = factory.getClusterNode(new IpAddress("localhost", 12340 + i));
allNodes.add(nodes[i]);
names[i] = nodes[i].getName();
replicants[i] = new Integer(i);
@@ -1195,7 +1195,7 @@
Vector<ClusterNode> allNodes = new Vector<ClusterNode>();
for (int i = 0; i < nodes.length; i++)
{
- nodes[i] = factory.getClusterNode(new IpAddress("127.0.0.1", 12340 + i));
+ nodes[i] = factory.getClusterNode(new IpAddress("localhost", 12340 + i));
allNodes.add(nodes[i]);
// names[i] = nodes[i].getName();
replicants[i] = new Integer(i);
Modified: branches/JBoss-AS-6.0.x-ipv6/testsuite/src/resources/cluster/drm/drm-test-stacks.xml
===================================================================
--- branches/JBoss-AS-6.0.x-ipv6/testsuite/src/resources/cluster/drm/drm-test-stacks.xml 2010-12-03 18:40:02 UTC (rev 109708)
+++ branches/JBoss-AS-6.0.x-ipv6/testsuite/src/resources/cluster/drm/drm-test-stacks.xml 2010-12-03 19:29:13 UTC (rev 109709)
@@ -7,11 +7,11 @@
<stack name="tunnel1"
description="Used with a GossipRouter">
<config>
- <TUNNEL bind_addr="127.0.0.1" router_port="12001" router_host="127.0.0.1"/>
+ <TUNNEL bind_addr="localhost" router_port="12001" router_host="localhost"/>
<PING timeout="2000"
num_initial_members="3"
gossip_refresh="10000"
- gossip_host="127.0.0.1"
+ gossip_host="localhost"
gossip_port="12001"/>
<MERGE2 max_interval="20000" min_interval="5000"/>
<FD_SOCK/>
@@ -38,11 +38,11 @@
<stack name="tunnel2"
description="Used with a GossipRouter">
<config>
- <TUNNEL bind_addr="127.0.0.1" router_port="12001" router_host="127.0.0.1"/>
+ <TUNNEL bind_addr="localhost" router_port="12001" router_host="localhost"/>
<PING timeout="2000"
num_initial_members="3"
gossip_refresh="10000"
- gossip_host="127.0.0.1"
+ gossip_host="localhost"
gossip_port="12001"/>
<MERGE2 max_interval="20000" min_interval="5000"/>
<FD_SOCK/>
More information about the jboss-cvs-commits
mailing list